Re: syntax for function header/prototype and implementation
- From: Jeff Kish <jeff.kish@xxxxxxx>
- Date: Fri, 03 Aug 2007 15:32:17 -0400
On Fri, 3 Aug 2007 22:20:12 +0300, "Alex Blekhman" <tkfx.REMOVE@xxxxxxxxx>
wrote:
"Jeff Kish" wrote:Alex,
I did this but it decorated the function name in the dll
...
HEADER (wrapped in exter "C")
__declspec(dllexport) void WINAPI
NavImagingRegisterPaintNotificationCallback(int
nControlId,
fpTypeNavImagingPaintCallback);
CPP
extern "C" __declspec(dllexport) void WINAPI myFunc(int
...)
I thought the extern "C" would prevent that. Any thoughts?
You need to add a .DEF file to your project if you want to
avoid decorated names. See here for more info:
"Exporting from a DLL Using DEF Files"
http://msdn2.microsoft.com/en-us/library/d91k01sh(VS.80).aspx
Alex
I thought that is what extern "C" did.
;> (
Jeff Kish
.
- Follow-Ups:
- Re: syntax for function header/prototype and implementation
- From: Alex Blekhman
- Re: syntax for function header/prototype and implementation
- References:
- syntax for function header/prototype and implementation
- From: Jeff Kish
- Re: syntax for function header/prototype and implementation
- From: Giovanni Dicanio
- Re: syntax for function header/prototype and implementation
- From: Jeff Kish
- Re: syntax for function header/prototype and implementation
- From: Alex Blekhman
- syntax for function header/prototype and implementation
- Prev by Date: Re: syntax for function header/prototype and implementation
- Next by Date: Re: Can I Mix static and dynamic in the same project?
- Previous by thread: Re: syntax for function header/prototype and implementation
- Next by thread: Re: syntax for function header/prototype and implementation
- Index(es):
Relevant Pages
|