Search My Blog

Friday, April 28, 2023

PowerBuilder 2022 - TCP/IP Socket Example

 ** Hot News **

TCP/IP Programming

Updated Socket Application Example for PowerBuilder 2022!


        Software Tool & Die Inc. today are very pleased to announce a brand new MS-Windows Socket (2022) example application built with the latest STD Integrated Framework (2023R1). This latest release of the Socket application is also built using the latest Appeon PowerBuilder 2022 IDE and should also work with the upcoming PowerBuilder 2022 R2 Beta test version as well.

Client Application - Ready to send DW object & buffers
 
         The STD Socket example application demonstrates a significant enhancement to the the PB developer's toolbox! The Socket example showcases the TCP/IP features in the STD Integrated Framework and more importantly returns the power of Distributed PowerBuilder back to the application developer. The TCP/IP socket support in the STD Frameworks is based on the work by Tom Cervenka's Sockets objects (written in pure PB, dating back to the PowerSoft days) that utilizes MS-Windows socket API's for FTP'ing files between servers and/or peer-to-peer communications.

Server Application - Receiving DWO and buffers from sender
    In addition, the updated STD Socket example will also now work with PowerServer 2019 as well when deployed as a Web Application! 

Actual Web deployed Socket App talking to its Native PB counter-part!

Watch the video!


    You can download the updated STD Socket example application from the STD Framework's website by clicking here to get more productive in peer-to-peer communications with PowerBuilder! Note that an"Archive" sub-folder has also been added to this location as well. This folder contains previous versions of the socket example application for older PB releases!

 
Enjoy!


Regards ... Chris

Wednesday, April 12, 2023

PowerBuilder 2022 - Multi-Threading Example

** Hot News Item **

PowerBuilder 2022 - Multi-threading Example!


    Software Tool & Die Inc. (STD) are pleased to announce the release of an updated STD Integrated Framework example application that utilizes the framework to implement Application multi-threading! The multi-threading feature inside PowerBuilder has been around since version 5.0 when the Distributed PB feature was first introduced. However, it is not a well documented and known feature of the development tool. The STD Multi-threading example goes even further by allowing applications to utilize the vast resources of Integrated framework while taking multi-threading to a higher functional level. The framework allows the PB developer to easily implement multi-threading and be a lot more productive at the same time! 
 
    The updated Multi-threading example application now utilizes the latest STD Integrated Framework (version 2023.2.0.326 released on 2023-03-23) and the newest Appeon PowerBuilder 2022 release (build 1892). Improvements in this release include:
  • Migration App code from PB 2021 to PB 2022 build 1892
  • Migration of the STD Framework from 2021 to 2023R1
  • Removal of all Appeon PB EJB library (feature now deprecated in PB 2022)
  • Better performance (15% improvement). 
  • Tested the Multi-threading code on W10 version 22H2 build 19045.2788
  • Tested the Multi-threading code on W11 version 22H2 build 22621.1555
  • Tested M-Code, P-Code & PowerClient deployments in both 32 & 64 bit EXE's .
Note: The STD Framework is the only PB framework in existence that is both thread aware and multi-thread safe!


    The Integrated framework allows each thread to be monitored by the frameworks performance dialogue, write to the O/S Console, log a message in the main tread's application log, share DBMS access, send messages back & forth between threads or between the main thread and its sub-threads, introspect the O/S, etc - just to name a few interesting aspects. Messages may also now be written to the MS-Windows Event Log and MS-Windows Debug logs as well from each sub-thread!


  The latest STD multi-threaded PowerBuilder example application can now be downloaded from the SourceForge website. Please click here to download & enjoy!
  
  For a complete PowerPoint presentation on how Multi-Threading in Appeon PowerBuilder works, please click here to download this PPT presentation.
  

Regards ... Chris

Wednesday, April 5, 2023

PowerBuilder 2022 - DDE Example Updated!

 Hot News!

PowerBuilder DDE Example Application

Built using the STD Framework!

        Software Tool & Die Inc. are very pleased today to announce an updated example application that demonstrate a fully working Dynamic Data Exchange (DDE) Client and Server application! This latest release of the DDE Client/Server applications are are all written in the latest PowerBuilder 2022 version and are also using the latest STD Integrated Framework (2023R1)  ...


    In the updated release, the DDE Demo Applications include the following changes:

  • Built using PB2022 build 1892
  • Using STD Integrated Framework  v2023.2.0.326
  • Updated to support the PB2022 Theme feature
  • Now includes  Client & Server App logging auto delete at EOJ
  • Incorporates MS-Windows notification utility built from PB 2022
  • Deployment examples in 32 & 64bit and M-Code / P-Code
  • Tested the DDE code on W10 version 22H2 build 19045.2788
  • Tested the DDEcode on W11 version 22H2 build 22621.1413
  • PowerClient or PowerServer 2022 deployment ready as well!

Actual DDE Client and DDE Server in action exchanging various messages & data!
 

    The deployed EXE's for the DDE Client and DDE Server are also included in the DDE Example Applications download. You can run either the Client or Server in mixed modes. For example a 32 bit client and a 64 bit server (or vise versa), a P-Code client and an M-Code server (or vise versa), or any combination of the various DDE EXE's built from the STD Framework. The DDE features will work with any combination of the above EXE's. So this feature is just another tool in the PBToolBox that PB Developers can use to accomplish inter-application communication!

  You can download the new STD Framework DDE Demo App for PB2022 build 1892, as follows:

DDE Demo AppDownload 

STD Framework:  Download  (latest OrderEntry Demo App that uses the framework!)

Note: Older DDE examples and STD Frameworks are available in their respective "Archive" sub-folders found in the above links.

   Enjoy ... please let me know what you think & if you have any feature suggestions that you might like me to add for future releases! 

Alert:  Ticket # 10034 has been opened for the 64 bit execution mode. It does not work in PB 2022 whereas it does work OK in PB 2021. I suspect that the problem lies in PB 2022's use of the  VC++ 2019 compiler whereas PB 2021 uses VC++ 2010 compiler to build the PB runtime.

Regards ... Chris