|
CPallini wrote: is it valid?
Bill sent it to you.
CPallini wrote: Should I free the memory?
Pick one and stick to it! But since when has Microsoft been able to stick to anything?
CPallini wrote: I'm just the forum clown
And doing a damn fine job....
You measure democracy by the freedom it gives its dissidents, not the freedom it gives its assimilated conformists.
|
|
|
|
|
I don't worry about messages sent by Windows : any application may post and send messages like the operating system does.
Tim Craig wrote:
And doing a damn fine [clown's] job....
I know mate, I know it well.
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.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
I realize that this may not be the ideal message board for this question, but it seemed like the best place, so here it is.
What would be the best way to monitor/log memory & cpu usage for a specific process in the general windows environment? -Thanks
|
|
|
|
|
using WMI classes are good for this purpose eg:- http://msdn.microsoft.com/en-us/library/aa390423(VS.85).aspx
But if you like to use API then you have a lot of options:--
One such is PSAPI
Just refer :- http://msdn.microsoft.com/en-us/library/ms681920(VS.85).aspx.
WMI is having high performance, and it has a good extensible event mechanism.
But PSAPI is not a bad option , but it wont support Windows 9X
Величие не Бога может быть недооценена.
|
|
|
|
|
Alan Kurlansky wrote: What would be the best way to monitor/log memory & cpu usage for a specific process in the general windows environment?
Is this a coding question, or just a general Windows question? If the latter, use the Performance Monitor (perfmon.msc).
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Man who follows car will be exhausted." - Confucius
|
|
|
|
|
Hello,
I need to get stack frame of function from any pdb. I got function name and address of certain function, now I need to know all parameters(in/out) of that function from pdb file. Is there any way..??
Regards
Usman
|
|
|
|
|
|
I have hooked taskbar. Below code is the new window procedure for task bar.
But when I tried to send message with valid m_hDlgWnd of my application window. But it is not working.
Is it not possible to send message from this task bar window procedure?
LRESULT CALLBACK NewProc(
HWND hwnd,
UINT uMsg,
WPARAM wParam,
LPARAM lParam
)
{
switch (uMsg)
{
case WM_PAINT:
::SendMessage( m_hDlgWnd, WM_TASKBAR_UPDATED_EVENT,0,0 );
::SetEvent( m_hTaskBarUpdatedEvent );
::MessageBeep( MB_OK );
break;
}
return CallWindowProc( OldProc,hwnd,uMsg,wParam,lParam );
}
-Cvaji
|
|
|
|
|
After finding the window again, it is worked.
case WM_PAINT:
{
m_hDlgWnd = ::FindWindow( NULL, "HackTaskBar" );
::SendMessage( m_hDlgWnd, WM_TASKBAR_UPDATED_EVENT,0,0 );
::MessageBeep( MB_OK );
break;
}
|
|
|
|
|
Just be carefull with SendMessage, you can run into deadlocks (i'm not saying you will), if the timing isn't that important for what you need, i recommend using PostMessage instead...
[edit] I mean if you use SendMessage between different threads/processes...
> The problem with computers is that they do what you tell them to do and not what you want them to do. <
> Sometimes you just have to hate coding to do it well. <
modified on Tuesday, March 30, 2010 12:05 PM
|
|
|
|
|
Yes. You are write.
Thank you for reminding me
-Cvaji
|
|
|
|
|
Program and input the text is then divided the text into paragraphs, each and every paragraph, separated by a new line every phrase are separated Pinhan other point and every word is separated from the other by a comma
And after the order of the sentences are similar and words Alnchabha
The program I want him to be Originated three matrices
|
|
|
|
|
Hi, You need to be more specifiy and pinpoint exactly what you are finding difficult, then somebody will be able to help you.
Ali
|
|
|
|
|
Dear Noor, you wont get the program here, if so then you got up with a wrong forum
If you specify your problem, a little bit elaborated and clear with a small example.
I am sure, we can help you.
Величие не Бога может быть недооценена.
|
|
|
|
|
I regret, but my English is weak, and because He knew what the heck I want him to question who
|
|
|
|
|
Need Clear Explanation ........
Failure is Success If we learn from it!!
|
|
|
|
|
See here.
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Man who follows car will be exhausted." - Confucius
|
|
|
|
|
you will never learn to be anything useful by asking other people to do your work for you.
|
|
|
|
|
hi,
i have a .mak file while has four depencies(libraries- libgroupsock.lib, libusageenvironment.lib,libbasicusageenv.lib and liblivemedia.lib)
but on building the .mak file , i am facing the following problem.
how to resolve this error.
if the libraries are to be added , how and where to add them..?
kindly help me.
libgroupsock.lib(Groupsock.obj) : error LNK2001: unresolved external symbol _security_cookie
|
|
|
|
|
Probably you will must determinate
what library does provide the function(?) security_cookie
and then include its usage...
virtual void BeHappy() = 0;
|
|
|
|
|
by "include in usage" waht do u mean ?
just add the path in the include files?
|
|
|
|
|
kindly help me. i am doing a project regarding rtsp client and i am a new bie to VC 6.0
|
|
|
|
|
No, include the lib of the unresolved symbol to the linking process.
It could be perform in a .cpp file as following too :
#pragma comment(lib, "NameOfLibOfUnresolvedSymbol.lib")
virtual void BeHappy() = 0;
|
|
|
|
|
oh thanks a lot.
but mine is a .mak file . while building it i am facing such errors.
how to link the libraries to the .mak file? any commands available?
|
|
|
|
|
Probably you could extend your line by the needed lib :
libraries- libgroupsock.lib, libusageenvironment.lib,libbasicusageenv.lib and liblivemedia.lib, NEEDED.lib
virtual void BeHappy() = 0;
|
|
|
|