Need to find a C++ to Visual Basic Conversion Program...
- SirWinner
- DBB Fleet Admiral
- Posts: 2700
- Joined: Thu Nov 05, 1998 12:01 pm
- Location: Oklahoma City, Oklahoma, United States of America
- Contact:
Need to find a C++ to Visual Basic Conversion Program...
Need to convert some C++ code to Visual Basic 6 or VB.Net!
The client application has to be in VB if at all possible!
Anyone have any helpful links?
Please NO discussion on which programming language is better. Each has its' own strengths and weaknesses.
Thanks.
The client application has to be in VB if at all possible!
Anyone have any helpful links?
Please NO discussion on which programming language is better. Each has its' own strengths and weaknesses.
Thanks.
- SirWinner
- DBB Fleet Admiral
- Posts: 2700
- Joined: Thu Nov 05, 1998 12:01 pm
- Location: Oklahoma City, Oklahoma, United States of America
- Contact:
Let me clarify:
I have to maintain the code.
The application program has code already written in VB that is up and running.
Need to add functionality from some C++ stuff into this application but the way the C++ code is written it is not easily understood.
Don't have the time to rewrite the existing application program in C++.
Sounds like I'll have to hand code the C++ to VB conversion.
Thanks for the feedback.
I have to maintain the code.
The application program has code already written in VB that is up and running.
Need to add functionality from some C++ stuff into this application but the way the C++ code is written it is not easily understood.
Don't have the time to rewrite the existing application program in C++.
Sounds like I'll have to hand code the C++ to VB conversion.
Thanks for the feedback.
Hopefully, the C++ code is just a bunch of functions. If so, just compile the project as a DLL instead of an application. Then you can use the LoadLibrary API to access the DLL from VB, and not have to mess with learning COM objects.
If you wind up having to use COM (ActiveX) to use your C++ code in VB, look up IDispatch in the MSDN docs.
If you wind up having to use COM (ActiveX) to use your C++ code in VB, look up IDispatch in the MSDN docs.
- SirWinner
- DBB Fleet Admiral
- Posts: 2700
- Joined: Thu Nov 05, 1998 12:01 pm
- Location: Oklahoma City, Oklahoma, United States of America
- Contact:
The calls I need to make are to DLL's but the code that makes those calls is in C++ with a lot of excess stuff that is C++ header file related (etc...) to get the programs to run when compiled.
Going to attempt to hand code it from C++ to VB.
Thanks for the input guys.
Did e-mail the company that has the SDK stuff... Their old stuff has VB and C++ example code but all their new stuff is in C++.
- Sounds like Microsoft and the new DirectX samples but this SDK was not done by Microsoft.
Going to see if anything in the OLD stuff will give hints on how to do the conversion!
I'd much rather imbed the code needed into ONE program than to have tons of baby applications in multiple programming languages.
Going to attempt to hand code it from C++ to VB.
Thanks for the input guys.
Did e-mail the company that has the SDK stuff... Their old stuff has VB and C++ example code but all their new stuff is in C++.
- Sounds like Microsoft and the new DirectX samples but this SDK was not done by Microsoft.
Going to see if anything in the OLD stuff will give hints on how to do the conversion!
I'd much rather imbed the code needed into ONE program than to have tons of baby applications in multiple programming languages.
Well, the thing is, if the linker establishes the links at design time, the code doesn't necessarily need to establish a connection to the DLL. Visual C++ can use the TLB (type library) file to determine where the DLL's exports are in the DLL file, and compile against the DLL without needing to call LoadLibrary. This is how VC++ links against the WinAPI; MS ships VC++ with .TLB files for every WinAPI library, and even though the actual code is called at runtime, the link is made at compile time.
You'll find references to .dll files in the Project Settings dialog box, IIRC.
You'll find references to .dll files in the Project Settings dialog box, IIRC.