Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Visual Basic > VB 2005 > Pro Visual Basic 2005
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Pro Visual Basic 2005 For advanced Visual Basic coders working in version 2005. Beginning-level questions will be redirected to other forums, including Beginning VB 2005.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Pro Visual Basic 2005 section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old April 10th, 2006, 01:30 PM
Registered User
 
Join Date: Apr 2006
Location: , , .
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default call dll in VS2005

Hi all,
How can I call/load/register ag8614x_32.dll in VS2005 ?

Error msg: Unable to load C:\WINDOWS\system32\ag8614x_32.dll

'*** Fucntion call ****
errStatus = ag8614x_init("GPIB0::23::INSTR", 0, 1, vi)
'*** Declare ****
Declare Function ag8614x_init Lib "C:\WINDOWS\system32\ag8614x_32.dll" _
                            (ByVal resourceName As String, _
                             ByVal IDQuery As Integer, _
                             ByVal resetDevice As Integer, _
    ByVal instrumentHandle As Long) As Long

  #2 (permalink)  
Old May 29th, 2006, 05:06 AM
Registered User
 
Join Date: May 2006
Location: Mansoura, , Egypt.
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to VBCoder Send a message via Yahoo to VBCoder
Default

You may put the dll file in My project folder in your project, then put the declaration in a module and I think it will work

Example:
D:\Interfacing2005\Interfacing VB2005\My Project\yourDLL.dll


Eng.W.El-Badry
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Trouble referencing a DLL in VS2005 sgurkin Visual Studio 2005 0 November 5th, 2008 12:53 PM
How to call a COM DLL from VC++, subhash_w Visual C++ 0 July 15th, 2005 11:33 PM
How to call a COM dll from C/C++... subhash_w BOOK: Professional C++ 1 July 15th, 2005 11:27 AM
How to call a COM DLL from C/C++ subhash_w C++ Programming 0 July 15th, 2005 05:49 AM



All times are GMT -4. The time now is 07:16 PM.


Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.