Solved

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

Posted on 2014-01-10
5
1,011 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
Comment Utility
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
Comment Utility
<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
Comment Utility
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
Comment Utility
Thanks I will read the post and I will reply
0
 
LVL 40

Accepted Solution

by:
Jacques Bourgeois (James Burger) earned 250 total points
Comment Utility
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Network Connection 5 31
Printer Settings 3 59
Loop through Multiple Processes Async 2 15
Not able to route between subnets 8 30
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
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.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

743 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now