PC Review


Reply
Thread Tools Rate Thread

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

 
 
Richard Lewis Haggard
Guest
Posts: n/a
 
      13th Feb 2007
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?
--
Richard Lewis Haggard
www.Haggard-And-Associates.com


 
Reply With Quote
 
 
 
 
=?Utf-8?B?Q2lhcmFuIE8nJ0Rvbm5lbGw=?=
Guest
Posts: n/a
 
      13th Feb 2007
You can have 1 file with both of the definitions in it, with one set wrapped
in an
#if CSHARP

#endif

construct


--
Ciaran O''Donnell
http://wannabedeveloper.spaces.live.com


"Richard Lewis Haggard" wrote:

> 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?
> --
> Richard Lewis Haggard
> www.Haggard-And-Associates.com
>
>
>

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
HTML Help Workshop and custom help file =?Utf-8?B?Sm9uYXRoYW4=?= Microsoft Access 0 5th Jun 2007 08:25 AM
Create Help File & find Help Workshop =?Utf-8?B?U2FyYWg=?= Microsoft Access Form Coding 1 20th May 2006 06:41 PM
HTML Help Workshop =?Utf-8?B?RGVubmlz?= Microsoft Windows 2000 Developer 0 19th Jan 2006 04:18 PM
HTML Help Workshop surendra.rajput@gmail.com Windows XP Internet Explorer 1 16th Jan 2006 11:32 AM
Re: HTML Help Workshop Herfried K. Wagner [MVP] Microsoft VB .NET 0 22nd Sep 2003 10:11 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:43 AM.