Hello guys, I would like to ask, if i'd like to use some C-run time library functions (such as strtok()) in MASM32, which inc file should i include?
or should I wirte my own inc file for the CRT function i want or even explicitly load those functions by using LoadLibrary() and GetProcAddress()?
thank you ~~
Posted on 2004-05-26 04:28:01 by FredLiu
to call C funtion in MASM, you must have:
+ Matched version import lib of DLL of this function (depend on dll of C crt you have called: msvcrt.dll, crtdll.dll, ntdll.dll ... ).
+ Function prototype (proto C).

and then you can call by using invoke easily ... Not have to use GetProcAddress API.
You can search this board for many many related topics.

Best regards
Posted on 2004-05-26 21:59:14 by nhnpresario
This is one of my favourite subjects. :) You can have a look at:

Posted on 2004-05-27 05:13:47 by Vortex