Rule #1 for y'all: Win32 API functions all have Long parameters, and return Long values. If anybody here remembers doing API in VB 3.0, they know that the 16-bit SendMessage() function had an Integer value for the wParam parameter (the W is for Word, an unsigned integer). However, the 32-bit SendMessage() function has a Long value for the wParam parameter. This is because 32-bit functions all have 32-bit parameters. You can usually get away with using integers and bytes, because VB will convert for you, but it's not a good idea.
Secondly...are you running NT?




Reply With Quote