Solved

Is there any tool to convert powerbuilder project to VB.net?

Posted on 2014-01-10
5
1,059 Views
Last Modified: 2014-01-11
I have ERP system , Client-Server programmed by power builder and SQL 2008 Database, is there any tool to convert the project to VB.net?
0
Comment
Question by:Ihab
  • 2
  • 2
5 Comments
 
LVL 21

Assisted Solution

by:Craig Wagner
Craig Wagner earned 250 total points
ID: 39772448
I've never heard of such a tool. I was going to start writing up a more detailed response but a quick Google search turned up this post that explains it much better than I was going to.

http://stackoverflow.com/a/833026/97382
0
 

Author Comment

by:Ihab
ID: 39772494
<I was going to start writing up a more detailed response>
Thanks but can you tell me what was in your mind?
0
 
LVL 21

Expert Comment

by:Craig Wagner
ID: 39772557
What was on my mind was what the SO post said. That's why I said it "explains it much better than I was going to."
0
 

Author Comment

by:Ihab
ID: 39772597
Thanks I will read the post and I will reply
0
 
LVL 40

Accepted Solution

by:
Jacques Bourgeois (James Burger) earned 250 total points
ID: 39773498
Even if such a tool existed, I would advise against using it, unless you a great love of headaches, bugs that are hard to solve and loss of performance.

Asking if there is a tool to make such a conversion is like asking if there is a tool to convert a Mac application to .NET.

Think that even conversions from VB6 to VB.NET usually do not work well, although they use the same language from the same company, that happens to be the best one to understand what happens under the hood in .NET. (To be True, the converter provided with Visual Studio was outsourced to a company outside of Microsoft).

Conversion code can usually easily map most command in one environment to a command in another environment. But they cannot map the design of one environment to another.

That is the main difference. .NET is not a new language, it's a new environment. Applications must be designed differently. At that level, all a conversion tool can do is to try to simulate in the new environment the way the application used to work in the older environment. This results in code that nobody would ever have written, that is not efficient, very difficult to maintain, and often has problems migrating from one version of the framework to the next because it does not use the native way doing things in .NET.

Just one example, error handling. While PowerBuilder uses a single Error with an Error.Number to identify the error, .NET uses a mechanism "borrowed" from C or Java. The notion of an Error.Number does not exists in .NET. There is a Try...Catch mechanism that Catch an error, and the error is identified by the type of the object (class) that is catched. Could be a FileNotFoundException object or a SqlException object (there are dozenz of these exception classes), each with its own properties that give usefull information about the problem and where it occurred.

The way you handle errors is thus very different, and it often impossible to map the old ways to the new ones.

A convertion from any language or environment always end up with a buggy application that sometimes as much time to debug as a rewrite, and always very badly designed and hard as hell to maintain.

As bad as it can look, if you absolutely need to skip PowerBuilder, you will have to think rewrite instead of conversion.
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

Suggested Solutions

Even if you have implemented a Mobile Device Management solution company wide, it is a good idea to make sure you are taking into account all of the major risks to your electronic protected health information (ePHI).
Meet the world's only “Transparent Cloud™” from Superb Internet Corporation. Now, you can experience firsthand a cloud platform that consistently outperforms Amazon Web Services (AWS), IBM’s Softlayer, and Microsoft’s Azure when it comes to CPU and …
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…

770 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