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 2004-08-26 17:43:44

cwong
Guest

Re: PBD library for use within Bootstrap Import

Hi there,

Anyone have any information about this scenario.

I currently have a PowerGen build using PowerBuilder 9.

It does 2 things.

1. Extract object code from Source Control and Bootstrap Import all objects to build the PBLs.
2. Build the PBDs and EXE once this has been done.

I am trying to incorporate the declarations of an object from a PBD that I do not have a PBL for(i.e. someone else built it using PBNI and has kindly put it out for use for the PowerBuilder Community).

I have subsequently built an object which declares an object that is in this PBD and use it within PowerBuilder 9 - All works OK.

I am now trying to work out how to incorporate this into our nightly build.

PowerGen at the BootStrap import phase does seems to like the fact that I am doing this.

It reports that this is an undefined object.

I have tried including an empty PBL and selecting the options to "Not Include for Regenerate" and "Not Create Now" and it still reports the same thing.

Anyone able to give me a heads up would be greatly appreciated.

I'm using PowerGen V5.5.

Thanks.

Chun.

#2 2004-08-27 07:04:14

Phil
Guest

Re: PBD library for use within Bootstrap Import

Hi Chun,

What is the error message that PowerGen is reporting in this case?  Have you excluded the PBD from being regenerated?

Regards,

Phil

#3 2004-08-29 17:25:26

cwong
Guest

Re: PBD library for use within Bootstrap Import

Hi Phil,

Yes, I have excluded the PBD from being regenerated and have unchecked the "Create Now" option as well.

The error is a compile error. i.e. a variable which is declared which is of a data type that is contained within the PBD is the problem.

It seems that the bootstrap import does not recognise that the variable that is declared and used is located within the PBD.

The error text is :-

             (0037): Error       C0001: Illegal data type: n_cpp_smtp

This data type is located in the PBD.

It compiles and full builds OK within PowerBuilder 9.

Regards,

Chun.

#4 2004-08-31 13:55:30

Phil
Guest

Re: PBD library for use within Bootstrap Import

Hi Chun,

Can you import the object using PowerBuilder?  I don't see how PB can resolve this variable if it's defined in the PBD.

Regards,

Phil

#5 2004-08-31 16:47:15

cwong
Guest

Re: PBD library for use within Bootstrap Import

#6 2004-08-31 18:14:39

cwong
Guest

Re: PBD library for use within Bootstrap Import

Hi Phil,

I have no problems importing and exporting this object that contains a reference to an object within a PBD.

My set up is thus :-

I have in my PB library list that PBD. I can see all the objects of that PBD and their associated functions, properties, structures etc.

I have created an object which contains a function with a declaration of a variable with a data type which is contained with the PBD.

I can import and export this created object which has references to the PBD in it without any problems in PB.

Chun.

#7 2004-09-01 00:06:01

cwong
Guest

Re: PBD library for use within Bootstrap Import

Phil,

Further to my previous response, a colleague has been posting on the general powerbuilder newsgroup to see if any one has this problem. A response from a veteran PowerBuilder and PowerGen developer has indicated that PowerGen does not support the capability that I am trying to implement.

i.e. Bootstrap Import to build PBLs of which there are some references to objects in a PBD for which there is no source code.

PowerBuilder does this with no problems. Just include the PBD into the library search list and you have the public functions etc available to be used. Thus, declaring variables of a data type from this PBD is not a problem.

The newgroups thread can be found by looking for the following details :-

From: JMR
Newsgroups: sybase.public.powerbuilder.general
Subject: HTML Mail in PB
Date: 29 Aug 2004

If you would like to take a look at that discussion.

Can you confirm that PowerGen does not have the ability to build PBLs where they contain references to PBDs which have no source code ?

Chun.

#8 2004-09-01 14:15:36

Phil
Guest

Re: PBD library for use within Bootstrap Import

Hi Chun,

I am able to Bootstrap Import using a PBD that has an ancestor to an object in another PBL, that is being Bootstrapped.

Is it possible that the error you're getting is for a different reason?  Can you provide a test case for this?

Regards,

Phil

#9 2004-09-02 17:14:44

cwong
Guest

Re: PBD library for use within Bootstrap Import

Hi Phil,

My apologies to you. It seems that PowerGen does have the ability to do a bootstrap import with a PBD.

I heeded your idea of a test case and thought I would try the sample application that came with the PBD that I am using - that seemed to work.

Up until then I had been trying to attach this PBD to our existing PowerGen project.

I decided to create a new OLF file and see if this would work - it did, although it reported a problem during the process but at the end of the job it reported no errors.

The following was reported :-

             The directory, 'L:\<directory path>\pbnismtp', specified in the OLF does not exist

I took a look at the OLF and there is an entry which does not seem to fit.

              L:\<directory path>\pbnismtp\*.sr?,L:\<directory path>\pbnismtp.pbd

It looks like the create of the OLF seems to think that the PBD is a library to be built, hence an entry in the OLF and when the bootstrap import is executed using this OLF, it obviously fails because it does not exist, although the overall bootstrap import reports no errors.

Thanks and Regards,

Chun

#10 2004-09-08 14:28:57

Phil
Guest

Re: PBD library for use within Bootstrap Import

Hi Chun,

I'll take a look at the problem with creating OLFs when there is a PBD in the library list.

In the meantime, you can just remove the references to the PBD in the library list.  The OLF is a straight test file, whose format is documented in the Help function.

Regards,

Phil

#11 2004-10-19 06:45:45

Phil
Guest

Re: PBD library for use within Bootstrap Import

We have corrected this in a post-6.0 build.  In the corrected version, no entries will be made in the OLF for a PBD in the library list.

Regards,

Phil

Board footer