Thread View: borland.public.csharpbuilder.ide.general
5 messages
5 total messages
Started by Jorge
Wed, 13 Jul 2005 14:35
Using Namespace
Author: Jorge
Date: Wed, 13 Jul 2005 14:35
Date: Wed, 13 Jul 2005 14:35
11 lines
1513 bytes
1513 bytes
Since C# Builder is included in D2005, I decided to try my hand at it. But I'm having problems understanding how to use a namespace created in a separate unit of code. I created a unit of code containing a namespace called NETWORKING. I'd like to use members of that namespace in a project that I'm coding. But evidently, just placing the "Using" directive in that code doesn't help the compiler to find the namespace that I've created. Please tell me what I must do to use the new namespace in my project? Does it need to go in some special place or be registered with the IDE or what? Thanks, George
Re: Using Namespace - Never Mind
Author: Jorge
Date: Wed, 13 Jul 2005 15:31
Date: Wed, 13 Jul 2005 15:31
23 lines
1995 bytes
1995 bytes
Well, I thought I had added this unit to the project, but evidently on my first attempt to add the unit, something went wrong. I tried once more and everything is working as it should. Thanks, Jorge "Jorge" <georgec20@yahoo.com> wrote in message news:42d526bd@newsgroups.borland.com... > Since C# Builder is included in D2005, I decided to try my hand at it. > But I'm having problems understanding how to use a namespace created in a > separate unit of code. I created a unit of code containing a namespace > called NETWORKING. I'd like to use members of that namespace in a project > that I'm coding. But evidently, just placing the "Using" directive in > that code doesn't help the compiler to find the namespace that I've > created. Please tell me what I must do to use the new namespace in my > project? Does it need to go in some special place or be registered with > the IDE or what? > > Thanks, > George >
Re: Using Namespace
Author: David Clegg
Date: Thu, 14 Jul 2005 04:03
Date: Thu, 14 Jul 2005 04:03
27 lines
2011 bytes
2011 bytes
Jorge wrote: > Since C# Builder is included in D2005, I decided to try my hand at > it. But I'm having problems understanding how to use a namespace > created in a separate unit of code. I created a unit of code > containing a namespace called NETWORKING. I'd like to use members of > that namespace in a project that I'm coding. Is this unit included in the project, or has it been compiled into an assembly? If the unit is included in the project, then you should be able to simply use the 'using' directive. If the unit is part of an assembly, you will need to add a reference to that assembly (Project|Add Reference...). -- Cheers, David Clegg dclegg@gmail.com Vote 1 http://cc.borland.com/codecentral/ccweb.exe/listing?id=21489 :-) Now supports Google Groups searching with Dyna-extend(tm) technology! QualityCentral. The best way to bug Borland about bugs. http://qc.borland.com "Here's to alcohol : The cause of, and answer to all of life's problems." - Homer Simpson
Re: Using Namespace - Never Mind
Author: Marc Rohloff TeamB
Date: Fri, 15 Jul 2005 00:00
Date: Fri, 15 Jul 2005 00:00
13 lines
1752 bytes
1752 bytes
On Wed, 13 Jul 2005 11:31:33 -0400, Jorge wrote: > Well, I thought I had added this unit to the project, but evidently on my > first attempt to add the unit, something went wrong. I tried once more and > everything is working as it should. What exactly are you doing? C# doesn't have units at all. Maybe if you post some of the code it would be easier? -- Marc Rohloff [TeamB] marc rohloff -at- myrealbox -dot- com
Re: Using Namespace
Author: Jorge
Date: Tue, 19 Jul 2005 12:30
Date: Tue, 19 Jul 2005 12:30
36 lines
2379 bytes
2379 bytes
Thanks David. This is the type of feedback I need... I just decided on a whim to try C# without knowing a thing about it. I'm learning the language and the development environment and I appreciate everyone's indulgence though my terminology might not be precise. George "David Clegg" <dclegg@gmail.com> wrote in message news:xn0e4qpnx1suktm00h@newsgroups.borland.com... > Jorge wrote: > >> Since C# Builder is included in D2005, I decided to try my hand at >> it. But I'm having problems understanding how to use a namespace >> created in a separate unit of code. I created a unit of code >> containing a namespace called NETWORKING. I'd like to use members of >> that namespace in a project that I'm coding. > > Is this unit included in the project, or has it been compiled into an > assembly? If the unit is included in the project, then you should be > able to simply use the 'using' directive. If the unit is part of an > assembly, you will need to add a reference to that assembly > (Project|Add Reference...). > > -- > Cheers, > David Clegg > dclegg@gmail.com > > Vote 1 http://cc.borland.com/codecentral/ccweb.exe/listing?id=21489 :-) > Now supports Google Groups searching with Dyna-extend(tm) technology! > > QualityCentral. The best way to bug Borland about bugs. > http://qc.borland.com > > "Here's to alcohol : The cause of, and answer to all of life's > problems." - Homer Simpson
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads