cbonjovi
asked on
Visual Basic and Dll
I have to call from VB6 a function belonging to a Dll written by me in Windows ANSI C.
Function is Exported like this:
#define EXPORT extern __declspec (dllexport)
EXPORT BOOL CALLBACK DllInitByPhonema(HWND);
From VB,I've a client that declare the function like this:
Declare Function DllInitByPhonema Lib "rtpbuffer.dll" _
(ByVal Hwnd As Long) As Boolean
and then call :
DllInitByPhonema(Me.Hwnd)
Problem is error 453 that is missing entry point in dll's function.Don't know why,'cause this is the standard procedure of calling function in system dll like kernel32 or user32.
Help please.
Function is Exported like this:
#define EXPORT extern __declspec (dllexport)
EXPORT BOOL CALLBACK DllInitByPhonema(HWND);
From VB,I've a client that declare the function like this:
Declare Function DllInitByPhonema Lib "rtpbuffer.dll" _
(ByVal Hwnd As Long) As Boolean
and then call :
DllInitByPhonema(Me.Hwnd)
Problem is error 453 that is missing entry point in dll's function.Don't know why,'cause this is the standard procedure of calling function in system dll like kernel32 or user32.
Help please.
Becouse you're making a non Active X Dll, you must tell VB explicitly wich functions are available within your DLL, you do that by using a .DEF file that includes all the files that must be exportable.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.