Solved

calling VC++ dll/exe in VB

Posted on 2003-11-01
5
266 Views
Last Modified: 2010-05-03
how do i call a  VC++ code in VB6?

i have a vc++ code but i need to embed it in a VB application.for that i either need to create a dll or a component.i would be highly obliged if you could tell me the way of converting an already existing VC++ code into a Win32 dll..is there any way so that  i can  directly call a Vc++ exe in a VB program?
thanx
0
Comment
Question by:nehana279
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 

Accepted Solution

by:
Filex earned 125 total points
ID: 9664815
This link may help you:
Call VC++ .DLL From Visual Basic: Demo
http://www.freevbcode.com/ShowCode.Asp?ID=3402

It includes source code for the VC++ dll and info on using it in VB
0
 

Expert Comment

by:j_a_delooze
ID: 9666916
didn't read the article in filex's post but remember that most c++ compilers default to __cdecl, vb uses __stdcall and __fastcall only.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Suggested Courses
Course of the Month11 days, 9 hours left to enroll

623 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question