on 06-08-2016 8:43 PM
Hi,
We are planning to migrate PB classic application to PB .Net so that some modules could be called in .Net development application. I wonder the following structure will work in fulfilling the end result.
1. Create a new PB Assembly with all existing libraries (pbl)
2. Create a .Net Assembly
3. Reference step 2's .Net Assembly in WPF/C# application and call function to launch modules/window
Thanks for any help,
Lam
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hmmm ... I'm beginning to suspect a missing DataWindow Object. Can you check to make sure in your DWO is being deployed in your .Net Assembly project? You could try doing a simple Describe() function just before the Retrieve () to test if the DWO was really there & OK. Also make sure that your SetTransObject() worked as well.
Hi Chris,
I am going to experiment on the approach using classic .Net Assembly target with one pbl of the non-visual object that exposes a function call to open a window with datawindow and another pbl including a window and datawindow objects.
Then a dll is generated and is referenced in a testing Windows Form application where I have a window form with a button that open a PB window with data window control. However, I keep getting -1 from dw_1.Retrieve(). Would I miss anything?
Thanks for any help,
Christine
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Christine;
There can be many reasons for a -1 on the retrieve. I would check the following ...
1) Did your CONNECT command work OK (zero return code)?
2) Is the DB Client available on the machine where your Windows Form application is running?
3) Did you assign a DW Object to your DataStore OK?
4) Was the DW Object actually deployed to your .Net assembly OK?
5) Did you issue a SetTransObject () method and was the return code OK?
6) Are the full PB run-time DLL's available where your Windows Form application is running?
HTH
Regards ... Chris
You are better off deploying .Net Assemblies from the Classic IDE. As Chris said, the PB.Net IDE will likely be going away.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Christine;
FWIW: Looks like PB.Net will no longer exist when Appeon takes over PowerBuilder very soon. I would personally not put any effort into migrating to PB.Net. Even if you do, its based on obsolete VS2010 and .Net 4.0 technology. AFAIK, Appeon has no plans for this product in its current road-map ... PB Vision and Roadmap Webcasts
Just my $0.02
Regards ... Chris
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.