on 01-15-2013 1:50 PM
Hello,
I am trying to create a .net assembly (in PB 12.51 .net) that has objects that inherit from
another .net assembly (in this case a .net version of the PFC) but I can not
successfully build the assembly due to an error I do not understand.
Here's the situation...
I have created an assembly of the PFC (PFCAssembly) and added it the
references area on of my main assembly (TestAssembly).
Now, I can easily create a object (TestDs) in TestAssembly that inherits from n_ds. The intellisense works fine (all properties
and functions show up) and the TestDs object will save with out error. But, if I try to use this TestDs object somewhere in TestAssemby, I get the following error when I build:
"The type or namespace name 'n_ds' does not exist in the namespace 'POS' (are you missing an assembly reference?"
POS is the default namespace I have defined for TestAssembly.
Here is the part I do not understand...
I can use n_ds directly in TestAssembly without error i.e.:
n_ds ids_Datastore
ids_Datastore = Create n_ds
But as soon as I try to use an object inherited from somewhere in
PFCAssembly I get the error listed above.
TestDs ids_Datastore
ids_Datastore = Create TestDs
Anyone know what I am missing? Is it not possible in pb.net to have an
assembly that has objects inherited from another assembly?
Thanks
Kevin Lindsay
Well, first I want to make sure I'm trying to look into the right problem. Are you creating a .Net assembly from PFC or a PB Assembly. If you're trying to use a precompiled version of PFC within a PowerBuilder.Net project, doing it as a PBAssembly makes more sense than a .Net Assembly. See this article by Yakov on the PBAssembly option.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.