Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

calling VC++ dll/exe in VB

Posted on 2003-11-01
5
Medium Priority
?
267 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 500 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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
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…
Suggested Courses

721 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