|
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
|
|
|
|
|
|
Thanks, I will try.
Thanks also for links.
|
|
|
|
|
Instead of IWebBrowser2 , use standard COM methods and register for notifications from the DWebBrowserEvents interface. First query for IConnectionPointContainer interface. Then ask for IConnectionPoint interface for DWebBrowserEvents . Then register your class using IConnectionPoint::Advise .
The class you use must be derived from DWebBrowserEvents and must implement all of it's methods. Unused events should return S_OK. The event you're interested in is DWebBrowserEvents::NavigateComplete. This event will have the final URL where the client was directed to.
-Antti Keskinen
----------------------------------------------
"If we wrote a report stating we saw a jet fighter with a howitzer, who's going to believe us ?"
-- R.A.F. pilot quote on seeing a Me 262 armed with a 50mm Mauser cannon.
|
|
|
|
|
Thanks you I will try this way.
|
|
|
|
|
How can I get a thread status (wether it's suspended or not?) I looked at all Process and Thread functions and couldn't find a way on how to retrieve that information?
Any ideas would be appreciated!!!
Rob
|
|
|
|
|
Robert Buldoc wrote:
How can I get a thread status (wether it's suspended or not?) I looked at all Process and Thread functions and couldn't find a way on how to retrieve that information?
You could always call SuspendThread(), look at the previous suspend count, then call ResumeThread().
Or, you could lookup the thread structure (http://www.microsoft.com/mspress/books/sampchap/4354b.asp[^]) and try to query the SuspendCount value directly.
I decided to store the suspend state as a flag in my thread class.
...cmk
Save the whales - collect the whole set
|
|
|
|
|
Thanks for yoru reply!
I think I am gonna use the thread structure!
|
|
|
|
|
Robert Buldoc wrote:
I think I am gonna use the thread structure!
That way madness lies.
You have been warned.
(Let me know if you get it to work)
...cmk
Save the whales - collect the whole set
|
|
|
|
|
lol..you already scared me!!;P
I think I should use a flag also..
|
|
|
|
|
Hi,
I'm trying to save a local HTML file + images to a single MHT file. I found some C++ example code to do this here: http://www.codeguru.com/Cpp/I-N/ieprogram/comments.php/c4397/?thread=1029
However, when I ran it with a local file reference, such as "file://c:/documents.../index.html", it saves a MHT file. However, the MHT file is about 2KB. If I delete the html and png files, the MHT file shows up as empty. So the images are definetly not being pulled into the MHT files. Does the MHT Builder code only download images if they are not local?
Any comments would be appreciated.
Thanks,
Kevin
|
|
|
|
|
Hi,
I am pretty new to VC++. Can anyone please suggest some game proramming sources in the website which will be of help to me to build a project on Game programming. Hope it is feasible. Thanks for your help.
Regards
|
|
|
|
|
www.gamedev.net
You won't find anything better
modified 12-Sep-18 21:01pm.
|
|
|
|
|
|
|
i installed the Platform SDK downloaded from microsoft.com, set the directories of Visual C++. Then made an empty MFC Dialog-based Project, added
#include "basetsd.h"
#include "gdiplus.h"
in stdafx.h after all includes and before #endif and built the project. 6 errors were reported:
F:\PROGRAM FILES\MICROSOFT SDK\INCLUDE\GdiplusImaging.h(67) : error C2501: 'MIDL_INTERFACE' :
F:\PROGRAM FILES\MICROSOFT SDK\INCLUDE\GdiplusImaging.h(67) : error C2440: 'initializing' :
F:\PROGRAM FILES\MICROSOFT SDK\INCLUDE\GdiplusImaging.h(67) : error C2146:
F:\PROGRAM FILES\MICROSOFT SDK\INCLUDE\GdiplusImaging.h(67) : error C2501: 'IImageBytes' :
F:\PROGRAM FILES\MICROSOFT SDK\INCLUDE\GdiplusImaging.h(67) : error C2239:
F:\PROGRAM FILES\MICROSOFT SDK\INCLUDE\GdiplusImaging.h(67) : error C2059:
(I removed the rest of error information of each line because i am using a Japanese version of Visual C++ and it was difficult to display those characters)
<font=sans-serif>|-|3llo Wo|2ld
|
|
|
|
|
By the way, i had added gdiplus.lib to the project
<font=sans-serif>|-|3llo Wo|2ld
|
|
|
|
|
Anybody that can help me?
<font=sans-serif>|-|3llo Wo|2ld
|
|
|
|
|
I'm so confused it's not even funny...I swear this probl;em is unsolvable...
jk
Anyways...here it is...
I have three integer indexes stored in an associative array
arr["MONTH"] = 12;
arr["YEAR"] = 3;
arr["DAY"] = 0;
I need to some how sort these indexes now, but sorting is not an option...
I need to basically convert each index value into it's element index inside the array...
Do I make sense???
The numbers above would become:
arr["MONTH"] = 2;
arr["YEAR"] = 1;
arr["DAY"] = 0;
Each element may be any number, except for the same as any other...there will never be 2 10's, etc...
Here is what i've tried to use thus far, but it makes no sense...
var max1 = Math.max(this.m_arrIndex['MONTH'], this.m_arrIndex['YEAR']);
var max2 = Math.max(this.m_arrIndex['DAY'], this.m_arrIndex['YEAR']);
var max3 = Math.max(this.m_arrIndex['DAY'], this.m_arrIndex['MONTH']);
Remember sorting the array is out of the question...
Anyone care to shed some light on this subject for me...possible solve it for me
It's really driving me nutts...
Thanks
It's frustrating being a genius and living the life of a moron!!!
|
|
|
|
|
I've managed to get an adhoc hack working, but it's not very elegant...
No answer is need now, unless you know of some short and sweet approach...
Thanks
It's frustrating being a genius and living the life of a moron!!!
|
|
|
|
|
Can anybody tell me how to get SCSI Hard disk's serial number. I got for IDE Hard disk's but not getting for SCSI HDD.
So please help me for the same.
Thanks in advanced
|
|
|
|
|