Click here to Skip to main content
14,642,321 members
Rate this:
Please Sign up or sign in to vote.
See more:
hi guys please excuse any mistakes i may make , i am not a programmer , i have a VB6 slightly gambling related program , approximately 1500 lines of code, i want to add to it , expand the data scraped for , more sports , more competitions ,more wager types.
i have been told that " because of the way it has been set up " i cannot add anything further to it etc new stuff can be added ??.
can i get this VB6 stuff converted to a more modern language ?? , set up so i can greatly expand the program.
please guys , do not say " scrap it and start again ", i have spent a lot of money developing what i ended up with ,thanks palindon

What I have tried:

to date i have tried nothing , some time it did ask this same question on a similar site , (no i cannot remember the name) i do remember however , i only seemed to get " smart " replies.
Posted
Updated 3-Jul-20 2:18am
Comments
Dave Kreskowiak 3-Jul-20 10:37am
   
The problem you have with "cannot add anything further to it" has nothing to do with the language itself. It's with the design of the code. If the design is so bad that you can't add anything else to it, you have no choice but to scrap it and start over.
Rate this:
Please Sign up or sign in to vote.

Solution 1

Quote:
can i get this VB6 stuff converted to a more modern language ??
Yes. You could rather easily convert it to VB.NET or (better) C#.

Quote:
" scrap it and start again ", i have spent a lot of money developing what i ended up with ,thanks palindon
'Start it again' (with a modern programming language) is the 'golden path', actually (that's what I meant with 'conversion' in the above line). Your spent money and time is called 'experience'.
   
Comments
Afzaal Ahmad Zeeshan 3-Jul-20 5:59am
   
5ed.
CPallini 3-Jul-20 6:30am
   
Thank you very much.
Rate this:
Please Sign up or sign in to vote.

Solution 3

Quote:
do not say " scrap it and start again ", i have spent a lot of money developing what i ended up with

Sorry, but ... "scrap it and start again" is the best approach.
VB6 is a very old, pretty-much-dead language and it doesn't translate well into any modern framework. It can be done, there are even tools to do it, but what you end up with is worse than the original, not better - and much harder to maintain because it's old code mangled into a new framework.

Seriously, your best option is to use the existing app as a specification and write a new app to that using a modern language and framework. I know, I know - that isn't what you wanted to hear: but translating code doesn't produce something magically "good", particularly if you start with something that '"because of the way it has been set up" i cannot add anything further to it' which almost certainly means it's been hacked to death to get it to it's current state already.

One of the hardest jobs we have to do as developers is to throw away code because it just isn't fit for purpose anymore, even if we have invested significant time, effort, and money into it. But we do have to do it, just like when a car is fifteen years old you have to decide when it's worth fixing or you would be better of scrapping it and buying a replacement ...
   
Rate this:
Please Sign up or sign in to vote.

Solution 2

You can convert VB 6 code with some tool into newer Vb.net code but the all have some flaws. Read in the article How to migrate from VB6 to VB .NET.

But the best way is to analyze the code and rewrite it. I am pretty sure that you find some issue which are worth to make them better.
   
Rate this:
Please Sign up or sign in to vote.

Solution 4

You have to realise that the "value" in your app isn't the code itself, it is the method that has been developed...it is where the data is gathered, how it is used etc. When you "scrap it and start again" you can get rid of the code, but just re-code the method in a new language and in a better way. So you're not losing the thing that is actually valuable, just making it better.
   

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100