|
You can't do this directly.
John
|
|
|
|
|
How can this be done indirectly. Any ideas John?.
|
|
|
|
|
I beleive you have to draw the header yourself but it may be possible to stack a list control on top of another such that the only visible part of the top one on is its header.
[EDIT]
When I think of my second idea for a little while I realize this is not going to be easy to get it to work.
[/EDIT]
John
|
|
|
|
|
that's too complicated for it to handle -- take a look at some of the grid controls here on CP, they are more flexible about this..
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br />
Peter Weyzen<br />
Staff Engineer<br />
Santa Cruz Networks
|
|
|
|
|
|
If somebody could point me to them, that would be greatly appreciated. I appear to be having problems finding any on CP.
|
|
|
|
|
Have you searched through MSDN? It has a ton of information?
You might also make a "dummy" project with help-file support, and note the different settings and files that AppWizard adds.
|
|
|
|
|
Well, I'll try that, but MSDN usually gives me a headache. I usually prefer finding stuff from other users. Just wondering if anybody else out there had an article on it.
|
|
|
|
|
These guys[^] make a good tool and have lots of links out.
There are a bunch of tutorials out there on how to create compiled help files - just Google for them. It's a major PITA
Software is everything. It also sucks. Charles Fishman [^]
Awasu 1.0.4 (beta)[^]: A free RSS reader with support for Code Project.
|
|
|
|
|
If all you want to do is produce help files for source you could try Doxygen[^]
If you can keep you head when all about you
Are losing theirs and blaming it on you;
If you can dream - and not make dreams your master;
If you can think - and not make thoughts you aim;
Yours is the Earth and everything that's in it.
Rudyard Kipling
|
|
|
|
|
It's not all I want to do, I'm trying to make a help file becuase it already part of a C++ project as it stands, but I need to modify it and I don't know exactly how to.
|
|
|
|
|
What is the syntax for forward declaration of a template class? I am making a DLL, I would like to forward declare the template class so that it can be "hidden" when you put the header in the application program.
Thanks in advance.
|
|
|
|
|
|
I have a Thread in my COm Server framework . I am unable to send events to the Client in the Thread . This is because the apartment is different . How Can i send events back to my Client from within the thread ?
|
|
|
|
|
So I've been trying to get SendInput to send extended ASCII characters such as ä (ASCII 132) or à (ASCII 133) but have not gotten it to work.
Does anyone have any ideas as to how I can send extended ASCII characters to an input window via SendInput or some other function?
Thanks
Fred
|
|
|
|
|
A quick plug, Thanks to the guys that helped with the random double generator
I am reading in a file and parsing the data.
right now I am using the getline() function.
I am able to parse everything in the file with no problems.
Once I have the data I need to add it to a struct
There are 5 values on each line.
string,string,string,double,double
When I use the getline() function I everything is a string.
How can I convert the last 2 strings to doubles?
Is there a function that will allow me to get chars instead of strings?
Thanks,
sj
here is my function is case I didn't explain well enough:
<br />
struct TSimSignal<br />
{<br />
double Min[5]; <br />
double Max[5]; <br />
double Value[5]; <br />
char Name[5];<br />
char Unit[5];<br />
};<br />
<br />
<br />
<br />
<br />
<br />
void setInitialValues(TSimSignal &s){<br />
<br />
string name,unit,min,max,value;<br />
<br />
fin.open("mockData.dat"); <br />
<br />
<br />
for(int i=0; i<sizeof(s.Name); i++){<br />
getline(fin, name, ',');<br />
if(name == "STOP")<br />
break;<br />
getline(fin, unit, ',');<br />
getline(fin, min, ',');<br />
getline(fin, max, ',');<br />
getline(fin, value);<br />
<br />
s.Name[i]= name;<br />
s.Unit[i]= unit;<br />
s.Min[i]= (double)min;<br />
s.Max[i]= (double)max;<br />
s.Value[i]=(double)value;<br />
<br />
cout << endl << name<<" "<<unit<<" "<<min<<" "<<max<<" "<< value << "\n";<br />
<br />
} <br />
<br />
}<br />
<br />
<br />
|
|
|
|
|
atof( )
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br />
Peter Weyzen<br />
Staff Engineer<br />
Santa Cruz Networks
|
|
|
|
|
I've created the default "hello world" program (console type program). The program works ok in VC++, but it doesn't as a stand alone. The program closes as fast as it opens (this is the release .exe stored in "My Projects"). I've tried various suggestions (such as adding "_getch()," etc...but I shouldn't have to do any of that. The program works in VC++ but not in the final released version. ANybody have any ideas?
Thanks
|
|
|
|
|
Console applications are applications that send all of their output to the console screen "stdout". When executing the program from an icon, windows will create a "command prompt" window for you, but upon completion of the program, the command prompt window will close. This is standard behavior.
If you want your program to maintain the command prompt window on it's own, add something to prevent the termination of the program. A getch() does the trick, as the program will not terminate until it gets some keyboard input from you. But when the program does termninate, the window closes. UNLESS you've set it in windows that command windows remain open.
The workaround, is to open your own command prompt window, and execute your program by typing the program name at the command prompt. This window will not close automagically.
OR change your program so that it is no longer a console application, and is a full fledged windows program with a real window.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br />
Peter Weyzen<br />
Staff Engineer<br />
Santa Cruz Networks
|
|
|
|
|
Yes, I am trying to open it on the desktop. I was also trying to open another screen. I was thinking that the program should work by itself in windows since it works in VC++. I'm not sure how to bring up the DOS box you mentioned, I'm using Windows 2000 Pro.
Thanks, Dave
|
|
|
|
|
Start -> Run -> Cmd [enter]
You will have to manually navigate to the current directory where your program lives...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br />
Peter Weyzen<br />
Staff Engineer<br />
Santa Cruz Networks
|
|
|
|
|
Here's a a really simple way of solving your problem.
Add the following code to the end of your main() function:
system("pause");
That's it. Now, instead of disappearing, your console window should display the message "Press any key to continue..." when running as a stand-alone.
The system("") functions allow you to add any DOS command to your program. For example, you could use system("cd") or system("exit") for various purposes.
Good luck, and remember to keep it simple.
|
|
|
|
|
Or you can put this at the end of your main():
int a;
cin >> a;
Your application will stay open until the user preses enter!
|
|
|
|
|
@yashraj1215: I do not want to criticize your answer, but do you know if it also works on a system that is not based on DOS anymore, such aus Win XP? I've got 98SE and imagine it to work, but does XP accept those DOS system calls?
@Scolinks: What if the user enters something like "n" or "No, no, no!!!!!!"? Although it might work (I've compiled a test program, run it & got no errors), maybe it's just luck that this is accepted?
|
|
|
|
|