Hello,


I must use a custom dll in my eVB project. I have to call 2 functions of

this dll. So I have two questions.


1) How can I call GetDllVersion with eVB (declaration + calling of

function)??


Here is the declaration of the function:


char * GetDllVersion(void); 'c declaration


This function must return the dll version (for example :1.1), my problem is

the return type of the dll.


2) How can I call the GetToto function in eVB (declaration + calling of

function)??


Here is the declaration of the function:


int GetToto(typeStruc varToto, int var1,int var2) with the following

structure:


typedef struct

{ char char1;

int int1;

}typeStruc;


Thanks a lot for your answer.

Re: Declaration and calling of a dll in eVB by Roy

Roy
Fri Feb 06 11:12:49 CST 2004

This link may help you:

http://support.microsoft.com/default.aspx?scid=kb;en-us;241530

"massimo capetola" <bnob@bluewin.ch> wrote in message
news:Oyfk2BK7DHA.2472@TK2MSFTNGP10.phx.gbl...
> Hello,
>
>
> I must use a custom dll in my eVB project. I have to call 2 functions of
>
> this dll. So I have two questions.
>
>
> 1) How can I call GetDllVersion with eVB (declaration + calling of
>
> function)??
>
>
> Here is the declaration of the function:
>
>
> char * GetDllVersion(void); 'c declaration
>
>
> This function must return the dll version (for example :1.1), my problem
is
>
> the return type of the dll.
>
>
> 2) How can I call the GetToto function in eVB (declaration + calling of
>
> function)??
>
>
> Here is the declaration of the function:
>
>
> int GetToto(typeStruc varToto, int var1,int var2) with the following
>
> structure:
>
>
> typedef struct
>
> { char char1;
>
> int int1;
>
> }typeStruc;
>
>
> Thanks a lot for your answer.
>
>
>



Re: Declaration and calling of a dll in eVB by Massimo

Massimo
Sun Feb 08 08:06:44 CST 2004

Ok for the stucture. I will try...

But for the *char return type, do you have an idea because when I call this
function in eVB, with this declaration :

public declare GetDllVersion lib "MyLib.dll" () as string

This function must return a string, like "1.1", but returns "_1r".

There is a problem conversion ANSI-Unicode ?


"Roy Soltoff" <royUNDO@CLEANmedicomp.com> a écrit dans le message de
news:%231QVQQN7DHA.2924@tk2msftngp13.phx.gbl...
> This link may help you:
>
> http://support.microsoft.com/default.aspx?scid=kb;en-us;241530
>
> "massimo capetola" <bnob@bluewin.ch> wrote in message
> news:Oyfk2BK7DHA.2472@TK2MSFTNGP10.phx.gbl...
> > Hello,
> >
> >
> > I must use a custom dll in my eVB project. I have to call 2 functions of
> >
> > this dll. So I have two questions.
> >
> >
> > 1) How can I call GetDllVersion with eVB (declaration + calling of
> >
> > function)??
> >
> >
> > Here is the declaration of the function:
> >
> >
> > char * GetDllVersion(void); 'c declaration
> >
> >
> > This function must return the dll version (for example :1.1), my problem
> is
> >
> > the return type of the dll.
> >
> >
> > 2) How can I call the GetToto function in eVB (declaration + calling of
> >
> > function)??
> >
> >
> > Here is the declaration of the function:
> >
> >
> > int GetToto(typeStruc varToto, int var1,int var2) with the following
> >
> > structure:
> >
> >
> > typedef struct
> >
> > { char char1;
> >
> > int int1;
> >
> > }typeStruc;
> >
> >
> > Thanks a lot for your answer.
> >
> >
> >
>
>