When I try to compile my code containing a call to InitializeCriticalSection I get the following error:
fastutil.asm(56) : error A2006: undefined symbol : InitializeCreaticalSection
Yet I include kernel32 and other masm libraries.
When I do a search through all the INC files in MASM I cant find the API. Surely it isnt left out ????
Help on finding and linking with the API would be appreciated.
rgs, striker.
InitializeCreaticalSection ?
\masm32\include\kernel32.inc
InitializeCriticalSection PROTO :DWORD
Dang, a spelling error !!!
Thanks for pointing out my stupid typing. :)
Perhaps a useful tip, whenever I get a message "error A2006: undefined symbol : Blah Blah Blah" I open up windows explorer, and do a file-contents search of C:\MASM32 for the offending word. It will turn up at least one .inc and .lib file, then you know what files to include. :)
I did the search as you suggest. I guess it helps if you dont keep on typing the wrong spelling each time :(
Doh !!
'Copy and Paste' will also perpetuate an error.
Paul
i find it easiest to search for word intersections, lizeCrit or calSect