1. Nathalie Meurant
  2. PowerBuilder
  3. Thursday, 8 August 2019 23:05 PM UTC

Hi, 

I have a PB 12.0 application that needs to be migrated to PB2017.
This application has a non-visual object that calls functions of a DLL.
This DLL was built in C ++ with the watcom compiler version 1.0.
I would like to recompile this DLL so that it can be used under win10.

the problem is that I do not think there are SDKs for the watcom.

the problem is that i do not think there are SDKs for the watcom for the current version.
therefore, I tried to recompile everything with visual studio 2017.
Unfortunately, there is no SDK for visual studio 2017.
Can you, please, help me?
Best regards
Nathalie Meurant
 
Nathalie Meurant Accepted Answer Pending Moderation
  1. Friday, 9 August 2019 09:35 AM UTC
  2. PowerBuilder
  3. # 1

For VS 2017 and new projet

Attachments (2)
Comment
  1. Roland Smith
  2. Friday, 9 August 2019 10:37 AM UTC
PBNI is a DLL project. Having the file extension be PBX is not technically required, you can leave it as DLL if you want.

There used to be a Visual Studio add-in to make creating a new PBNI project easier but you don't really need it.

All you have to do is create a standard DLL project, copy the PBNI folder into your project folder and make the following project property changes:

C/C++ Additional Include Directories: .\PBNI\include

Linker Additional Library Directories: .PBNI\lib

If you want you can skip copying the PBNI folder and set the properties to the full path, I prefer to keep it all together. Also, you don't have to use Unicode, the PBNI interface handles the conversion of strings automatically.
  1. Helpful
  1. Nathalie Meurant
  2. Friday, 9 August 2019 12:48 PM UTC
it's possible to generate C++ code by powerbuilder?
  1. Helpful
  1. Armeen Mazda @Appeon
  2. Friday, 9 August 2019 16:17 PM UTC
No, PowerBuilder only supports editing/compiling PowerScript and C#.
  1. Helpful
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Thursday, 8 August 2019 23:24 PM UTC
  2. PowerBuilder
  3. # 2

Hi Nathalie;

  The Watcom C++ was open sourced. You can download the latest version from here

HTH

Regards ... Chris

 

Comment
  1. Nathalie Meurant
  2. Friday, 9 August 2019 09:32 AM UTC
Hi Chris,

I have already installed the latest version of watcom.

My problem is that I do not know how to generate a DLL so that it can be integrated in PowerBuilder 2017?

  1. Helpful
  1. Chris Pollach @Appeon
  2. Friday, 9 August 2019 13:00 PM UTC
  1. Helpful
There are no comments made yet.
Roland Smith Accepted Answer Pending Moderation
  1. Thursday, 8 August 2019 23:15 PM UTC
  2. PowerBuilder
  3. # 3

There is an SDK that works in Visual Studio 2017:

C:\Program Files (x86)\Appeon\PowerBuilder 17.0\SDK\PBNI

On this page you can download a VS 2017 PBNI project that you can use as an example:

http://www.topwizprogramming.com/pbnismtp.html

 

I have found that PBNI objects are not PB version specific. They automatically work with the version of the PB app that uses it.

 

Comment
  1. Nathalie Meurant
  2. Friday, 9 August 2019 09:34 AM UTC
Hi Roland,

Thanks you for you exemple.

My problem is that i can't create a new project with the format PBNI.

Look at the images I have attached.

Best regard
  1. Helpful
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.
We use cookies which are necessary for the proper functioning of our websites. We also use cookies to analyze our traffic, improve your experience and provide social media features. If you continue to use this site, you consent to our use of cookies.