Solved

VB  to  VC++

Posted on 2002-05-10
3
426 Views
Last Modified: 2010-05-02
Hi...

Just quick question....

**If i have a source code for application written in VB..
can it easily be coverted into VC++ ?

Or there is no such a thing?  it will reqiure
programming from the scratch?

Or it depends on what the code does?
(if this is the case, i will provide the
application's details)

**I Think that the produced .exe file is much
smaller if the applicaton was written in
VC++ .. is that ture?


Thanks
0
Comment
Question by:innovator
3 Comments
 
LVL 28

Accepted Solution

by:
AzraSound earned 50 total points
ID: 7001842
The closest thing I have seen (that is free):

"FILE: B2CSE.exe Converts Visual Basic Automation Code to Visual C++ (Q216388)"
http://support.microsoft.com/default.aspx?scid=kb;EN-US;q216388
0
 
LVL 22

Expert Comment

by:rspahitz
ID: 7001933
I suspect that if you have a program that converted from VB to VC, it would actually be much bigger!

This issue supposedly goes away in .net since the underlying structure is the same, only the tool is different.
0
 
LVL 4

Expert Comment

by:Monchanger
ID: 7003052
If your application is large, you might want to do a manual want (need) to go over the code generated by the converter, fixing in important places to make stabilize and optimize it.

AzraSound - from the title, that tool doesn't do GUI... (innovator - do you have a graphical interface needing conversion ?)

If it's a small application - one or two dialogs, I'd try a utility like that, and if it runs - it runs.

Some of your code might not be that easy to convert (VB comes with a lot of native functions you'd need to search the net a bit for in C, especially all the string manipulation strings)

About file size - C applications, when written properly should theoretically be smaller. But even if not so, VB applications need a runtime (which is many times bigger than small exe's) - in case you're going to distribute your program to people without VS.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
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.
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…

864 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

24 Experts available now in Live!

Get 1:1 Help Now