NO

Author Topic: _CRTIMP a function which is located into MSVCRTD  (Read 6514 times)

Gerome

  • Guest
_CRTIMP a function which is located into MSVCRTD
« 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

Offline Pelle

  • Administrator
  • Member
  • *****
  • Posts: 2266
    • http://www.smorgasbordet.com
Re: _CRTIMP a function which is located into MSVCRTD
« Reply #1 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)...
/Pelle

Gerome

  • Guest
Re: _CRTIMP a function which is located into MSVCRTD
« Reply #2 on: March 28, 2008, 01:07:07 AM »
Many thanks! :)