_CRTIMP a function which is located into MSVCRTD

Started by Gerome, March 11, 2008, 02:19:36 PM

Previous topic - Next topic

Gerome

Hello,

I wanted to declare this function :
_free_dbg( p, _NORMAL_BLOCK )

which is currently located into MSVCRTD.DLL.

How can I declare this function under PellesC please ?
Using _CRTIMP or ... ?

Thanks a lot for any help

Pelle

probably like this:
void __cdecl _free_dbg(void *, int);

_CRTIMP seems to be defined like this:
#define _CRTIMP __declspec(dllimport)
which is more of an 'import optimization' - it shouldn't be absolutely necessary (but you can add it, if you like)...
/Pelle