Solved

calling VC++ dll/exe in VB

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

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…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
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…

778 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