Solved

calling VC++ dll/exe in VB

Posted on 2003-11-01
5
259 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
5 Comments
 

Accepted Solution

by:
Filex earned 125 total points
Comment Utility
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
Comment Utility
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

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

762 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

Need Help in Real-Time?

Connect with top rated Experts

7 Experts available now in Live!

Get 1:1 Help Now