Pelles C forum

C language => Expert questions => Topic started by: Gerome on March 11, 2008, 02:19:36 PM

Title: _CRTIMP a function which is located into MSVCRTD
Post by: Gerome on March 11, 2008, 02:19:36 PM
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
Title: Re: _CRTIMP a function which is located into MSVCRTD
Post by: Pelle on March 12, 2008, 06:22:34 PM
probably like this:
Code: [Select]
void __cdecl _free_dbg(void *, int);
_CRTIMP seems to be defined like this:
Code: [Select]
#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)...
Title: Re: _CRTIMP a function which is located into MSVCRTD
Post by: Gerome on March 28, 2008, 01:07:07 AM
Many thanks! :)