[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

TheVillageCodingIdiot

7/8/2008 1:45:00 PM

Here is the deal, there is 1 DLL with a namespace of Billing and in
that namespace is a single class called corebillingreports. I added
the DLL into my project and trying to setup another class that
inherits from Billing.CoreBillingReports class. I try to setup the
namespace for this as Billing.CompanyA with a class named ActiveBill.
Active Bill inherits from Billing.CoreBillingReports class but it cant
get it to work. When i set the namespace Billing.CompanyA I do not see
CoreBillingReports class available under the Billing Namespace. My
goal is to create a NameSpace where it goes Billing.[CompanyName] and
in the company namespace all the different billing report classes. Thx
in advance

''''''''''''''''''''''''''''''''''''''''DLL
NameSpace Billing
Class CoreBillingReports
sub test ()
End sub
End class
End NameSpace


'''''''''''''''''''''''''''''''''''''Class created for windows form
project
NameSpace Billing.CompanyA
Class ActiveBill
Inherits Billing.CoreBillingReports 'Dont see
CoreBillingReports class listed
Sub A ()
End Sub
End Class
End NameSpace

10 Answers

Fred

7/8/2008 2:32:00 PM

0

Dans :
news:fe72dcbf-bb35-45ef-bb98-3f9da35840da@p25g2000hsf.googlegroups.com,
TheVillageCodingIdiot écrivait :
> Here is the deal, there is 1 DLL with a namespace of Billing and in
> that namespace is a single class called corebillingreports. I added
> the DLL into my project and trying to setup another class that
> inherits from Billing.CoreBillingReports class. I try to setup the
> namespace for this as Billing.CompanyA with a class named ActiveBill.
> Active Bill inherits from Billing.CoreBillingReports class but it cant
> get it to work. When i set the namespace Billing.CompanyA I do not see
> CoreBillingReports class available under the Billing Namespace.

What are the root namespaces defined for each project in the project
properties ?

--
Fred
foleide@free.fr

Ilya Albrekht

7/8/2008 3:27:00 PM

0

Hi,

Have you added first DLL to references? If not you'll never see this class.

Ilya

On Tue, 08 Jul 2008 09:44:58 -0400, TheVillageCodingIdiot
<whosyodaddy1019@hotmail.com> wrote:

> Here is the deal, there is 1 DLL with a namespace of Billing and in
> that namespace is a single class called corebillingreports. I added
> the DLL into my project and trying to setup another class that
> inherits from Billing.CoreBillingReports class. I try to setup the
> namespace for this as Billing.CompanyA with a class named ActiveBill.
> Active Bill inherits from Billing.CoreBillingReports class but it cant
> get it to work. When i set the namespace Billing.CompanyA I do not see
> CoreBillingReports class available under the Billing Namespace. My
> goal is to create a NameSpace where it goes Billing.[CompanyName] and
> in the company namespace all the different billing report classes. Thx
> in advance
>
> ''''''''''''''''''''''''''''''''''''''''DLL
> NameSpace Billing
> Class CoreBillingReports
> sub test ()
> End sub
> End class
> End NameSpace
>
>
> '''''''''''''''''''''''''''''''''''''Class created for windows form
> project
> NameSpace Billing.CompanyA
> Class ActiveBill
> Inherits Billing.CoreBillingReports 'Dont see
> CoreBillingReports class listed
> Sub A ()
> End Sub
> End Class
> End NameSpace
>



--
Using Opera's revolutionary e-mail client: http://www.opera...

Family Tree Mike

7/8/2008 3:43:00 PM

0

Add 'Public' in front of Class CoreBillingReports.

"TheVillageCodingIdiot" wrote:

> Here is the deal, there is 1 DLL with a namespace of Billing and in
> that namespace is a single class called corebillingreports. I added
> the DLL into my project and trying to setup another class that
> inherits from Billing.CoreBillingReports class. I try to setup the
> namespace for this as Billing.CompanyA with a class named ActiveBill.
> Active Bill inherits from Billing.CoreBillingReports class but it cant
> get it to work. When i set the namespace Billing.CompanyA I do not see
> CoreBillingReports class available under the Billing Namespace. My
> goal is to create a NameSpace where it goes Billing.[CompanyName] and
> in the company namespace all the different billing report classes. Thx
> in advance
>
> ''''''''''''''''''''''''''''''''''''''''DLL
> NameSpace Billing
> Class CoreBillingReports
> sub test ()
> End sub
> End class
> End NameSpace
>
>
> '''''''''''''''''''''''''''''''''''''Class created for windows form
> project
> NameSpace Billing.CompanyA
> Class ActiveBill
> Inherits Billing.CoreBillingReports 'Dont see
> CoreBillingReports class listed
> Sub A ()
> End Sub
> End Class
> End NameSpace
>
>

TheVillageCodingIdiot

7/9/2008 2:41:00 PM

0

the root namespace is Billing

TheVillageCodingIdiot

7/9/2008 3:00:00 PM

0

Yes I did add the DLL as a refrence

TheVillageCodingIdiot

7/9/2008 3:01:00 PM

0

Public is in from of the class name.

TheVillageCodingIdiot

7/9/2008 3:05:00 PM

0

im sorry the rootnamespace on both projects is out company's name.

TheVillageCodingIdiot

7/9/2008 3:17:00 PM

0

On Jul 8, 8:44 am, TheVillageCodingIdiot <whosyodaddy1...@hotmail.com>
wrote:
> Here is the deal, there is 1 DLL with a namespace of Billing and in
> that namespace is a single class called corebillingreports. I added
> the DLL into my project and trying to setup another class that
> inherits from Billing.CoreBillingReports class. I try to setup the
> namespace for this as Billing.CompanyA with a class named ActiveBill.
> Active Bill inherits from Billing.CoreBillingReports class but it cant
> get it to work. When i set the namespace Billing.CompanyA I do not see
> CoreBillingReports class available under the Billing Namespace. My
> goal is to create a NameSpace where it goes Billing.[CompanyName] and
> in the company namespace all the different billing report classes. Thx
> in advance
>
> ''''''''''''''''''''''''''''''''''''''''DLL
> NameSpace Billing
>    Class CoreBillingReports
>         sub test ()
>         End sub
>    End class
> End NameSpace
>
> '''''''''''''''''''''''''''''''''''''Class created for windows form
> project
> NameSpace Billing.CompanyA
>      Class ActiveBill
>            Inherits Billing.CoreBillingReports 'Dont see
> CoreBillingReports class listed
>            Sub A ()
>            End Sub
>      End Class
> End NameSpace

Ok i was able to figure it out I think. Correct me if my assumption is
wrong, but can you not have a child namespace if the Parent Namespace
has a class inside it? What I did was move the
Billing.CoreBillingReports class into its own namespace of
Billing.CoreBillingReports.CoreBillingClass and now I can see CSP
under Billing.

Family Tree Mike

7/9/2008 4:15:00 PM

0

Sorry, I guess I missed the word public in the code you posted...

Your solution looks right. I have never tried a namespace equal to a class
in a parent namespace, but I don't recall seeing that in other libraries
either.

"TheVillageCodingIdiot" wrote:

> Public is in from of the class name.
>

Andrew Faust

7/11/2008 5:09:00 PM

0

> Correct me if my assumption is wrong, but can you not have a child
> namespace if the Parent Namespace has a class inside it?

No, this is supported. If it weren't the System namespace wouldn't be able
to host any classes.

For your class to be visible in another assembly you need to make the class
public, reference the class in the other app and reference the full
namespace (either using or directly in the code).

Andrew

"TheVillageCodingIdiot" <whosyodaddy1019@hotmail.com> wrote in message
news:66d7aeff-d72b-4f4b-9c13-fdd01dd5b38e@d45g2000hsc.googlegroups.com...
> On Jul 8, 8:44 am, TheVillageCodingIdiot <whosyodaddy1...@hotmail.com>
> wrote:
>> Here is the deal, there is 1 DLL with a namespace of Billing and in
>> that namespace is a single class called corebillingreports. I added
>> the DLL into my project and trying to setup another class that
>> inherits from Billing.CoreBillingReports class. I try to setup the
>> namespace for this as Billing.CompanyA with a class named ActiveBill.
>> Active Bill inherits from Billing.CoreBillingReports class but it cant
>> get it to work. When i set the namespace Billing.CompanyA I do not see
>> CoreBillingReports class available under the Billing Namespace. My
>> goal is to create a NameSpace where it goes Billing.[CompanyName] and
>> in the company namespace all the different billing report classes. Thx
>> in advance
>>
>> ''''''''''''''''''''''''''''''''''''''''DLL
>> NameSpace Billing
>> Class CoreBillingReports
>> sub test ()
>> End sub
>> End class
>> End NameSpace
>>
>> '''''''''''''''''''''''''''''''''''''Class created for windows form
>> project
>> NameSpace Billing.CompanyA
>> Class ActiveBill
>> Inherits Billing.CoreBillingReports 'Dont see
>> CoreBillingReports class listed
>> Sub A ()
>> End Sub
>> End Class
>> End NameSpace
>
> Ok i was able to figure it out I think. Correct me if my assumption is
> wrong, but can you not have a child namespace if the Parent Namespace
> has a class inside it? What I did was move the
> Billing.CoreBillingReports class into its own namespace of
> Billing.CoreBillingReports.CoreBillingClass and now I can see CSP
> under Billing.