#include equivalet..?

  • Thread starter Thread starter G.Ashok
  • Start date Start date
G

G.Ashok

Hi,

Is there any equalent of c langs' #include. I have several #defines (compile
time consts) that I want to include in several classes modules

Thanks in advance ;0)

Regards,
....Ashok
 
G.Ashok said:
Is there any equalent of c langs' #include. I have several #defines
(compile
time consts) that I want to include in several classes modules

No, there is no equivalent. Simply define the constant in one file and use
them throughout the project.
 
Herfried K. Wagner,

We can't a use a constant (#Const) defined in one file everywhere (in all
other project class/module files). It should be redeclared in all the files.
This is whats the problem with this.

Regards,
....Ashok
------------------------------------------------------------------------
Everyone develops incrementally; the difference is in the size of the
increments

| > Is there any equalent of c langs' #include. I have several #defines
| > (compile
| > time consts) that I want to include in several classes modules
|
| No, there is no equivalent. Simply define the constant in one file and
use
| them throughout the project.
|
| --
| M S Herfried K. Wagner
| M V P <URL:http://dotnet.mvps.org/>
| V B <URL:http://classicvb.org/petition/>
|
 
Ashok,
If you need a compile constant (#Const) across your Project, then define it
in the project properties itself!

In VS 2005 use "Project - Properties - Compile - Advance Compile Options -
Custom constants"

In VS 2002 & 2003 use "Project - Properties - Configuration Properties -
Build - Custom constants"

--
Hope this helps
Jay [MVP - Outlook]
..NET Application Architect, Enthusiast, & Evangelist
T.S. Bradley - http://www.tsbradley.net


|
| Herfried K. Wagner,
|
| We can't a use a constant (#Const) defined in one file everywhere (in all
| other project class/module files). It should be redeclared in all the
files.
| This is whats the problem with this.
|
| Regards,
| ...Ashok
| ------------------------------------------------------------------------
| Everyone develops incrementally; the difference is in the size of the
| increments
|
| || > Is there any equalent of c langs' #include. I have several #defines
|| > (compile
|| > time consts) that I want to include in several classes modules
||
|| No, there is no equivalent. Simply define the constant in one file and
| use
|| them throughout the project.
||
|| --
|| M S Herfried K. Wagner
|| M V P <URL:http://dotnet.mvps.org/>
|| V B <URL:http://classicvb.org/petition/>
||
|
|
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top