The easiest way I found is to handle the WM_KICKIDLE message.
#include afxpriv.h // for WM_KICKIDLE meassage
...
ON_MESSAGE(WM_KICKIDLE, OnIdle)
...
LRESULT CMyDialog::OnIdle(WPARAM, LPARAM)
{
// idle processing code
return 0;
}
"You're obviously a superstar." - Christian Graus about me - 12 Feb '03 "Obviously ??? You're definitely a superstar!!!" - mYkel - 21 Jun '04 "There's not enough blatant self-congratulatory backslapping in the world today..." - HumblePie - 21 Jun '05 Within you lies the power for good - Use it!
If you want I can attach the whole project. I'm trying to do this unique things to learn. Where can I send you all my files? This way you can see my problem.
reposting the same question[^] will cause the same answers... :mad: if no one answered much is because : 1) the question is not clear enough 2) no one knows 3) what has been answered performs you enough infos for you to do it ! :suss:
TOXCCT >>> GEII power
[toxcct][VisualCalc]
No. You cannot.. " Action without vision is only passing time, Vision without action is merely day dreaming, But vision with action can change the world " - Words from Nelson Mandela Thanks & Regards, Gopalakrishnan
You can use the seekg method for that. Something like
ifstream input("C:\\Test.txt");
int txt = 0;
//Read a number
input >> txt;
cout << txt;
// Go back to beginning
input.seekg(0, ios::beg);
// Read the number again.
input >> txt;
cout << txt;
Regards Senthil _____________________________ My Blog | My Articles | WinMacro
Hachaso wrote: file.getline(buf, 100); If you are going to be asking for 100 bytes from the file, the buffer needs to be large enough. As it stands you are only allocating room for 1. Change the allocation to:
buf = new char[100];
Don't forget to delete it when done!
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown
Hachaso wrote: I'm writing it in Win32 API...no MFC Your code snippet is MFC code, Hachaso is using the Win32 API's... :doh: Behind every great black man... ... is the police. - Conspiracy brother Blog[^]
Hachaso wrote: How do I use this typedef? LANGUAGEGROUP_ENUMPROC EnumProc; (like this ??) Not necessary. Hachaso wrote: Is this how it is supposed to be used?? Yes, just like the code snippet I provided.
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown
will this help:- http://www.codeproject.com/system/system_information.asp[^]
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers, Alok Gupta