Click here to Skip to main content
15,885,365 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionWaitCommEvent Pin
LCI4-Apr-06 3:08
LCI4-Apr-06 3:08 
AnswerRe: WaitCommEvent Pin
Ștefan-Mihai MOGA4-Apr-06 3:17
professionalȘtefan-Mihai MOGA4-Apr-06 3:17 
GeneralRe: WaitCommEvent Pin
LCI4-Apr-06 6:06
LCI4-Apr-06 6:06 
AnswerRe: WaitCommEvent Pin
YaronNir4-Apr-06 4:06
YaronNir4-Apr-06 4:06 
Questionperformance of C,C++ programs Pin
vikramlinux4-Apr-06 2:54
vikramlinux4-Apr-06 2:54 
AnswerRe: performance of C,C++ programs Pin
toxcct4-Apr-06 3:05
toxcct4-Apr-06 3:05 
GeneralRe: performance of C,C++ programs Pin
vikramlinux4-Apr-06 3:08
vikramlinux4-Apr-06 3:08 
GeneralRe: performance of C,C++ programs Pin
bob169724-Apr-06 3:11
bob169724-Apr-06 3:11 
CString sError="QueryPerformanceCounter() failed for unknown reason";
BOOL bResult=FALSE;
CString sResult="";
LARGE_INTEGER largeStart;
LARGE_INTEGER largeEnd;
LARGE_INTEGER largeFrequency;
_int64 qwordResult=0;
_int64 qwordFrequency=0;

SetThreadAffinityMask(GetCurrentThread(),1); // Prevent multiple CPU's from messing the benchmark up
QueryPerformanceFrequency(&largeFrequency);
bResult=QueryPerformanceCounter(&largeStart); // Get initial counter. Start the test

if (bResult) {
PerformTask(); // Run the test

bResult=QueryPerformanceCounter(&largeEnd); // Get the final counter. End the test

qwordResult=(largeEnd.QuadPart-largeStart.QuadPart); // The elapsed time for the test in counter ticks
qwordFrequency=largeFrequency.QuadPart; // How many times per second the counter ticks

sResult.Format("Ticks = %I64d\nTicks per second = %I64d",qwordResult,qwordFrequency);

if (bResult)
AfxMessageBox(sResult);
else
AfxMessageBox(sError);
} else
AfxMessageBox(sError);
GeneralRe: performance of C,C++ programs Pin
toxcct4-Apr-06 3:12
toxcct4-Apr-06 3:12 
GeneralRe: performance of C,C++ programs Pin
vikramlinux4-Apr-06 3:43
vikramlinux4-Apr-06 3:43 
GeneralRe: performance of C,C++ programs Pin
toxcct4-Apr-06 3:46
toxcct4-Apr-06 3:46 
GeneralRe: performance of C,C++ programs Pin
Maximilien4-Apr-06 3:14
Maximilien4-Apr-06 3:14 
GeneralRe: performance of C,C++ programs Pin
vikramlinux4-Apr-06 20:16
vikramlinux4-Apr-06 20:16 
AnswerRe: performance of C,C++ programs Pin
Maximilien4-Apr-06 3:10
Maximilien4-Apr-06 3:10 
AnswerRe: performance of C,C++ programs Pin
Ștefan-Mihai MOGA4-Apr-06 3:11
professionalȘtefan-Mihai MOGA4-Apr-06 3:11 
AnswerRe: performance of C,C++ programs Pin
toxcct4-Apr-06 3:42
toxcct4-Apr-06 3:42 
QuestionMarshalling Pin
viperlogic4-Apr-06 2:36
viperlogic4-Apr-06 2:36 
AnswerRe: Marshalling Pin
Roger Stoltz4-Apr-06 3:03
Roger Stoltz4-Apr-06 3:03 
GeneralRe: Marshalling Pin
viperlogic4-Apr-06 3:22
viperlogic4-Apr-06 3:22 
GeneralRe: Marshalling Pin
YaronNir4-Apr-06 4:00
YaronNir4-Apr-06 4:00 
AnswerRe: Marshalling Pin
Roger Stoltz4-Apr-06 4:01
Roger Stoltz4-Apr-06 4:01 
Questionproblem in OnDraw Pin
Anu_Bala4-Apr-06 2:34
Anu_Bala4-Apr-06 2:34 
AnswerRe: problem in OnDraw Pin
Cedric Moonen4-Apr-06 2:49
Cedric Moonen4-Apr-06 2:49 
AnswerRe: problem in OnDraw Pin
Hamid_RT4-Apr-06 3:15
Hamid_RT4-Apr-06 3:15 
Questionhardware identify in linux operating system Pin
ss20064-Apr-06 2:25
ss20064-Apr-06 2:25 

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.