Re: Need help learning to wrap functions in Dlls in Win32

new topic     » goto parent     » topic index » view thread      » older message » newer message

On Wed, 12 Apr 2000 18:48:08 -0400, SR Williamson <SR.Williamson at OSHA.GOV>
wrote:

>I see that the structure is wrong now. Thanks. The API documentation on the
>RDS website doesn't match this.
>
>Additional questions: Once I get the structure set right, how do I set the
>uID of the Icon, and the hwnd to the Icon? Also, do I need to set the
>values of the other structure members if I'm not going to use them?
>
>Thanks again,
>Sherm

uID is any unique number you want to set it to (I think).  Using win32lib,
you can call the getHandle() function to return the hWnd (more
appropriately, hIcon) to the icon object.  As a standard percaution, any
unused members of a structure should be set to NULL.  Otherwise, you could
inadvertantly end up feeding the C routines bad pointers, and that, as a
general rule, is a 'Bad Thing'.

Good Luck,
Brian

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu