Forum > Beginners

Porting a VB6 Project

(1/1)

axisdj:
Hello,

Just wanted to know if anyone has had success porting a vb6 app to lazarus. I have 3 apps with about 200k LOC and would like to attempt to port it to lazarus.

Are there any Basic dialects that would make converting easier?

Thanks

Edson:
VB6 and Object Pascal are very different languages, no matter which dialect you use.

Porting is possible. The difficult depends on the size and the complexity of the VB6 App. If it use classes and interfaces, probably it would be too hard. It woul be useful to know what kind of App you pretend to port.

I had to change all the architecture in some Apps I have ported. Practically, I have rewritten most of the code on some cases.

If it is possible, you could start porting some independent parts of the App. It will be more secure.

Anyway, you can ask some specific question of the porting. There are very helpful people here for to answer.

Deepaak:
Yes, Porting a vb6 project is possible, but there is no project conversion tools available currently, so its a time consuming depends on the type of application. Just have a try and share your expirence.

valdir.marcos:
Visual Basic and Free Pascal are very different languages.
I have seen people rewriting VB programs in Lazarus, not porting them.
It is a manual job, without help of tools or wizards.

Have you checked if Gambas would be a solution for you?
http://en.wikipedia.org/wiki/Gambas

If you start rewriting one of your VB programs in Lazarus from scratch, we can try to help you on specific doubts.

Start from this topic :
http://forum.lazarus.freepascal.org/index.php/topic,24125.0.html

If possible also take a look on:
http://wiki.freepascal.org/Pascal_and_Lazarus_Books_and_Magazines
http://forum.lazarus.freepascal.org/index.php?topic=15795.0
http://forum.lazarus.freepascal.org/index.php/topic,22143.msg130344.html#msg130344
http://forum.lazarus.freepascal.org/index.php/topic,22142.msg130251.html#msg130251

avra:
There are VB to Delphi convertors mentioned here:
http://forum.lazarus.freepascal.org/index.php/topic,12763.msg66330.html#msg66330

They are mainly used for header conversions, but they can help you with rough start up conversion following a lot of manual work.

Navigation

[0] Message Index

Go to full version