|
Cyber Friend wrote: Here is updated code after addition of stdafx.h
And problem's still there?!
Hmm... It looks ok to me...
Would you please include this way:
#include "stdafx.h"
#include "afxtempl.h"
#include "DigitActions.h"
#include <list>
#include <string> And change the line as below to explicitly specify the scope.
std::list <CDigitActions*> m_lstDigitActions;
Maxwell Chen
|
|
|
|
|
Hi all,
Thanx to all of u for help. I have solved the problem by including "StdAfx.h" into ivrnodemanager.cpp which was using ivractions.h.
Thanx
Cyeber Friend
|
|
|
|
|
Do you have the following in your project's stdafx.h file:
#include <list>
"The largest fire starts but with the smallest spark." - David Crow
|
|
|
|
|
DavidCrow wrote: #include <list>
I checked the source of the webpage by [View Source] of IE6. There is #include <list> .
Maxwell Chen
|
|
|
|
|
Yes, I know it's there, but I can't update my post to reflect that.
"The largest fire starts but with the smallest spark." - David Crow
|
|
|
|
|
DavidCrow wrote: but I can't update my post to reflect that
Some ones were also discussing this issue in the Lounge about updating (modification) the posts couple hours ago.
Maxwell Chen
|
|
|
|
|
Hi,
I wish to track what Processes have been executed ie, When the Process is started, finished, memory usage...I don't want to use any tools...Is there any Api call for getting this info or else please suggest me where I get the source code for generating Process log...
Regards,
nag.
|
|
|
|
|
nagamohan_p wrote: I don't want to use any tools...
So what exactly does this mean?
"The largest fire starts but with the smallest spark." - David Crow
|
|
|
|
|
nagamohan_p wrote: When the Process is started, finished, memory usage...I don't want to use any tools...Is there any Api call for getting this info or else please suggest me where I get the source code for generating Process log...
there are lot of api to accompish same!, i.e. for process :- look for Process32First,Process32Next api.
for Memory Usage:- look for GetMemoryStatus!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
|
Hi,
sorry guys, for delay replying and I'm thankful for ur prompt responses.
> I don't want to use any tools...
It means, any third party tools ie, exe shouldn't be called from my application.The functionality should be incorporated in my application.
I can use these Process32First,Process32Next calls, but these should be written in service and should be called for every second which is burdon..
I wish to write the info in a log when the process is started and when it is stopped...This functionality is seen in "Process Logger"
Please sugget me where to get the info for this functionality..
Regards,
nag.
|
|
|
|
|
I have a dialog that I want to be shown as full screen. On this dialog I have 2 CListBox objects. I would like to have the listboxes be the full height of the screem, depending on what resolution the user has set. I get the height using GetSystemMetrics( SM_CYMAXIMIZED ) but I don't see what I have to do so it is drawn with that height.
Also, is there something else I can use with ShowWindow instead of SW_SHOWMAXIMIZED that won't cover the start menu but still show as full screen?
Thanks in advance.
|
|
|
|
|
How about:
CRect rc;
GetParent->GetClientRect(rc);
m_listbox.MoveWindow(nLeft, 0, nWidth, rc.Height());
"The largest fire starts but with the smallest spark." - David Crow
|
|
|
|
|
I suggest use this way in wm_size
whitesky
|
|
|
|
|
Hi Guys,
I want to send a "SendMessage" from within my windowControl as follows,by passing a return key.
MyControl.SendMessage(WM_KEYDOWN,13);
What macro do I have to include in my messagemap & which meesagehandler should I include to take care of my message..
Thanks
|
|
|
|
|
Send message doesn't rewire any macro to be handled..
If you are saying about WM_KEYDOWN then you have to hanfle that Message.
Cheers
"Peace of mind through Technology"
|
|
|
|
|
Okay,So u meant to say that I habe to catch it in the "OnKeyDown"
messageHandler...
|
|
|
|
|
yes
Cheers
"Peace of mind through Technology"
|
|
|
|
|
|
Pazzuzu wrote: Okay,So u meant to say that I habe to catch it in the "OnKeyDown"messageHandler...
but you have to handle WM_KEYDOWN message for that!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
|
I wanted to avoid this technique (what you have suggested is already written in my code)...
thought there is a simplier better way..
thanks
Yaron
Interface basics click here :
http://www.codeproject.com/com/COMBasics.asp
don't forget to vote
|
|
|
|
|
YaronNir wrote: pressing enter will cause the button to be clicked (such as pressing space bar does)
into PreTranslateMessage you can hook the enter key (key up and down)and translate that events to space key:
if(pMsg->wParam==VK_RETURN) pMsg->wParam=VK_SPACE
YaronNir wrote: simplier better way
Can we use PreTranslateMessage , or it is too complex?
Russell
|
|
|
|
|
interesting, depends wether i use PreTranslateMessage or not....
thanks
Yaron
Interface basics click here :
http://www.codeproject.com/com/COMBasics.asp
don't forget to vote
|
|
|
|
|
Yes,
I think that PreTranslateMessage is one of the most powerfull instruments to create the program interface,...but, often, it is not very easy to be prepared.
Cheers,
Russell
|
|
|
|