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