1. Re: Followup to GetWindowInfo

Thanks Travis,
I'm changing the library so that it only links to DLL routines if they are
actually called. Currently the library links all the DLL routines, even if
it never calls them. This means that the getWindowInfo() will only be a
problem for Win95 environments if one attempts to run it.

Unfortunately this change may break some existing code. If any program is
using c_proc() or c_func() and the global routine names defined in win32lib,
these will need to be changed to guiProc() and guiFunc() respectively. For
example ...

     hdc = c_func( xGetDC, {0} )

becomes

     hdc = guiFunc( xGetDC, {0} )

Note, if you have defined your own values for c_func(), then this doesn't
apply. This means that if you have code like this ...

    lib   = open_dll( "user32.dll" )
    wfunc = define_c_func(lib, "GetDC", {C_POINTER}, C_UINT)
    hdc   = c_func(wfunc, {0})

it can remain unchanged.


As a side-effect, this change to the library may speed up an application's
startup, seeing it doesn't have to load DLLs and link to Window routines
until it needs to.

P.S. I've been running Windows Me for almost 4 months now, and it is very
stable. If anyone is running Win95, I recommend that an upgrade ASAP, you
won't be disappointed.

------
Derek Parnell
Melbourne, Australia
(Vote [1] The Cheshire Cat for Internet Mascot)

new topic     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu