import a C++ function

From: Szymon Guz (guzo_at_stud.ics.p.lodz.pl)
Date: 02/28/04


Date: Sat, 28 Feb 2004 20:13:54 +0100

Hi,
how can I import from a dll such a function written in C:

static CRuntimeClass* PASCAL Load(CArchive& ar, UINT* pwSchemaNum);

the main problem I've got is with the "PASCAL" word.
And one thing more, how to declare the CArchive class, bacause writing
type CArchive;
doesn't help. The truth is that I don't have the type CArchive written
in Ada yet and I only want to declare it, sth. like defining in C:
class CArchive;



Relevant Pages

  • Re: Unsigned 32 bit
    ... This helper dll has the base adress 0x02400000. ... Its equivalent VB declare is ... Dim MyVar As Long, AdressOfMyVar1 As Long, AdressOfMyVar2 As Long ... Both project internal adresses are inside the jump table VB has build. ...
    (microsoft.public.vb.general.discussion)
  • Re: Unsigned 32 bit
    ... > For this helper dll I wrote a typelib in IDL called ukVBHLB.tlb. ... Its equivalent VB declare is ... > Both project internal adresses are inside the jump table VB has build. ...
    (microsoft.public.vb.general.discussion)
  • Re: Converting VB6 Structures to .NET
    ... This dll was written by a third party ... I will try ByRef. ... I am using a number of "Declare Function" statments to access the functions ... Public Structure zFuheader ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Exported function mangaled name
    ... that header file; it must be declared as __declspec ... You have to declare the function the same way in your .cpp file as in ... #define LIBSPEC __declspec ... See my essay on The Ultimate DLL Header File on my MVP Tips site. ...
    (microsoft.public.vc.mfc)
  • Re: VB6 Error: Bad DLL calling convention
    ... that is done as I was not doing it in my dll code. ... This method of changing the Calling Convention best suits me as I can use ... Declare the function in the DLL as (note the absence of the decorated ... Dim ret As Long ...
    (microsoft.public.vb.general.discussion)