Hai,


I have written the calling convensions in VC++ like this :

unsigned short int _stdcall funcname(int x,int y)
{
.....


and I have created a def file like this :

LIBRARY TESTLIB

EXPORTS

funcname @1

But this works well when the program is invoked from within the VBIDE. But
fails
when I create an EXE file. Please help me.


Thanks in advance.
Kiran Kumar

Re: Exporting DLLs written in VC++ to VB. by Alex

Alex
Mon Jul 25 12:34:09 CDT 2005

Kiran Kumar wrote:
> [...] this works well when the program is invoked from
> within the VBIDE. But fails
> when I create an EXE file.

Probably EXE file cannot find DLL because it's located in
diferent directory. Ensure that DLL is in the same directory
as EXE or in direcotry, which is listed in %PATH%
environment variable.