Click here to Skip to main content
15,914,400 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: multidimensional arrays, dummy question Pin
toxcct4-Apr-06 3:49
toxcct4-Apr-06 3:49 
AnswerRe: multidimensional arrays, dummy question Pin
valikac4-Apr-06 6:30
valikac4-Apr-06 6:30 
GeneralRe: multidimensional arrays, dummy question Pin
9ine4-Apr-06 22:58
9ine4-Apr-06 22:58 
QuestionIncrease Height of the Status Bar Pin
RockyJames4-Apr-06 3:23
RockyJames4-Apr-06 3:23 
AnswerRe: Increase Height of the Status Bar Pin
toxcct4-Apr-06 4:19
toxcct4-Apr-06 4:19 
AnswerRe: Increase Height of the Status Bar Pin
ThatsAlok4-Apr-06 6:59
ThatsAlok4-Apr-06 6:59 
QuestionMenus Pin
Aravind Badrinath Krishnan4-Apr-06 3:20
Aravind Badrinath Krishnan4-Apr-06 3:20 
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 

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.