|
I am making a timer program but I want it to stop at a certain number like 300. I made it so it counted but the timer wouldn't stop at a certain number i.e. 300.
[It is possible to represent everything in this universe by using 0 and 1]
I was born intelligent
Education ruined me!.
An idea is useless until it has been implemented.
|
|
|
|
|
|
if(m_iCount == '300')<br />
{<br />
KillTimer(ID_TIMER);<br />
m_cStart.EnableWindow(TRUE);<br />
}
I have this in my Start button but I just realized that, that place is not a
very good choice (YAY). But I still don't know were to put it.....
[It is possible to represent everything in this universe by using 0 and 1]
I was born intelligent
Education ruined me!.
An idea is useless until it has been implemented.
|
|
|
|
|
I figured this out see I had to include this in the wm_timer function or the OnTimer function, and had to change the statement to:
if(m_iCount == 300)<br />
{<br />
KillTimer(ID_TIMER);<br />
m_cStart.EnableWindow(TRUE);<br />
}
[It is possible to represent everything in this universe by using 0 and 1]
I was born intelligent
Education ruined me!.
An idea is useless until it has been implemented.
|
|
|
|
|
Thx though for the concern....
[It is possible to represent everything in this universe by using 0 and 1]
I was born intelligent
Education ruined me!.
An idea is useless until it has been implemented.
|
|
|
|
|
Hello,
do you know how to install the TCP/IP protocol programmatically? Normally you do this using the control panel but how to do it in a program?
-Dominik
_outp(0x64, 0xAD);
and
__asm mov al, 0xAD __asm out 0x64, al
do the same... but what do they do??
|
|
|
|
|
Sorry, I don't know, but I'd like to know the answer to your signature
Grüße aus Deutschland
modified 12-Sep-18 21:01pm.
|
|
|
|
|
Why don't you try it? ;)
-Dominik
_outp(0x64, 0xAD);
and
__asm mov al, 0xAD __asm out 0x64, al
do the same... but what do they do??
|
|
|
|
|
Unhandled exception at 0x00401002 in asmtest.exe: 0xC0000096: Privileged instruction.
No more, no less
modified 12-Sep-18 21:01pm.
|
|
|
|
|
Hmm, interesting
At least on 9x/Me it works
-Dominik
_outp(0x64, 0xAD);
and
__asm mov al, 0xAD __asm out 0x64, al
do the same... but what do they do??
|
|
|
|
|
You can not communicate with ports in NT (4.0,2k,XP,2003,++). That is only done with a device driver..
John
|
|
|
|
|
Greg S. wrote:
Sorry, I don't know, but I'd like to know the answer to your signature
On older OSes and standard keyboards, this disable the keyboard.
But direct access to I/O ports is restricted to drivers on modern OSes.
You can see now why this is a good thing.
Acting as a substitute for God, he becomes a dispenser of justice. - Alexandre Dumas
|
|
|
|
|
thanks for the info!
modified 12-Sep-18 21:01pm.
|
|
|
|
|
Hi all,
I am trying to debug an MFC application. Dialog Based.
As soon as I reach a breakpoint, neither of my application or MSVC does respond anymore.
The funny thing is if I start my application outside of the IDE, and if an exception is raised then I can enter the debugger without any problem.
Is there anything I can check so that I can understand/fix what is going on ?
Thanks for any help.
Zindine
|
|
|
|
|
What OS are you using? I had that all the time on Win98 and ME. It was fine on Win95, and has been fine on XP. Any NT based OS should be fine. Make sure that you're using the latest service pack (at least SP5).
Hope this helps,
Ryan "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
|
|
|
|
|
Hy Ryan,
My OS is Windows 2000 SP3.
How do I know for sure that MSVC 6.0 is updated with SP5 ?
I did apply it but my experience tells me that sometimes some of the files in system32 are overridden by applications.
Added to that, it does it only with that particular application. I did reset all the settings of my project.
I am a bit lost. Never seen that before in 5 years that I am using MSVC 6.0
Thanks for answering anyway.
Zindine
|
|
|
|
|
Yeah, sorry I can't help more. I don't have the problem on WinXP, that I use now, and I've never had 2k. It seems to be OS related though (in my experience), so you might want to check if there are any more SPs available for 2k. I'm not sure what the latest it.
Although, If it only does it for one application, it's wierd. Have you done a rebuild-all? Have you tried restarting the computer? Probably, but just thought I'd check
Others may have more they can say on this
Ryan "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
|
|
|
|
|
it could be the application itself. Here is the obvious stupid questions in case you forgot to check something:
Do you use any unconventional libraries?
Did you try to break the execution by "break all"?
Do you use mix of MT(d), MD(d) libraries?
Do you have custom version of stl libraries?
Could your *.pdb files be out of sink?
Is it possible you have several versions of shared DLL's on your computer?
Did you install Java from Sun on your computer recently? (Rational Rose, Corba, RealTime player)
What is your app actually doing at the time of the problem?
|
|
|
|
|
zindines wrote:
How do I know for sure that MSVC 6.0 is updated with SP5 ?
If you have all of visual studio installed, VB loads with an 'SP5' on the splash screen.
If you can keep you head when all about you
Are losing theirs and blaming it on you;
If you can dream - and not make dreams your master;
If you can think - and not make thoughts you aim;
Yours is the Earth and everything that's in it.
Rudyard Kipling
|
|
|
|
|
I need to create a ftp&web virtual directoryfrom my installer which I'm developing now. Does anyone have any C++ example how to do that?
Thanks in advance and regard!
|
|
|
|
|
MSDN articale "IIS Sample ADSI Script to Create FTP Virtual Directories"
Q254808
|
|
|
|
|
|
Hi! everybody:
I'm developing a ActiveX control which is a windowless, If I find something special in my class, I want to SendMessage to this ctrl and let it do something , but I can not get the window handle of this ctrl, so this ctrl also can not get this message.(I have tried AfxGetMainWnd, it doesn't work)
Does anyone has similar experience? Plesae give me some ideas, I'll appreciate
your help.
Ray
|
|
|
|
|
One possible solution is to have the client pass the ActiveX server a handle of its window. Another solution is a callback interface.
Kuphryn
|
|
|
|
|
Thank you for your answer.
But I just wonder which function I can call to get the client handle, I have tried AfxGetMainWnd(tested it in Activex Ctrl test Container, it doesn't work).
Thanks again
Ray
|
|
|
|