Need a Utility
-
I need to convert from VB junk (background: don't read vb, and don't want to) to C code. Anyone know of any utilities that do this? Just trying to keep the forces of entropy at bay
IMHO, you don't want to do this. As bad as junk VB code can be, i find it hard to believe it will translate into better C code. Things which are Evil™ but run-of-the mill in VB are Pure Darkness Itself® in C. Either link it in as a COM object, or re-write it.
Shog9
So much he don't understand, Just might never make it to a man...
-
I need to convert from VB junk (background: don't read vb, and don't want to) to C code. Anyone know of any utilities that do this? Just trying to keep the forces of entropy at bay
You could migrate/upgrade it to VB.NET code, then using the CodeDOM, switch it to C#. Also, once it's accessible through .NET, you could use it with Managed C++ as well... And if it's worth all this, that VB code must be really nasty. John
"We want to be alone when we hear too many words and we feel alone when it has been a while since anyone has spoken to us." Paul David Tripp -- War of Words -
I need to convert from VB junk (background: don't read vb, and don't want to) to C code. Anyone know of any utilities that do this? Just trying to keep the forces of entropy at bay
1. Reverse engineer it using a good UML tool. 2. Have a good laugh 3. Start again on a blank sheet of paper :laugh: Alternatively, document what it does and why (in detail), review it and design something that actually addresses the problem achieves the original app was meant to solve. Anna :rose: Homepage | My life in tears "Be yourself - not what others think you should be" - Marcia Graesch "Anna's just a sexy-looking lesbian tart" - A friend, trying to wind me up. It didn't work. Trouble with resource IDs? Try the Resource ID Organiser Visual C++ Add-In
-
1. Reverse engineer it using a good UML tool. 2. Have a good laugh 3. Start again on a blank sheet of paper :laugh: Alternatively, document what it does and why (in detail), review it and design something that actually addresses the problem achieves the original app was meant to solve. Anna :rose: Homepage | My life in tears "Be yourself - not what others think you should be" - Marcia Graesch "Anna's just a sexy-looking lesbian tart" - A friend, trying to wind me up. It didn't work. Trouble with resource IDs? Try the Resource ID Organiser Visual C++ Add-In
Anna-Jayne Metcalfe wrote: 1. Reverse engineer it using a good UML tool. 2. Have a good laugh :D cheers, Chris Maunder
-
Anna-Jayne Metcalfe wrote: 1. Reverse engineer it using a good UML tool. 2. Have a good laugh :D cheers, Chris Maunder
Or a good cry....
-
I need to convert from VB junk (background: don't read vb, and don't want to) to C code. Anyone know of any utilities that do this? Just trying to keep the forces of entropy at bay
RedZenBird wrote: I need to convert from VB junk (background: don't read vb, and don't want to) to C code. Anyone know of any utilities that do this? No easy way, if you don't want to read vb. You could use the upgrade wizard to port it to VB.NET and, with a few modifications (if the code is too junky, with huge modifications), use my latest article[^] to port it to C#. Clean it up, and have fun. Since I love C#, I would never do this last step, unless you really have lots of Interop code: now, you can easily port to managed C++ by adding tons of *, -> and String::Concat. Some smart macros combined with regular expressions could really do this. Or rewrite everything. Kant wrote: Actually she replied back to me "You shouldn't fix the bug. You should kill it"
-
You could migrate/upgrade it to VB.NET code, then using the CodeDOM, switch it to C#. Also, once it's accessible through .NET, you could use it with Managed C++ as well... And if it's worth all this, that VB code must be really nasty. John
"We want to be alone when we hear too many words and we feel alone when it has been a while since anyone has spoken to us." Paul David Tripp -- War of Words -
Anna-Jayne Metcalfe wrote: 1. Reverse engineer it using a good UML tool. 2. Have a good laugh :D cheers, Chris Maunder
I knew you'd like that one! ;) Anna :rose: Homepage | My life in tears "Be yourself - not what others think you should be" - Marcia Graesch "Anna's just a sexy-looking lesbian tart" - A friend, trying to wind me up. It didn't work. Trouble with resource IDs? Try the Resource ID Organiser Visual C++ Add-In
-
I need to convert from VB junk (background: don't read vb, and don't want to) to C code. Anyone know of any utilities that do this? Just trying to keep the forces of entropy at bay
Well, yes, I DO know of such a utility - it's on either the MSDN or Microsoft websites (I don't remember where :-() and it's called VB2C or something like that - a link was posted on CP about a month ago. I'll try and find it tomorrow at work, as I've got the binaries there... Stuart Dootson 'Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p'
-
I knew about those lovely extra dlls that VB.NET uses, but why aren't they accessible from C#? Or is there something else getting in the way. BTW, I was mostly joking about this. :) John
"We want to be alone when we hear too many words and we feel alone when it has been a while since anyone has spoken to us." Paul David Tripp -- War of Words -
You could migrate/upgrade it to VB.NET code, then using the CodeDOM, switch it to C#. Also, once it's accessible through .NET, you could use it with Managed C++ as well... And if it's worth all this, that VB code must be really nasty. John
"We want to be alone when we hear too many words and we feel alone when it has been a while since anyone has spoken to us." Paul David Tripp -- War of WordsJohn Fisher wrote: You could migrate/upgrade it to VB.NET code, then using the CodeDOM, switch it to C :laugh::laugh: The VB conversion wizard, hmm at its best is not very good, but to then move it to C#.
"Je pense, donc je mange." - Rene Descartes 1689 - Just before his mother put his tea on the table. Shameless Plug - Distributed Database Transactions in .NET using COM+
-
I knew about those lovely extra dlls that VB.NET uses, but why aren't they accessible from C#? Or is there something else getting in the way. BTW, I was mostly joking about this. :) John
"We want to be alone when we hear too many words and we feel alone when it has been a while since anyone has spoken to us." Paul David Tripp -- War of WordsJohn Fisher wrote: I knew about those lovely extra dlls that VB.NET uses, but why aren't they accessible from C#? Or is there something else getting in the way. They are not the problem; it's on the CodeDOM, because the .NET Framework only provides classes to generate code from a CodeDOM tree, but not parser classes to generate a CodeDOM tree from code. Kant wrote: Actually she replied back to me "You shouldn't fix the bug. You should kill it"
-
Well, yes, I DO know of such a utility - it's on either the MSDN or Microsoft websites (I don't remember where :-() and it's called VB2C or something like that - a link was posted on CP about a month ago. I'll try and find it tomorrow at work, as I've got the binaries there... Stuart Dootson 'Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p'
cool. thanx Just trying to keep the forces of entropy at bay
-
cool. thanx Just trying to keep the forces of entropy at bay
Here's the link[^]!!! There ARE limitations to the conversion process - don't expect any big bits of code to convert straight through... Stuart Dootson 'Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p'
-
Here's the link[^]!!! There ARE limitations to the conversion process - don't expect any big bits of code to convert straight through... Stuart Dootson 'Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p'
thank you. i'll give this a whirl.:-D Just trying to keep the forces of entropy at bay