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
Solved

VB  to  VC++

Posted on 2002-05-10
3
436 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

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

Suggested Solutions

I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
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…

789 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