Tech Articles


Free Utilities - Code Samples from CodeXchange


In this article you will find a list of Code Samples related to Free Utilities for your PowerBuilder apps. These code examples are found at Appeon's CodeXChange.

 

Read more

Interfacing PB Applications with the Windows API - Part 4


This tutorial has discussed how to interface traditional, Windows-hosted PowerBuilder 32-bit and 64-bit applications with the Windows Application Programming Interface (API), also known as the WinAPI. In the first three parts, the groundwork was laid to make you more knowledgeable and comfortable coding External Function Declarations (EFD's) and understanding the nuances of how information is exchanged between PB and Windows API functions. Part four contains a list of coding tips and techniques and mapping tables to help you with the translation between many common WinAPI datatypes and the standard PB datatypes. It also describes a free PB sample application and non-visual user object that can dynamically determine the memory size and layout of a structure in either 32-bit or 64-bit environments.

* * * Part four content has been revised and expanded from the original version * * *

Read more

Interfacing PB Applications with the Windows API - Part 3


This tutorial discusses how to interface traditional, Windows-hosted PowerBuilder 32-bit and 64-bit applications with the Windows Application Programming Interface (API), also known as the WinAPI. Much of the information presented here also applies to interfacing with DLL’s created in-house or by third-party vendors, because the interface mechanism in PB is the same. The focus, however, will be on interfacing to the WinAPI.

* * * Part three content has been revised and expanded from the original version * * *

Read more

Interfacing PB Applications with the Windows API - Part 2


This tutorial discusses how to interface traditional, Windows-hosted PowerBuilder 32-bit and 64-bit applications with the Windows Application Programming Interface (API), also known as the WinAPI. Much of the information presented here also applies to interfacing with DLL’s created in-house or by third-party vendors, because the interface mechanism in PB is the same. The focus, however, will be on interfacing to the WinAPI.

* * * Part two content has been revised and expanded from the original version * * *

Read more

Interfacing PB Applications with the Windows API - Part 1


This tutorial discusses how to interface traditional, Windows-hosted PowerBuilder 32-bit and 64-bit applications with the Windows Application Programming Interface (API), also known as the WinAPI. Much of the information presented here also applies to interfacing with DLL’s created in-house or by third-party vendors, because the interface mechanism in PB is the same. The focus, however, will be on interfacing to the WinAPI.

* * * Part one content has been revised and expanded from the original version * * *

The tutorial is presented in four parts. Part one covers External Function Declarations in PB and explores issues related to interfacing with the WinAPI. The second part examines the calling conventions in 64-bit Windows and important differences between the 32-bit and 64-bit environments. Part three looks at several factors that can affect the interfacing of PB applications with the WinAPI, such as null values, PB datatypes not supported by Windows, the PB Any datatype, unbounded arrays, nested structures and arrays of nested structures. The tutorial concludes in part four beginning with the description of an available free PB sample application and non-visual object that can dynamically determine the memory size and layout of a structure in either 32-bit or 64-bit environments. Part four also contains a list of coding tips & techniques to help you develop PB applications that interface with the WinAPI, and includes mapping tables to assist in the translation between many common WinAPI datatypes and the standard PB datatypes.

Read more

How to use Visual Studio to debug a C/C++ dynamic library called by a PowerBuilder 2019 application


Background

This article aims to give an instruction on how to use Visual Studio to debug a C/C++ dynamic library that is called by a PowerBuilder 2019 application.

Here we will show you:

  • How to create a C/C++ dynamic library.
  • How to call this DLL in PowerBuilder application.
  • How to debug the DLL called by the PowerBuilder application.

Description

Let’s take Visual Studio 2017 as an example to create a C/C++ dynamic library NewDLL.dll, which contains two functions:

  • Add: Accepts two int parameters.
  • ComputerName: Accepts a string parameter.

In addition, we will create a simple application with PowerBuilder 2019 to call this NewDLL.dll.

Read more

Quick start for contributing to Open Source PFC


Given that not everyone is fluent in using Git and or Github (where the Open Source PFC is hosted now), I put together a quick introduction in how to get started.  The video below walks through the steps, which in summary are:

  • Create a GitHub account if you don't already have one.  https://github.com/join
  • Navigate to the Open Source PFC and "Fork" a copy of the code into your account.  The 2019 version of the PFC can be found at: https://github.com/OpenSourcePFCLibraries/2019
  • Chose Code -> Clone and copy the HTTPS URL for your fork.
  • Open the PowerBuilder 2019 IDE and with no workspace open select File -> Connect to Workspace.
    • Source Control System:  Choose Git
    • Repository URL: Paste in the URL you copied above
    • Workspace File: Give it any name you choose
    • User ID:  Your Github user id (normally your email address)
    • Password:  Your Github password
    • Checkout Directory:  Select or create a new empty subdirectory on your local machine for the code to be copied to
  • Wait until the source code is downloaded and refreshed (12 to 15 minutes)
Read more

Find Articles by Tag

PostgreSQL Encoding PowerServer Mobile Syntax IDE Configuration Text Script SnapDevelop ODBC Azure Design Windows 10 Icons Android PDFlib Event Handling Elevate Conference Performance Icon SqlExecutor External Functions OAuth 2.0 Windows OS DevOps CoderObject Charts TreeView COM Database Table Deployment Trial .NET DataStore API Encryption PBDOM PowerBuilder (Appeon) Authentication SOAP Stored Procedure Debugging OLE RichTextEdit Control Bug Database Table Schema WebBrowser PDF Oracle OAuth Linux OS RibbonBar Builder Transaction ActiveX Excel DLL Branch & Merge Menu JSONParser Error JSONGenerator Debug 32-bit PowerServer Web Platform XML Filter Git Export JSON DataWindow JSON Validation SnapObjects Event Class Debugger REST PowerBuilder Array License File TLS/SSL CI/CD JSON CrypterObject WinAPI .NET Assembly DataWindow Installation HTTPClient DataType Expression Authorization Web API Database Connection Mobile Service C# GhostScript RibbonBar Web Service Proxy Import TortoiseGit Database Table Data Testing Database Profile SqlModelMapper Outlook Application SDK Variable Import JSON Database Painter PostgreSQL ODBC driver NativePDF DragDrop .NET Std Framework Export SQL Server BLOB Interface Database Object Migration UI Open Source 64-bit Database UI Modernization OrcaScript Window Sort Messagging RESTClient SQL Event Handler Model Resize PowerBuilder Compiler iOS PowerScript (PS) Automated Testing InfoMaker SVN Source Code Source Control PFC Data Graph MessageBox TFS Repository UI Themes Jenkins