E. Crane Computing Support Forum

Providing support for all E. Crane Computing products, including POWERGEN, PBSERVICE, HARPB, VERSIONEDIT, PBLRESCUE, and PBLEXPLORER.

You are not logged in.

#1 2005-05-06 06:52:31

DaveHarbud
Guest

Re: Problem with migrating to PB10 using Powergen

I use scripts to pull my code out of PVCS.
<b>Method A</b>
I use the PB8 version of Powergen to do a bootstrap import and build.
I load the PBLs generated into PB10, which converts them
<b>Method B</b>
I use the PB10 version of Powergen to do a bootstrap import and build.
<hr>
Method A works fine.  Code produced by method B fails in strange ways when making Window API calls, for example, GetProfileStringA.
Eventually I worked out that the problem is that external function calls in the code converted by method A have ;Ansi appended to them.  This is necessary when you're passing ansi strings around in a Unicode environment.  This is not in the PB8 version of the code and has been added by PB10 during the conversion process.   Powergen doesn't add this code, so PB10 gets horribly confused when it talks to Windows.
Fortunately, we don't have many of these calls, so we can fix them manually fairly easily.
My, how we laughed.

Board footer