Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

user32 error

Status
Not open for further replies.

dvannoy

MIS
May 4, 2001
2,765
US

When I am trying to run some modules and code I get the following error message..

"cant find dll entry point getdesktopwindow in user32"

I have installed all the options for MSOffice97 but still get this error...

can anyone help??
 

Function calls are case sensitive. If the function is declared as all lower case in the modules you'll need to change it from "getdesktopwindow" to "GetDesktopWindow".
Terry

X-) "I don't have a solution, but I admire your problem."
 
You may check references (module window <Tools>;<References>) and set up referense to &quot;Microsoft DAO 3.6 Object Library&quot; for MS Access 2000 or &quot;Microsoft DAO 3.53 Object Library&quot; for MS Access 97 if you don't it have. Then change its priority to position 3 with arrays.

Aivars

P.S. Function calls are not case sensitive!!!
 
Thanks to Aivars for pointing out my misstatement regarding function calls. What I should have said is 32-bit API function names are case sensitive. This is according to Microsoft Article Q210115.

API function names are case-sensitive. This differs from the 16-bit API, which is not case-sensitive. For example, in a 16-bit API call, the following statements are equivalent:

Declare Function GetVersion Lib &quot;KERNEL&quot; () as Long
Declare Function gEtVeRsIoN Lib &quot;KERNEL&quot; () as Long

However, when converted to a 32-bit API, the following statements are not equivalent because the function names are case-sensitive:

Declare Function GetVersion Lib &quot;KERNEL32&quot; () as Long
Declare Function gEtVeRsIoN Lib &quot;KERNEL32&quot; () as Long


See complete article at Terry

X-) &quot;Life would be easier if I had the source code.&quot; -Anonymous
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top