|
SuzannaS wrote:
return WriteIntoFile(pfc, "Evento OnPreprocHeaders " + *buffer);
The second parameter being passed to WriteIntoFile() is wrong. It should look like:
char buffer2[281];
wsprintf(buffer2, "Evento OnPreprocHeaders %s", buffer);
return WriteIntoFile(pfc, buffer2);
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
|
|
|
|
|
Thanks... it seems that works, but I sould still test all my code.
Thank you very much
|
|
|
|
|
Hi
I just have a general question about setting up
timers. How would I go about setting up timers in
C++?? Basically, I would like to set timers to wait
for certain events, once the timers pop, I want the
program to take a different route.
Any ideas???
Pls tell me some useful links for Timers sample code
Thanks in advance
Ram
|
|
|
|
|
set the timer to the duration you need (have a look at Cwnd::SetTimer() and Cwnd::KillTimer() ).
also override the events you need to catch. when the message it catched, set a flag.
this way, when the timer times out, if the flag is set, the event appeared, otherwise, it didn't.
TOXCCT >>> GEII power
|
|
|
|
|
Hi
Thanks for the reply.
But i need help on without using MFC in C++
Thnks agian
ram
|
|
|
|
|
ok, but the philosophy is the same...
TOXCCT >>> GEII power
|
|
|
|
|
Hello,
where can i set the timer(SetTimer()) in the main() function.
I tried but the Timer procedure(the call back routine) never got invoked.
Pls help..
Thanks agin
Ram
|
|
|
|
|
are you programming with Win32 ?
if so, you call SetTimer() in your events handler, into the event switch case relative to the action that must start the timer up.
TOXCCT >>> GEII power
|
|
|
|
|
Hello toxcct,
sorry for the delayed reply.
Anyway you have a good idea..on invoking timers.
Thanks a lot
Ram
|
|
|
|
|
cberam wrote:
I tried but the Timer procedure(the call back routine) never got invoked.
What does the relevant code look like?
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
|
|
|
|
|
Check:
SetTimer
KillTimer
Papa
while (TRUE)
Papa.WillLove ( Bebe ) ;
|
|
|
|
|
Hello,
Thanks for help.
where can i set the timer(SetTimer()) in the main() function.
I tried but the Timer procedure(the call back routine) never got invoked.
Pls help..I'm struggling
Thanks agin
Ram
|
|
|
|
|
You will receive a message WM_TIMER each time the timer is consumed
You can catch it in your mail loop, (GetMessage ...)
Papa
while (TRUE)
Papa.WillLove ( Bebe ) ;
|
|
|
|
|
And you will need a message loop.
Jens
|
|
|
|
|
SetTimer() and KillTimer() are still used.
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
|
|
|
|
|
Hallo,
I'm developping an ISAPI FILTER for an ISA SERVER. How can I get the client's browser's session ID?
For each browser does an ID exist?
|
|
|
|
|
hi.. i was wondering if anyone in here could help me with my little problem.
I need to create a console application (in MS Visual C++ 6) which will launch in full screen, not maximized, and i cant figure out how to do this.
|
|
|
|
|
you could open it and then send alt+enter
Don't try it, just do it!
|
|
|
|
|
Doh!!! my bad..
So.. is there any way you can pass this command to the application so it does it by itself?
|
|
|
|
|
Check SetConsoleWindowInfo
You might need
HANDLE hConsole = GetStdHandle(STD_OUTPUT_HANDLE);
if ( hConsole != INVALID_HANDLE_VALUE )
{
// do the dance...
...
}
Papa
while (TRUE)
Papa.WillLove ( Bebe ) ;
|
|
|
|
|
Ok.. Thanks to both of you
I'll try to take a look on it
|
|
|
|
|
Would SetConsoleWindowInfo() be of any help?
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
|
|
|
|
|
I am trying to get into view the last bit of text posted to the multiline Edit Box via these lines of code:-
m_strOutput+= m_strGeneral + crlf; // Total display string; adding m_strNewText at the end
SetDlgItemText(IDC_OUTPUT, m_strOutput); // Display the new text appended onto the old text
m_Output.GetScrollInfo(SB_VERT, &scrollInfo, SIF_ALL);
scrollInfo.nPos = scrollInfo.nMax;
m_Output.SetScrollPos (SB_VERT, scrollInfo.nPos, TRUE);
UpdateData(); // Refresh the control
m_Output is the Edit Box and I was trying to set the scrol position to the current maximum, but no luck.
|
|
|
|
|
You need to set your scrollinfo structure size and variable you need to get in your struct.
si.fMask = SIF_POS; //for instance you need the scroll pos
si.cbSize = sizeof(si); //this is pretty weird but required according to MSDN.
same thing goes to SetScrollInfo
Sonork 100.41263:Anthony_Yio
Life is about experiencing ...
|
|
|
|
|
Why are you calling both SetDlgItemText() and UpdateData() ? A simple call to m_Output.SetWindowText(m_strOutput) will suffice.
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
|
|
|
|