Tk Source Code

View Ticket
Login
Ticket UUID: 220762
Title: Tk_GetHWND is not exported through the tk stub table
Type: Bug Version: obsolete: 8.4a1
Submitter: welch Created on: 2000-10-31 23:51:16
Subsystem: 85. Win Build Assigned To: nobody
Priority: 2 Severity:
Status: Closed Last Modified: 2001-03-28 04:31:55
Resolution: Fixed Closed By: dgp
    Closed on: 2001-03-27 21:31:55
Description:
OriginalBugID: 6183 Bug
Version: 8.4a1
SubmitDate: '2000-08-30'
LastModified: '2000-09-06'
Severity: MED
Status: Released
Submitter: techsupp
ChangedBy: ericm
OS: All Windows
FixedDate: '2000-09-06'
FixedInVersion: 8.4a2


Name:
George Petasis

ReproducibleScript:
Tk_GetHWND is not exported through the tk stub table, so
it is not possible to build a stubs enabled extension that uses
this function under windows...

DesiredBehavior:
Tk_GetHWND must be exported through the tk stub table



Tk_GetHWND is exported, but the file tkPlatDecls.h was not being included in tk.h, nor was it being installed with the public header files.  Thus, it was not accessible from a vanilla Tcl/Tk installation.  I added 
'#include "tkPlatDecls.h"' to tk.h, and added tkPlatDecls.h to the list of header files to install.  This should correct the problem.  This fix will be in 8.4a2.

   Eric Melski                            The Other Tcl Guy
   ericm at ajubasolutions.com            Ajuba Solutions

-- 09/05/2000 ericm

It turns out that including tkPlatDecls.h in tk.h causes some build problems:  first, tkPlatDecls.h must #include windows.h, to get definitions for things like HWND.  But this also brings in all the other windows decl's, some of which conflict with internal, private Tk functions (oops).  So instead, developers will have to #include "tkPlatDecls.h" themselves, as needed.  tkPlatDecls.h will still be installed, so that developers can do this include.

   Eric Melski                            The Other Tcl Guy
   ericm at ajubasolutions.com            Ajuba Solutions

-- 09/06/2000 ericm