comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » calling function in DLL compiled with C++
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: calling function in DLL compiled with C++ [message #28770 is a reply to message #28680] Tue, 08 January 2002 02:46 Go to previous messageGo to previous message
Gert Van de Wouwer is currently offline  Gert Van de Wouwer
Messages: 21
Registered: January 2002
Junior Member
Hi,

I struggled with this problem too. The problem is probably to be solved by
changing the build parameters of your dll.
I use IDL on window2000 and Visual Studio 6.0. I use an exports.def file to
export the dll symbols (rather than declspec-things)
see example below - hope this helps

Gert


exports.def:
--------------------
LIBRARY LocMinDll
DESCRIPTION 'ILD dll LocMin (c)GVDW'

EXPORTS
GetVersion
LocMinDll

------------------------

the code goes in a cpp file
--------------
IDL_LONG IDL_STDCALL LocMinDll( int argc, void* argv[])
{
<your super code here>
}





"Dominik Paul" <dpaul@ukl.uni-freiburg.de> wrote in message
news:a1c6k0$16f$1@n.ruf.uni-freiburg.de...
> Hi NG,
>
> I tried to write a DLL suing C++. But I have a big problem, calling the
> function in the DLL out of IDL, when the DLL is compiled using a
> C++-compiler. Using a C-compiler, everything is fine, there is no problem,
> calling the function.
>
> Does somebody know why? Is there a difference in writing a DLL for IDL in
C
> and in C++?
> Or does somebody has an DLL-example in C++?
>
> Thanks for your help
> Dom
>
>
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: idl5.5 widget_draw and color
Next Topic: All day FFT....

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sat Oct 11 17:20:34 PDT 2025

Total time taken to generate the page: 0.00212 seconds