🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.ms-windows.programmer.tools.mfc
Article #66

HELP!! VB - DLL

#66
From: iti
Date: Tue, 19 Mar 1996 19:24
25 lines
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
Technical Details
Message-ID: <NEWTNews.24485.827267151.Postmaster@Jerusalem.netvision.net.il>
Path: arc1-ca.pugleaf.net!news.NetVision.net.il!news

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!news.NetVision.net.il!news
From: iti@Jerusalem.netvision.net.il
Newsgroups: comp.os.ms-windows.programmer.tools.mfc,comp.lang.c++,comp.lang.basic.visual.database
Subject: HELP!! VB - DLL
Date: Tue, 19 Mar 96 12:24:35 PDT
Organization: NetVision LTD.
Message-ID: <NEWTNews.24485.827267151.Postmaster@Jerusalem.netvision.net.il>
NNTP-Posting-Host: ts002p2.pop2a.netvision.net.il
Mime-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
X-Newsreader: NEWTNews & Chameleon -- TCP/IP for MS Windows from NetManage