calling a VB dll from C++


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: calling a VB dll from C++

  1. #1
    Join Date
    Sep 2009
    Posts
    2

    calling a VB dll from C++

    Hi,
    I am a novice programmer with limited experience. I am looking for some guidance in accessing a dll that is written in visual basic. I have been given the dll and told what the functions are that I need to implement in my C code. The problem I am having is I don't know how to interface to this dll, is there anyone who can help explain what I have to do or send me to a site that explains this? From what I have found so far, it seems that calling a VB dll from a C++ program is unusual. I am using visual studio 2005 for my code, the VB dll was written in VS 2008.

    Thank you

  2. #2
    Join Date
    Aug 2004
    Location
    Orange, California
    Posts
    1,262
    Since they are both creted in .Net, It does not matter what language they were created in. That is one of the major benifits of the .Net platform, any language can call functions written by any other language. All you need to know is how to access DLL functions from c++. Here is the link to Microsofts documentation on accessing DLL's from c++.
    http://msdn.microsoft.com/en-us/library/1ez7dh12.aspx

  3. #3
    Join Date
    Sep 2009
    Posts
    2
    I discovered that I need to call the dll explicitly, however none of the functions in the VB dll are exported. Do I now need to create a COM interface in order to access the functions in VB? If so is there a tutorial that shows how to do this?

    Thanks

Similar Threads

  1. Accessing VB dll from VC++
    By johnchristopher in forum VB Classic
    Replies: 2
    Last Post: 01-25-2006, 09:06 AM
  2. Calling VB dll from C#
    By Neo in forum .NET
    Replies: 2
    Last Post: 04-07-2002, 01:46 AM
  3. Calling a DLL from COM+ ActiveX DLL
    By Bruce Casson in forum VB Classic
    Replies: 1
    Last Post: 03-21-2002, 11:51 AM
  4. Calling a DLL
    By Big John in forum VB Classic
    Replies: 3
    Last Post: 02-22-2002, 03:25 PM
  5. error 49 bad dll calling convention
    By sam in forum VB Classic
    Replies: 0
    Last Post: 11-19-2000, 02:09 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center