Solved

calling VC++ dll/exe in VB

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

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

Question has a verified solution.

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

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
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…

751 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