Wrox Programmer Forums
|
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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 10th, 2006, 01:30 PM
Registered User
 
Join Date: Apr 2006
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

 
Old May 29th, 2006, 05:06 AM
Registered User
 
Join Date: May 2006
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





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





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