hello everyone welcome back to our Channel today I'm excited to share with you a powerful technique that'll level up your powerbuilder projects we'll import non-natively available features into powerbuilder by importing them fromn net libraries for today's example we're diving into QR code generation before we get started I want to let you know that all the resources mentioned in this video will be included in the description below for easy access all right to implement a foreign feature into Power Builder we'll need to follow a few steps first we'll locate a suitable net library that provides the
functionality we need then we'll create a wrapper to encapsulate the library into an interface we can call from Power Builder finally we'll import the wrapper into Power Builder by following these simple steps we'll unlock a wide variety of features not natively available in power Builder if you need a more detailed breakdown of how to call Net assemblies don't worry we've got another video dedicated to that so be sure to check it out okay now let's dive into action we'll start by searching for a net library for QR code generation after a bit of searching I
think I found one that'll do the trick now let's create a new C project and import this library to ensure a smooth import into Power Builder we'll create a wrapper class adapter this adapter will bridge the gap between the library's interface and what powerb builders.net importer tool can work with Once that's done we'll export the project to generate the necessary dlls quick tip always set the deployment type to debug to avoid any hiccups later on now that we have our binaries it's time to import the dll into our power Builder project adding a bit of
code to handle the nvo and call the net function and voila we've successfully brought QR code generation into Power Builder we've put together a demo application showcasing these steps in action along with several other non-native features integrated into Power buer if you're using powerbuilder 2022 R3 and opted for the demo projects during installation you might already have it on your PC feel free to download the source code and explore how we implemented QR code generation and other examples included in the demo that's it for today folks if you're eager for more of these short tutorials
let us know by dropping a comment down below also don't forget to like this video if you found it helpful and subscribe to our channel for more powerbuilder tips and tricks