News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Where is InitializeCriticalSection ?

Started by James Ladd, May 22, 2005, 05:21:03 AM

Previous topic - Next topic

James Ladd

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.

MichaelW

InitializeCreaticalSection ?

\masm32\include\kernel32.inc

InitializeCriticalSection PROTO :DWORD


eschew obfuscation

James Ladd

Dang, a spelling error !!!
Thanks for pointing out my stupid typing. :)

Mark Jones

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. :)
"To deny our impulses... foolish; to revel in them, chaos." MCJ 2003.08

James Ladd

I did the search as you suggest. I guess it helps if you dont keep on typing the wrong spelling each time :(
Doh !!

pbrennick

'Copy and Paste' will also perpetuate an error.

Paul

Infro_X

i find it easiest to search for word intersections,  lizeCrit or calSect