473,396 Members | 1,671 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

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

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
Feb 13 '07 #1
1 1703
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
Feb 13 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: D. Lee Christopher | last post by:
Can anyone point me to a good tutorial for creating a site-level search applet? I am trying to create a virtual catalog of sorts, and I would like to be able to search the catalog and have the...
8
by: Paul Ponting | last post by:
Hi Is it possible to do basic file system access within HTML? I want to be able to do the following tasks to a known full path and filename Delete (with warning prompt if possible) Open...
2
by: tomas | last post by:
Our HTML Help Workshop is dated 1999 and does not match the current HTML Help Work documentation. Our HTML Help Workshop version is 4.74.8702.0. This version is also reffered to as version 1.3 ...
9
by: Jay Kim | last post by:
Hi, We're implementing a Windows application using Visual Basic .NET. One of the key features we need to implement is that we should be able to get the accurate byte offset of user selected...
3
by: Dhananjayan | last post by:
Hi, I have a java webservice running on Axis, Iam able to create a java client to invoke the webservice and obtain the result. But iam not able to invoke the service from .Net client.. Here are...
2
by: tshad | last post by:
User VS 2003, I would like to use User Controls to control the page look with 3 User Controls (...PageTop.ascx, ...NavigateTop.ascx and PageBottom.ascx). I would put the Content User control...
36
by: zouyongbin | last post by:
Stanley B Lippman in his "C++ Primer" that a definition like this should not appear in a header file: int ix; The inclusion of any of these definitions in two or more files of the same...
7
by: Supriya | last post by:
Hi All, Is there any way to create .chm file programmatically? Please let me know. Thanks in advance. Supriya
7
by: Rainer Queck | last post by:
Hello NG, I am currently confronted with the task to equip a vs2005 project with context sensitive online help (F1). Reading through the MSDN-Library I found out about the "HelpProvider" class,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.