|
SYS-CON.TV Webcasts
Comments
Did you read today's front page stories & breaking news?
SYS-CON.TV
|
Top Links You Must Click On
Tips & Tools Converting a PowerBuilder 10.5 Client/Server Application to PB 11 Web Forms
Using .NET Interop and Web services
By: Mark Luckasavage
Aug. 27, 2008 03:36 PM
As a long-time PB developer, I have successfully created or maintained many PB applications for clients and for myself. Since day one, I was impressed with the ease with which applications can be created using PowerBuilder. Although I had been exposed to Visual Studio and other client/server tools, I have always felt PB was the better product. Even when I had to code GIS mapping functionality using OLE automation and there were no PB examples, I was able to find VB code examples and figure out the PB equivalent. I have also developed PB functionality for SAPI, TAPI, SMTP, and VoIP.
Therefore when the PB 11 beta was released we wanted to prove the technology worked by converting one of our applications to PB 11 Web Forms or Windows Forms. The program we chose is an emergency alert system that lets users send text messages, e-mails with attachments, and voice messages to a selected group of users. Preparing for my task, I attended an Ottawa ISUG User Group meeting to pick John Strano's brain, looked at Bruce Armstrong's examples, and scoured the Sybase newsgroups. My thought was that the fastest way to get on the Web would be a direct migration to Windows Forms. The migration was very easy; however, when running the app the response time was slow because the database connection was on the client computer. I determined that Windows Forms would work best for our intranet applications but to achieve the goal of creating our first data-driven Internet app, Web Forms seemed like the best choice. However, going this route meant some functionality would have to be replaced with equivalent .NET classes. I was also determined to reuse as much as possible from the 10.5 application. Here's how it was done. This application is not a very complex one (see Figure 1). It has a tabbed interface, uses treeview and regular DataWindows, and is written in PB 10.5 PFC (Unicode version). PFC use is minimal and limited to DataWindow column sorting and control resizing. E-mail and text messaging were implemented using PBNI SMTP (see Listing 1) and voice messaging using a third-party OLE TAPI control with telephony-compliant hardware (see Listing 2). Reader Feedback: Page 1 of 1
Enterprise Open Source Magazine Latest Stories . . .
Subscribe to the World's Most Powerful Newsletters
Subscribe to Our Rss Feeds & Get Your SYS-CON News Live!
|
SYS-CON Featured Whitepapers
Most Read This Week |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||