473,748 Members | 2,602 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 MicrosofMicroso ft'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 1718
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 MicrosofMicroso ft'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
2634
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 results displayed on the same page with one column text and an image of the product. I've seen several tutorials that create site-level searches that will bring back a search results page with options to choose from. I am looking to create a...
8
2952
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 Open containing folder Get the files properties
2
4838
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 What we want is HTML Help Workshop version 1.4 or later. We hope that version 1.4 will match the current HTML Help documentaion at the MSDN website Please let us know where on the internet we can download a newer version of HTML Help Workshop.
9
2957
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 text in the file. We've been trying to use the RichTextBox control to load
3
2200
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 the steps i followed to create a .net client I created a web reference("NetClient") for a webservice running in Axis thru "Add Web Reference", it created succesfully. The next step I should do in order to invoke the service is to
2
1862
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 between the NavigateTop and PageBottom User controls. These files be something like: sdhcPageTop.ascx, ft2PageTop.ascx, sbPageTop.ascx, macPageTop.ascx etc. I would have the same files for the NavigateTop.ascx and PageBottom.asc. The ones that...
36
3846
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 program will result in a linker error complaining about multiple definitions. So this kind of definition should be avoided as much as possible. But as we know, the definition of a class is always in a header file. And we can use "#ifndef" to eliminate...
7
12682
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
7537
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, which lets me use a chm help file for this purpose. My question now is, how can I generate a chm file which contains my help? Is there a way, that I can for example write my Help with word (or some other editor) and then use (what ever) tool to...
0
8823
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9530
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9363
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9238
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6793
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4593
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4864
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3300
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2775
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.