473,387 Members | 1,904 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Converting Vbasic code to C code


any good tool?

any response would be appreciated
--
Posted via http://dbforums.com
Nov 13 '05 #1
10 2138
dominant wrote:
any good tool?

any response would be appreciated

Yes, generically it's called a programmer, sometimes referred
to as a software engineer or developer. Some are tools.

Seriously though, this is not a question about the standard C
programming language, hence off topic here.

Please RTFF.
--ag
--
Artie Gold -- Austin, Texas

Nov 13 '05 #2

"dominant" <me*********@dbforums.com> wrote in message

any good tool?

It depends what you want to use the C source for. Generally automated
translaters don't produce human-readable C, nor do they produce particularly
efficient C.
Since you presumably already have a VBasic implementation for your platform,
there's not much advantage in having a C version of your programs.
Nov 13 '05 #3


Malcolm wrote:

"dominant" <me*********@dbforums.com> wrote in message

any good tool?

It depends what you want to use the C source for. Generally automated
translaters don't produce human-readable C, nor do they produce particularly
efficient C.
Since you presumably already have a VBasic implementation for your platform,
there's not much advantage in having a C version of your programs.


So, there's no point in bothering with such a conversion for a L:inux,
Unix, or Mac box?
--
Fred L. Kleinschmidt
Boeing Associate Technical Fellow
Technical Architect, Common User Interface Services
M/S 2R-94 (206)544-5225
Nov 13 '05 #4

"Fred L. Kleinschmidt" <fr*****************@boeing.com> wrote in

So, there's no point in bothering with such a conversion for a L:inux,
Unix, or Mac box?

Firstly you would have to separate out all the MS Windows specific stuff.
Then you would not have to care that your Linux code is not editable or even
readable.
This might be the case - say in a completely debugged chess program written
in Visual Basic. The rules of chess are not going to change, so we can treat
the play_chess function as a black box.
Generally however you would be better off rewriting the whole thing in C
using a human programmer.
Nov 13 '05 #5
On Thu, 11 Sep 2003 12:49:55 -0400, dominant wrote:

any good tool?


Grey matter.

Nov 13 '05 #6

I see, The program in Vbasic is about some mathematical calculations
regarding some experiements.

Is it easy to do that?
--
Posted via http://dbforums.com
Nov 13 '05 #7
dominant <me*********@dbforums.com> scribbled the following:
I see, The program in Vbasic is about some mathematical calculations
regarding some experiements. Is it easy to do that?


The actual mathematics will be easy to translate. It's the interaction
with the OS (Windows, Linux, ...) where you'll be most likely to have
problems. GUIs, in particular, translate badly, as Linux doesn't support
the Win32 API (for obvious reasons).

--
/-- Joona Palaste (pa*****@cc.helsinki.fi) ---------------------------\
| Kingpriest of "The Flying Lemon Tree" G++ FR FW+ M- #108 D+ ADA N+++|
| http://www.helsinki.fi/~palaste W++ B OP+ |
\----------------------------------------- Finland rules! ------------/
"You have moved your mouse, for these changes to take effect you must shut down
and restart your computer. Do you want to restart your computer now?"
- Karri Kalpio
Nov 13 '05 #8

Well, if the program uses forms (Vbasic) then i should make similar
forms in C? Even in a Dos mode?
--
Posted via http://dbforums.com
Nov 13 '05 #9
dominant <me*********@dbforums.com> scribbled the following:
Well, if the program uses forms (Vbasic) then i should make similar
forms in C? Even in a Dos mode?


C does not know of "forms" or "Dos mode". C is specified purely in the
terms of an abstract machine. Read your own implementation's manual to
find out about "forms" or "Dos mode".

--
/-- Joona Palaste (pa*****@cc.helsinki.fi) ---------------------------\
| Kingpriest of "The Flying Lemon Tree" G++ FR FW+ M- #108 D+ ADA N+++|
| http://www.helsinki.fi/~palaste W++ B OP+ |
\----------------------------------------- Finland rules! ------------/
"Shh! The maestro is decomposing!"
- Gary Larson
Nov 13 '05 #10
Joona I Palaste wrote:

The actual mathematics will be easy to translate. It's the interaction
with the OS (Windows, Linux, ...) where you'll be most likely to have
problems. GUIs, in particular, translate badly, as Linux doesn't support
the Win32 API (for obvious reasons).


There is Wine: http://www.winehq.org/
Nov 13 '05 #11

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: masood.iqbal | last post by:
In this day and age, you never say no to any work that is thrown at you ---- so when I was offered this short-term contract to convert legacy C code to C++, I did not say no. Personally I believed...
4
by: eight02645999 | last post by:
hi i need help with converting a piece of perl code to python ...... my $start = '\'; my $file = '\'; my $end = '\'; ..... while(<FILE>) #open a file {
2
by: Sai | last post by:
Hello, I am new to .Net world and I need some help in converting VB.Net code to C#. Public Overridable Property CaseSensitiveKeySort() As Boolean Get Return _caseSensitiveKeySort End Get...
4
by: 0310889 | last post by:
I am doing my honours project at uni and have to use C programming and the IIC bus, not the best combination as I have never done that much programming and I had never heard of the IIC bus! Anyway,...
6
by: Vagabond Software | last post by:
We're talking 2005 for both languages. Left, Top, Right, Bottom, Height, and Width are Integers. C# version: public override int GetHashCode() { return Left ^ ((Top << 13) | (Top >0x13)) ^...
4
by: Mohitz | last post by:
Any pointers as to how one should go about porting procedural type code into object oriented code?? --- Mohit
9
by: Mantu | last post by:
I found nice realtime fluid simulation code created with c++. I converted it to vb.net but i have run into trouble. You can find original c++ code here:...
3
by: Dhananjay | last post by:
Hi All, I am facing problem when i am converting C#.net code(Delegate concept) into vb.net. I am unable to do that . Can someone help me to solve the problem. I am providing my C#.net code. ...
12
by: dorandoran | last post by:
I followed this link to add new record from gridview. So far it's good but I need to modify the last piece to edit the record that I will supply the record id. ...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.