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

    calling a VB dll from C++

    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
    Orange, California
    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++.

  3. #3
    Join Date
    Sep 2009
    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?


Similar Threads

  1. Accessing VB dll from VC++
    By johnchristopher in forum VB Classic
    Replies: 2
    Last Post: 01-25-2006, 10:06 AM
  2. Calling VB dll from C#
    By Neo in forum .NET
    Replies: 2
    Last Post: 04-07-2002, 02:46 AM
  3. Calling a DLL from COM+ ActiveX DLL
    By Bruce Casson in forum VB Classic
    Replies: 1
    Last Post: 03-21-2002, 12:51 PM
  4. Calling a DLL
    By Big John in forum VB Classic
    Replies: 3
    Last Post: 02-22-2002, 04:25 PM
  5. error 49 bad dll calling convention
    By sam in forum VB Classic
    Replies: 0
    Last Post: 11-19-2000, 03: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
Latest Articles
Questions? Contact us.
Web Development
Latest Tips
Open Source

   Development Centers

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