Current location: Hot Scripts Forums » Programming Languages » Visual Basic » Acessing VC DLL from VB6


Acessing VC DLL from VB6

Reply
  #1 (permalink)  
Old 08-15-06, 04:56 PM
tim8w tim8w is offline
Wannabe Coder
 
Join Date: Nov 2004
Posts: 183
Thanks: 0
Thanked 0 Times in 0 Posts
Unhappy Acessing VC DLL from VB6

I am trying to access some functions in a DLL created in VC. When I make the call to the function VB returns the error that it can't find the DLL. I've checked the spelling SEVERAL times. It's spelled correctly. I've also tried placing the DLL in the local folder where my VB APP is, in the Windows System folder and in the Windows System32 folder. The VC program finds the DLL in all these locations, but the VB program does not. I've even tried hard-coding the path to the DLL. Still no luck. Here's the declaration and call:

Declare Function ZMDOpenPort Lib "ZMDSerialComm.dll" Alias "OpenPort" (ByVal port As Long, baudRate As Long, parity As Long, stopBits As Long, nCOM As Long) As Long


Call ZMDOpenPort( MyPort, MyBaud, MyParity, MyStop, MyCom )
Reply With Quote
  #2 (permalink)  
Old 08-28-06, 03:14 PM
mickeyray mickeyray is offline
Newbie Coder
 
Join Date: Apr 2006
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Several things can cause this error
Most often the dll needs to be registered with windows or perhaps the dll is calling some other dll that is not present
Can you post the declare statement and the h file declaration for this call?
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Need help with Calls in a DLL File MGuyM Visual Basic 4 05-31-06 03:33 PM
Need to make a DLL ervkosch C/C++ 0 04-29-04 06:07 PM


All times are GMT -5. The time now is 01:17 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.