How to create a definitions file acceptable to both HTML Help Workshop and C#

  • Thread starter Richard Lewis Haggard
  • Start date
R

Richard Lewis Haggard

Is it possible to make a single file that can act as the source of context
help topic ID for both MicrosofMicrosoft's HTML Help Workshop and C#
projects and, if so, how?

Microsoft's HTML Workshop wants to see its topic IDs in the standard C++
format, as in the following example:

#define HH_TOPIC01 1001
#define HH_TOPIC02 1002
#define HH_TOPIC03 1003

In C#, of course, that sort of syntax is not legal. C# wants to see a
constant int or some other such thing, as in

const int HH_TOPIC01 = 1001;
const int HH_TOPIC02 = 1002;
const int HH_TOPIC03 = 1003;

Any suggestions as to how to construct a single source file that will meet
the needs of both of these two consumers?
 
G

Guest

You can have 1 file with both of the definitions in it, with one set wrapped
in an
#if CSHARP

#endif

construct
 

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

Top