|
Try starting here[^]. That's a list of debugging functions.
Example:
if (::IsDebuggerPresent()) {
::OutputDebugString("Execution reached debug point 1.");
} Admittedly, this is a trivial example. One nice thing about using the debugger functions is that you can use them even when you run code compiled for release under the debugger.
Software Zen: delete this;
|
|
|
|
|
does anyone here knows if windows save any logs somewhere regarding your dialup connexion. I mean how much the last connexion lasted and the date it started. Something like that. . . . .
gabby
|
|
|
|
|
|
where exactly is that log. Can you tell me the path pls ? I can't find it
gabby
|
|
|
|
|
Start->Control Panel->Administrative Tools->Event Viewer->System
best regards,
David 'DNH' Nohejl
Never forget: "Stay kul and happy" (I.A.)
|
|
|
|
|
When I start working with AppWizard, I go thru those steps, after some time I find that either the view class with its header file, and the source (.cpp) file get erased, even if I add some resource, say a dialog box of my own, then its source file(eg. somedialog.cpp) is gone, plz provide the solution.
I am working on the platform, Windows 2000 professional edition, where I get this problem.
I am very much harassed by this problem,
thanks,
Sanjay Khapre.
Software Developer
Sanjay Khapre
|
|
|
|
|
Hi,
this is a typical bug.
choose the header of the project(***dlg.h) open it,and save it.
now you should see all the classes(they will disappear when you will change something in this header file).
Regards,
Eli
|
|
|
|
|
Are there any differences between the US and UK distributions of VC++ 6 Professional ?
|
|
|
|
|
I don't believe so. What is the problem you are seeing that would cause you to ask this question?
Software Zen: delete this;
|
|
|
|
|
I currently have VC++ 6 Standard and have a chance to buy VC++ 6 Pro, which is the US version. I just wanted to check there weren't any major differences before buying it.
PS. Had I known that VC++ 6 Standard produced such crap/bloated code, I would have gone for the Pro version immediately.
|
|
|
|
|
VC itself should be the same, since MS doesn't localize for dialects of a language (eg, they don't make separate US, UK, and AUS English versions). However the 3rd-party stuff that comes with VC may differ between countries depending on license agreements.
--Mike--
LINKS~! Ericahist | 1ClickPicGrabber | CP SearchBar v2.0.2 | C++ Forum FAQ | You Are Dumb
Magnae clunes mihi placent, nec possum de hac re mentiri.
|
|
|
|
|
The steering wheel's on the other side.
/ravi
My new year's resolution: 2048 x 1536
Home | Articles | Freeware | Music
ravib@ravib.com
|
|
|
|
|
Why is it that Americans drive on the wrong side of the road ?!
|
|
|
|
|
defenestration wrote:
Why is it that Americans drive on the wrong side of the road ?!
Actually, they drive on the right side;P
"You're obviously a superstar." - Christian Graus about me - 12 Feb '03
"Obviously ??? You're definitely a superstar!!!" mYkel - 21 Jun '04
Within you lies the power for good - Use it!
|
|
|
|
|
Spoken like a true American. Need I say more....
|
|
|
|
|
defenestration wrote:
Spoken like a true American.
Who lives in Canada...
Ryan "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
|
|
|
|
|
|
To create a dialog control without using the Visual Studio dialog editor, I would declare a control object as a member of the dialog class:
...<br />
public:<br />
CButton btn;<br />
...
then, in the dialog's OnCreate or InitDialog method, I would create the button:
...<br />
btn.Create("Button Label",WS_CHILD|WS_VISIBLE,CRect(0,0,10,30),this,BTN_ID);<br />
...
Which works quite well, except... the font of the button text is different from the text font of a button created through VS's dialog editor. Other controls show various differences in appearence as well (a manually created Edit Control would not have that "sunken" appearence, for instance).
So, how do I manually create dialog controls that match the appearence of those created by the dialog editor? What have I forgotten to do?
I would appreciate it if someone could enlighten me.
SytS
|
|
|
|
|
SytS wrote:
the font of the button text is different from the text font of a button created through VS's dialog editor
If you create a font using the dialog editor, the dialog editor implicitly sets the font for the dialog, usually to something like 'MS Shell Dlg'. Windows or controls you create 'manually' by calling their Create(...) function by default are set to the system font, which is larger and bolder in appearance (depending upon the OS and its version).
You can set the font for the windows you create manually to the default user interface font by calling the control's SetFont(::GetStockObject(DEFAULT_GUI_FONT)) [^] function.
SytS wrote:
Other controls show various differences in appearence as well (a manually created Edit Control would not have that "sunken" appearence, for instance).
This problem has a slightly different source. The 'sunken' appearance is created by a window having the WS_SUNKEN style. You need to make sure that the style flags you specify in your Create(...) call include the options you want. Note that there are extended style flags that you can specify using the CreateEx(...) function that give you more options.
Software Zen: delete this;
|
|
|
|
|
Gary,
The control's SetFont() method requires a CFont * as input parameter; however, the GetStockObject() function returns something of type HGDIOBJ . Is there a way to convert from one type to another?
Update:
I was able to work around this with:
CFont font;<br />
font.CreateStockObject(DEFAULT_GUI_FONT);<br />
btn.SetFont(&font);
But it would nice if the GetStockObject() function can be used directly.
SytS
|
|
|
|
|
You can use this:
btn.SetFont(CFont::FromHandle((HFONT)::GetStockObject(DEFAULT_GUI_FONT))); The FromHandle static function in the CFont constructs a temporary object for you. The HFONT type cast converts the HGDIOBJ to an HFONT .
Software Zen: delete this;
|
|
|
|
|
Hello,
I want to know about cpu usage of a program.
For example wmplayer.exe I want to know when this
program have a 0% cpu usage?
Best Wishes.
Thanks.
|
|
|
|
|
this is really not a C++ question.
i have a small web-site, and need a web-site tracker or counter (free) to record count of users visited.
could u give me a link or comments about "best" one?
thanks
includeh10
|
|
|
|
|
These website provides free web counters
- gostats.com
- counter.bizhat.com
- jcount.com
many more.... search free webcounters in Google.by the way please ask these type of wuestion in Open Discussion or Lounge
"I Think this Will Help"
Alok Gupta visit me at http://www.thisisalok.tk
|
|
|
|
|
How to detect what URL clicked user ?
I have IWebBrowser2
And can catch On_Navigate2,
but current URL is old,
how to get pressed URL ?
Thanks
|
|
|
|