|
You only need to know a handful of tags to write most of your documentation. Imho, a great book on HTML Help is this one[^].
/ravi
Let's put "civil" back in "civilization"
http://www.ravib.com
ravib@ravib.com
|
|
|
|
|
The TOC mentions win 3.1 and win95 an awful lot - no whisper of win98 or win2K. DO you think its up to date? Have you used it? Has the workshop not changed since the book was written? I dont know if you can answer these questions...but before I order it get as much info as I can...
Appreciate your help,
ns
|
|
|
|
|
Works great for Win2K! I'm using it to write the .chm for the next version of one of my products.
/ravi
Let's put "civil" back in "civilization"
http://www.ravib.com
ravib@ravib.com
|
|
|
|
|
Terrific. Now I know who to bother when I (eventually) get started on the process. Thanks a million for the link to the book. I
'lll just buy it and not wait for official channels to order it.....I feel more confident now knowing that soon the mists of the concept will be lifted (I hope!)
|
|
|
|
|
My books on its way - had to buy it used - its out of print. Have fun!
|
|
|
|
|
Keeeeeeeeeewl!
I have to show you my GPS hack one of these days. I'm using it to track trucks whizzing past in scenic Illinois! (Man with too much time on his hands )
/ravi
Let's put "civil" back in "civilization"
http://www.ravib.com
ravib@ravib.com
|
|
|
|
|
Btw, the help compiler included in the book is circa 1912. Be sure to download the latest version and docs from here[^]. You can still use the same book.
/ravi
Let's put "civil" back in "civilization"
http://www.ravib.com
ravib@ravib.com
|
|
|
|
|
Hi,
I need to know how to specify the system color used in a GRAY_BRUSH as an RGB macro. In other words, if I have something like
RGB(r, g, b)
Then what values should r, g, and b equal to match LTGRAY_BRUSH, GRAY_BRUSH, etc. Are there some defined constants for gray, light gray, etc?
Thanks,
Aaron
|
|
|
|
|
In terms of RGB, lt gray is (192, 192, 192), medium gray is (128, 128, 128) and dark grey is (64, 64, 64). Not sure if this information actually helps you.
/ravi
Let's put "civil" back in "civilization"
http://www.ravib.com
ravib@ravib.com
|
|
|
|
|
Hope this could help you.
GetSysColorBrush
http://msdn.microsoft.com/library/en-us/wceui40/htm/cerefGetSysColorBrush.asp
GetSysColor
http://msdn.microsoft.com/library/en-us/sysinfo/base/getsyscolor.asp
|
|
|
|
|
You can user the GetSystemColor() function to get any of the Windows system colors. You can use GetRValue() GetGValue() and GetBValue() to get the actual values (that you may or may not still need).
|
|
|
|
|
Thanks for the tips! I think the GetSysColor is the one I need.
|
|
|
|
|
I've seen it but I don't know how to programm it in my application. I mean, if the application has to be executed by a inexperienced user then he has to execute, for instance, "application.exe", but if I have to do some kind of administration (for example change an IP address) executed like "application.exe -admin" that shows me up a different dialog.
How can I programm this two different rutines??
Thaks
|
|
|
|
|
What actually is your problem? You want your program to perform different actions depending on presence of some command-line argument? Or rather you're asking about the function which tells if current user has administrative rights?
Tomasz Sowinski -- http://www.shooltz.com
*** Si fractum non sit, noli id reficere. ***
|
|
|
|
|
The first one, to perform different actions depending on command-line arguments.
Thanks.
|
|
|
|
|
The command line parameters can be used in the InitInstance() of your application. The command line is stored in m_lpCmdLine which is a char array. If you pass your parameter with a slash (ie. /MYPARM) they will be considered flags. If you don't include the slash the first
parameter will be considered to be the file you want to open. You can turn off that behavior my setting:
cmdIndo.mShellCommand = CCommandLineInfo::FileNew;
but why not just include the slash?
*NOTE you can test your command line parameter in the developer studio!
see the PROJECT - SETTINGS - DEBUG(tab)
|
|
|
|
|
How can i store 2 longs in a single variable. Similare to storing 2 shorts in a long with the MAKELONG macro. Can i do this with Long64?
Thanks
|
|
|
|
|
|
I don't think that will work because that stores it in a structure. I need it to be in one variable.
|
|
|
|
|
use an unsigned __int64, something like:
unsigned __int64 i64 = (unsigned long)longOne * ((unsigned long)-1) + longTwo;
ie.. the high 4 bytes are your first long and the low four are your 2nd long.
-c
All you have to do is tell the people they are being attacked, and denounce the opposition for lack of patriotism and exposing the country to danger.
-- Herman Goering, on how to control the public
|
|
|
|
|
How do i get the two longs back out of the unsigned__int64?
|
|
|
|
|
longOne = i64 / (unsigned long)-1;
longTwo = i64 - (longOne * (unsigned long)-1);
or something similar
-c
All you have to do is tell the people they are being attacked, and denounce the opposition for lack of patriotism and exposing the country to danger.
-- Herman Goering, on how to control the public
|
|
|
|
|
Gilfrog wrote:
I need it to be in one variable.
You may use __int64 if you want to play with shifting bits. But why can't you use a structure?
Tomasz Sowinski -- http://www.shooltz.com
*** Si fractum non sit, noli id reficere. ***
|
|
|
|
|
A structure would solve the issue would it not?
#pragma pack(1)
typedef struct two_longs_dont_make_a_right
{
long one;
long erone;
} two_longs;
? Why in 'one' variable?
Ryan Baillargeon
Software Specialist
Fuel Cell Technologies Inc.
|
|
|
|
|
I need to save an Array of 2 shorts and long to a text file. I just figured it would be easier to save them in one variable that to seperate them with commas or something like that.
|
|
|
|