Thread View: comp.os.ms-windows.programmer.tools.mfc
1 messages
1 total messages
Started by iti
Tue, 19 Mar 1996 19:24
HELP!! VB - DLL
Author: iti
Date: Tue, 19 Mar 1996 19:24
Date: Tue, 19 Mar 1996 19:24
25 lines
1159 bytes
1159 bytes
I am trying to link a Visual Basic Application with a DLL (written in
C++). The definition of one of the functions in the DLL is ...
extern "C"
{
int __export myFunc (HWND clientWnd);
}
I declare this function in the VB Application as ...
"Declare Function myFunc Lib "myDll.dll" (ByVal hWnd%) As Integer"
When I run the VB Application I get the Error...
"Sub or Function not defined"
How can I declare the function in VB so that it recognizes this function ???
If you can help I would appreceate it if you can send an answer to my E-Mail
address: iti@netvision.net.il
Thanks
Yaakov
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads