|
You may want to use Spy++ (it comes with Visual Studio) to see what messages are being passed to windows
Florin Crişan
|
|
|
|
|
i want to get info with os hardware.for example CPU , DISK and so on.help ma
|
|
|
|
|
What info are you wanting to know about the CPU, HDD, etc? Be specific. We're not here to play guessing games.
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Boy, you sound cranky today David. Not getting enough sleep?
Software Zen: delete this;
|
|
|
|
|
David is an active member on the codeproject especialy on this forum and I saw his answers they are good and exactly but I think if lgbean more explain about his question David could answer to him I think his question was general.(BTW when I saw your Gary R. Wheeler I remember you did you remember me?;))
|
|
|
|
|
Nah, just a bad hair day.
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
|
Because message handlers are very different for the two views.
If put them in one view, the "if...else" statements lays everywhere.
Put them in two views, the codes become much easier.
I want it to work as SDI, the only difference is that the view can be switched.
How to implement it?
-- modified at 1:01 Sunday 25th November, 2007
|
|
|
|
|
Or adding a second DocTemplate, or using a Splitter Window[^]
Greetings.
--------
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
“The First Rule of Program Optimization: Don't do it. The Second Rule of Program Optimization (for experts only!): Don't do it yet.” - Michael A. Jackson
|
|
|
|
|
A splitter windows is not convenient for the user.
A MDI is possible, but a little expensive.
Any way to implement it using SDI with no doc-view support?
|
|
|
|
|
|
THX
But I get data from the database, so the document is not necessary, any better way?
|
|
|
|
|
Since you mentioned CFrameWnd and CView, I thought you were using a doc-view style CWinApp. Using the doc-view makes it easy to do the switching since you can use the the internals of the MFC stuff. The CDocument contents are not really needed - I usually have a CMyDocument class with nothing but a constructor, and multiple CFormViews that I switch between.
It doesn't get much simpler than the link I gave.
Judy
|
|
|
|
|
I need to iterate over a std::string and replace every occurance of '\' with '/'.
There are different ways:
I could use the index operator [],
Or I could use the iterator begin()
What is the accepted way to do this?
|
|
|
|
|
Or you could be really brave and use the replace() function.
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
|
|
|
|
|
The replace method requires you to specify the character positions that you want to replace.
This means you must still iterate over the string. No?
|
|
|
|
|
Independent123 wrote: The replace method requires you to specify the character positions that you want to replace.
That's one option.
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Well I've looked at all the overloads and that appears to be the only option.
|
|
|
|
|
Independent123 wrote: Well I've looked at all the overloads and that appears to be the only option.
Direct memory access would always faster. but there you have to check for upperbound of string array
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
void main( void )
{
string name = "this is the string to replace";
cout << ']' << name.c_str() << '[' << endl;
replace(name.begin(), name.end(), 'r', 'R');
cout << ']' << name.c_str() << '[' << endl;
}
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
hi there,im looking for some information on how i can perform mathmatical task using timers.
here is the pusudo code of what i would like to do.
string Result;
Result = Time + 2 hours
or
Result = Time + 10 Minutes
Any ideas guy's?
|
|
|
|
|
What does this have to do with timers?
Did you mean time? If so, you could use the CTime/CTimeSpan or the
COleDateTime/COleDateTimeSpan classes.
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
thes3cr3t1 wrote: Result = Time + 2 hours
What unit of measurement is "time" in? If it's in seconds, add 7200. If it's in minutes, add 120.
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
I have a main C++ Routine with an include file called MyMainFile.h. Have a number of global variables in the include file that I want to be visible to a subroutine that is called from the main C++ program. However, when I call the subroutine, and include the MyMainFile.h in the subroutine, none of the variable that are declared in the include file, MyMainFile.h, are available. The compiler designates them as undeclared variables?? Any ideas? Sid Kraft
Sid
|
|
|
|