Go Back   { mindfrost82.com } > Gadget Corner > Tech Newsgroups > Microsoft > .NET Framework

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-08-2008, 01:44 PM
TheVillageCodingIdiot
 
Posts: n/a
Namespace question

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

Reply With Quote
  #2 (permalink)  
Old 07-08-2008, 02:31 PM
Fred
 
Posts: n/a
Re: Namespace question

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

Reply With Quote
  #3 (permalink)  
Old 07-08-2008, 03:27 PM
Ilya Albrekht
 
Posts: n/a
Re: Namespace question

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.com/mail/
Reply With Quote
  #4 (permalink)  
Old 07-08-2008, 03:43 PM
=?Utf-8?B?RmFtaWx5IFRyZWUgTWlrZQ==?=
 
Posts: n/a
RE: Namespace question

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
>
>

Reply With Quote
  #5 (permalink)  
Old 07-09-2008, 02:41 PM
TheVillageCodingIdiot
 
Posts: n/a
Re: Namespace question

the root namespace is Billing

Reply With Quote
  #6 (permalink)  
Old 07-09-2008, 03:00 PM
TheVillageCodingIdiot
 
Posts: n/a
Re: Namespace question

Yes I did add the DLL as a refrence
Reply With Quote
  #7 (permalink)  
Old 07-09-2008, 03:00 PM
TheVillageCodingIdiot
 
Posts: n/a
Re: Namespace question

Public is in from of the class name.
Reply With Quote
  #8 (permalink)  
Old 07-09-2008, 03:04 PM
TheVillageCodingIdiot
 
Posts: n/a
Re: Namespace question

im sorry the rootnamespace on both projects is out company's name.
Reply With Quote
  #9 (permalink)  
Old 07-09-2008, 03:17 PM
TheVillageCodingIdiot
 
Posts: n/a
Re: Namespace question

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.
Reply With Quote
  #10 (permalink)  
Old 07-09-2008, 04:15 PM
=?Utf-8?B?RmFtaWx5IFRyZWUgTWlrZQ==?=
 
Posts: n/a
Re: Namespace question

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.
>

Reply With Quote
Reply

  { mindfrost82.com } > Gadget Corner > Tech Newsgroups > Microsoft > .NET Framework


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 01:01 PM.


Powered by vBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
© 1999-2008 mindfrost82.com v11.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109