Predefined preprocessor for C#?

  • Thread starter Thread starter Marcel Ruff
  • Start date Start date
M

Marcel Ruff

Hi,

are there any predefined preprocessor settings during compilation
of C# code like

CF1
CF2
DOTNET1
DOTNET2
WINCE42

which i can use in C# as

#if CF2
... using callback function pointer
#elif CF1
Uuuh ooh (Windows messages?)
#elif DOTNET2
... using UnmanagedFunctionPointer
#elif DOTNET1
... whatever may work here
#endif

thanks
Marcel
 
Not for those. You can always define them yourself in the project properties
and then share the code files between the different project types.

Cheers
Daniel
 

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