|
I think that the only limit is the cpu performance. I mean, as much timers you add, the performance of the cpu will decrease.
Marc Soleda
... she said you are the perfect stranger she said baby let's keep it like this... Tunnel of Love, Dire Straits.
|
|
|
|
|
It is worth seeing if you can use one timer to handle several functions, e.g a 0.5sec function could processed on every tenth call to a 0.05sec timer.
Elaine
The tigress is here
-- modified at 7:28 Wednesday 5th October, 2005
|
|
|
|
|
As far as i know the only limit is
the CPU performance , as everythimer
thread in an O.S will use some resources
at some excess limit the resources are bound
to be extinct
Vikas Amin
Embin Technology
Bombay
vikas.amin@embin.com
|
|
|
|
|
nripun wrote:
Is there a limit to the number of timers that i can have in an application?
Yes, timers are a limited global resource.
"One must learn from the bite of the fire to leave it alone." - Native American Proverb
|
|
|
|
|
No global resource is unlimited. To see how much you can create, you should write a program that just creates timers and reports the number of timers created when an error occurs...
Behind every great black man...
... is the police. - Conspiracy brother
Blog[^]
|
|
|
|
|
In the
CWnd class there is a function as "CWnd::CreateEx"
i would like to konw exactly what is the difference
beteween CWnd::Create.
thank u
Vikas Amin
Embin Technology
Bombay
vikas.amin@embin.com
|
|
|
|
|
The only difference in the arguments.otherwise both of them create a Window
|
|
|
|
|
vikas amin wrote:
i would like to konw exactly what is the difference
beteween CWnd::Create.
CreateEx Creates a Pop-up Window unlike Create
|
|
|
|
|
yes WinCreateEx::Create creates not only create child window(what CWnd::Create does)but also pop-up and overlapped window
attach it to CWnd object:->
-- modified at 8:12 Wednesday 5th October, 2005
|
|
|
|
|
Thank you
Vikas Amin
Embin Technology
Bombay
vikas.amin@embin.com
|
|
|
|
|
Hi
I have a dialog based MFC application in which I want to hide mouse globally.
I mean to say when I hide mouse it gets hidden but when i move my mouse over some other application or some other window, it gets displayed.
What I want to do is, once I hide my mouse, no matter where I move it, it should not be shown.....
Or is there any function through which I can disable my mouse ?
Regards
Amarelia Maehsh
Gujarat
India
|
|
|
|
|
i don't know of a funtion doing this but have you tried
using a global mousehook? are you familiar with window hooks?
i copuld imagine catching WM_SETCURSOR will do this but i'm not sure.
some links:
WM_SETCURSOR
SetWindowsHookEx()
MouseProc()
good luck!
___________________________________________
http://www.hartwork.org
|
|
|
|
|
Hi,
I haven't been using stream i/o very often, thought it was simple.
Wanted to read in an xml-file with 0x0A line delimiters.
used a for loop
(vc++ 6.0 on xp pro)
ifstream ifsIn("x1.xml");
string strData
for (string s; ifsIn>>s; strData+=s+'\n') {}
.
Was surprised to see, that operator>> uses blanks as input delimiters.
->Normal or bug?
Hence used
for (string s; ifsIn>>s; strData+=s+ifsIn.peek()) {}
i.e. blanks and newlines reside in stream and can be appended to be preserved in result.
Tried for fun to get '\r' + '\n' from ifsIn instead of just '\n' into my strData, because it's a windows format text file. Used ifstream ifsIn("x1.xml", ios::binary), but no success: Stream was empty then.
->Normal or bug?
I didn't find any way to set a property of the stream like "Use no delimiter, slurp in whole file".
->Is there?
Thanks for your assistance
And best regards
Werner
|
|
|
|
|
Sorry, 2nd for-loop is buggy of course, actually it is,
string strData;<br />
ifstream ifsData("x1.xml");<br />
char cPeek[2];<br />
memset(cPeek, 0, sizeof(cPeek));<br />
for (string strTmp; ifsData>>strTmp; ) {<br />
cPeek[0] = ifsData.peek();<br />
strData+=strTmp+cPeek;<br />
}<br />
Regards
Werner
|
|
|
|
|
Does the RECYCLER folder always exist as C:\RECYCLER or there is a CSIDL for it that I use to query the recycle bin folder using SHGetFolderPath?
Thanks!
/f
|
|
|
|
|
|
How to read/write excel files in VC using database support.
thanx in Advance
KK
|
|
|
|
|
|
My Application's Toolbars positioning goes wrong on Win XP OS when i execute for the first time.But on win 2k etc they r fine.
If anyone has come across such a problem plz let me know on satyajit@phildigital.com
|
|
|
|
|
Hello everybody,
When a user is using the Task Manager to End a Process or a task there should be a message sent to the application – anyone knows which message is? Also there is any change to handle the message – e.g. a message loop.
Thank you.
|
|
|
|
|
Hi
I think:
when you end task e proccess from App list first a quit messege send o it & after a priod of time if you accept the windows Q about endtasking app Ended with any message,
but in proccess list proccess will be end without any message.
Iman Ghasrfakhri
|
|
|
|
|
I see.
Thank you.
Regards,
|
|
|
|
|
How can I translate the keyboard character to the current keyboard layout string? In the method CWnd::OnKeyDown I would like to translate the input character to the non English character - e.g. German. Maybe it is not possible to do it in the OnKeyDown method and I have use rather another method/mechanism, but I don't know which one. Unfotunately the given method always returns me the English character even I switched the keyboard layout to another language.
Thanks,
Abyss
|
|
|
|
|
Hi
I think LoadKeyboardLayaut function is helpful for you , you most give yor languge code to this function it change keyboard language.
LoadKeyboardLayaut(_T("00000409"),KLF_ACTIVATE);
LoadKeyboardLayaut(_T("00000429"),KLF_ACTIVATE);
Iman Ghasrfakhri
|
|
|
|
|
Hi,
I didn't know this method, but based on MSDN it loads the keyboard layout. I have to play with this maybe it will automatically translates the character to the local character...
However user can switch to another languages. How can I catch this event? Or will Windows automatically handle this situation? It only requires to have the keyboard layout loaded to the application?
Thanks for your help,
Abyss
|
|
|
|