Click here to Skip to main content
15,900,816 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionhow to use timers in a non MFC class? Pin
Joan M18-Dec-00 11:21
professionalJoan M18-Dec-00 11:21 
AnswerRe: how to use timers in a non MFC class? Pin
Bartosz Lizak18-Dec-00 21:54
Bartosz Lizak18-Dec-00 21:54 
GeneralRe: how to use timers in a non MFC class? Pin
Erik Funkenbusch19-Dec-00 11:21
Erik Funkenbusch19-Dec-00 11:21 
GeneralRe: how to use timers in a non MFC class? Pin
Bartosz Lizak19-Dec-00 23:51
Bartosz Lizak19-Dec-00 23:51 
GeneralWinamp Style Ticker... Pin
18-Dec-00 9:20
suss18-Dec-00 9:20 
GeneralRe: Winamp Style Ticker... Pin
Bartosz Lizak18-Dec-00 22:07
Bartosz Lizak18-Dec-00 22:07 
GeneralMessageBeep(...) for specified length of time Pin
David Wulff18-Dec-00 5:16
David Wulff18-Dec-00 5:16 
GeneralRe: MessageBeep(...) for specified length of time Pin
18-Dec-00 9:06
suss18-Dec-00 9:06 
Suppose that you know make sounds, use this to manipulate the time:
Confused | :confused:

The time in seconds is the value returned by the clock function, divided by CLOCKS_PER_SEC. CLK_TCK is equivalent, but considered obsolete.

#include <time.h>
#include <conio.h>

clock_t start, end;

void time_start()
{
start = clock();
}

int time_trans()
{
end = clock();
return((double)((end - start) / CLOCKS_PER_SEC) );
}
GeneralIP of Linksys Router (Cable) Pin
Todd Hoop18-Dec-00 3:47
Todd Hoop18-Dec-00 3:47 
GeneralWrapping a MFC Wnd in ATL Control Pin
NormDroid18-Dec-00 0:42
professionalNormDroid18-Dec-00 0:42 
GeneralCListViewCtrl Pin
17-Dec-00 22:52
suss17-Dec-00 22:52 
GeneralRe: CListViewCtrl Pin
Bartosz Lizak18-Dec-00 22:13
Bartosz Lizak18-Dec-00 22:13 
QuestionQ: Sending an e-mail programatically? Pin
Bartosz Lizak17-Dec-00 21:41
Bartosz Lizak17-Dec-00 21:41 
AnswerRe: Q: Sending an e-mail programatically? Pin
John Aspras18-Dec-00 0:17
John Aspras18-Dec-00 0:17 
AnswerRe: Q: Sending an e-mail programatically? Pin
Liu18-Dec-00 3:09
Liu18-Dec-00 3:09 
AnswerRe: Q: Sending an e-mail programatically? Pin
Bartosz Lizak18-Dec-00 4:02
Bartosz Lizak18-Dec-00 4:02 
GeneralRe: Q: Sending an e-mail programatically? Pin
Jim Howard18-Dec-00 4:11
Jim Howard18-Dec-00 4:11 
GeneralRe: Q: Sending an e-mail programatically? Pin
Bartosz Lizak18-Dec-00 4:18
Bartosz Lizak18-Dec-00 4:18 
GeneralRe: Q: Sending an e-mail programatically? Pin
Peter Sjöström2-Jan-01 23:25
Peter Sjöström2-Jan-01 23:25 
GeneralRe: Q: Sending an e-mail programatically? Pin
l a u r e n21-Dec-00 19:51
l a u r e n21-Dec-00 19:51 
AnswerRe: Q: Sending an e-mail programatically? Pin
Colin J Davies21-Dec-00 22:50
Colin J Davies21-Dec-00 22:50 
GeneralRe: Q: Sending an e-mail programatically? Pin
Bartosz Lizak2-Jan-01 22:21
Bartosz Lizak2-Jan-01 22:21 
GeneralAttachments by FTP! Pin
Masoud Samimi3-Jan-01 0:16
Masoud Samimi3-Jan-01 0:16 
GeneralRe: Q: Sending an e-mail programatically? Pin
Colin J Davies3-Jan-01 7:54
Colin J Davies3-Jan-01 7:54 
QuestionQ: Does anybody know about VC++ mailing discussion lists? Pin
Bartosz Lizak17-Dec-00 21:14
Bartosz Lizak17-Dec-00 21:14 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.