D - Quickquestion
- Charles Sanders (3/3) Oct 08 2003 If i use implib on a dll created by MSVC, do I need to declare the funct...
- Ant (5/7) Oct 08 2003 Of course.
- Charles Sanders (5/13) Oct 08 2003 I mean is it extern (Windows ) or extern (C )
- Ant (6/7) Oct 08 2003 That's a good question. I don't even know why
- Vathix (7/16) Oct 08 2003 A DLL exported function can have any extern.. you just have to use the s...
- Sean L. Palmer (6/21) Oct 08 2003 If the C dll uses __cdecl convention, use extern (C), and if it uses
- Charles Sanders (4/26) Oct 08 2003 Ahh thanks, sorry think ive asked this before but forgot :).
If i use implib on a dll created by MSVC, do I need to declare the functions extern (Windows) in my .d file ? C
Oct 08 2003
In article <bm1pcg$b79$1 digitaldaemon.com>, Charles Sanders says...If i use implib on a dll created by MSVC, do I need to declare the functions extern (Windows) in my .d file ?Of course. The compiler needs to know what you're talking about. You can't have undeclared symbols. Ant
Oct 08 2003
I mean is it extern (Windows ) or extern (C ) C "Ant" <Ant_member pathlink.com> wrote in message news:bm1rv2$enc$1 digitaldaemon.com...In article <bm1pcg$b79$1 digitaldaemon.com>, Charles Sanders says...functionsIf i use implib on a dll created by MSVC, do I need to declare theextern (Windows) in my .d file ?Of course. The compiler needs to know what you're talking about. You can't have undeclared symbols. Ant
Oct 08 2003
In article <bm1t0n$g3b$1 digitaldaemon.com>, Charles Sanders says...I mean is it extern (Windows ) or extern (C )That's a good question. I don't even know why we have (windows) I just found an explanation on the D pages. probably reading it would answer that question. Ant
Oct 08 2003
"Ant" <Ant_member pathlink.com> wrote in message news:bm1ur5$ihi$1 digitaldaemon.com...In article <bm1t0n$g3b$1 digitaldaemon.com>, Charles Sanders says...A DLL exported function can have any extern.. you just have to use the same one when calling it. By default in your C code, the calling convention is cdecl, which in D is extern(C), or you can specify stdcall in the C code (commonly implemented as __stdcall) and use extern(Windows) in D. It's just most common to use stdcall for DLLs.I mean is it extern (Windows ) or extern (C )That's a good question. I don't even know why we have (windows) I just found an explanation on the D pages. probably reading it would answer that question. Ant
Oct 08 2003
If the C dll uses __cdecl convention, use extern (C), and if it uses __stdcall convention, use extern (Windows). If it uses __fastcall, you're hosed. ;) Sean "Charles Sanders" <sanders-consulting comcast.net> wrote in message news:bm1t0n$g3b$1 digitaldaemon.com...I mean is it extern (Windows ) or extern (C ) C "Ant" <Ant_member pathlink.com> wrote in message news:bm1rv2$enc$1 digitaldaemon.com...In article <bm1pcg$b79$1 digitaldaemon.com>, Charles Sanders says...functionsIf i use implib on a dll created by MSVC, do I need to declare theextern (Windows) in my .d file ?Of course. The compiler needs to know what you're talking about. You can't have undeclared symbols. Ant
Oct 08 2003
Ahh thanks, sorry think ive asked this before but forgot :). C "Sean L. Palmer" <palmer.sean verizon.net> wrote in message news:bm1vac$j8s$1 digitaldaemon.com...If the C dll uses __cdecl convention, use extern (C), and if it uses __stdcall convention, use extern (Windows). If it uses __fastcall, you're hosed. ;) Sean "Charles Sanders" <sanders-consulting comcast.net> wrote in message news:bm1t0n$g3b$1 digitaldaemon.com...I mean is it extern (Windows ) or extern (C ) C "Ant" <Ant_member pathlink.com> wrote in message news:bm1rv2$enc$1 digitaldaemon.com...In article <bm1pcg$b79$1 digitaldaemon.com>, Charles Sanders says...functionsIf i use implib on a dll created by MSVC, do I need to declare theextern (Windows) in my .d file ?Of course. The compiler needs to know what you're talking about. You can't have undeclared symbols. Ant
Oct 08 2003