Click here to Skip to main content
15,923,789 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Using Conditional operator v/s if-else statements Pin
#realJSOP26-Jul-07 2:24
professional#realJSOP26-Jul-07 2:24 
QuestionWM_SETTEXT - Pass a string... Pin
Ylno25-Jul-07 3:44
Ylno25-Jul-07 3:44 
AnswerRe: WM_SETTEXT - Pass a string... Pin
Nemanja Trifunovic25-Jul-07 3:47
Nemanja Trifunovic25-Jul-07 3:47 
AnswerRe: WM_SETTEXT - Pass a string... Pin
Jonathan [Darka]25-Jul-07 3:47
professionalJonathan [Darka]25-Jul-07 3:47 
AnswerRe: WM_SETTEXT - Pass a string... Pin
Ylno25-Jul-07 4:07
Ylno25-Jul-07 4:07 
Questionsend a text message to a cell phone from an application Pin
nahitan25-Jul-07 3:43
nahitan25-Jul-07 3:43 
AnswerRe: send a text message to a cell phone from an application Pin
ThatsAlok25-Jul-07 20:11
ThatsAlok25-Jul-07 20:11 
QuestionPerformance diff between Win2K and WinXP? Pin
cjlambre25-Jul-07 3:12
cjlambre25-Jul-07 3:12 
I have an application that has been brought out of mothballs, and am trying to determine the root of an obvious difference in performance between running on a Win2K machine and running on a WinXP machine.

Originally, the application would crash sporadically on a Windows XP machine. The application had been compiled many moons ago, so I set up VStudio 6 on a Windows XP machine, and recompiled the source code. Now the application will run on either Windows 2000 or Windows XP, but exhibits a definite performance decrease on a Windows XP machine.

The source code is not mine, so I don't know it intimately, and it has been many moons since I coded in Visual C++. But I have been able to recall enough to debug into it some. The UI is a thin layer on top of a calculation engine written in (from what I can tell) very generic C/C++ code. In other words, file I/O operations are done using fopen, fprintf, etc. The main calculation loop has 4 main steps, and it loops for every day of a given year. I placed local variables to track average tick count for each of these steps, and can see that one of these steps takes significantly longer than the rest. But again, diving into this function, all I see is standard C/C++ code.

My basic question is, are there any known performance differences when using C/C++ code on these two platforms. Does calloc perform awful on WinXP for some reason unless a particular compiler option is set? Does qsort perform fine on Win2Kbut awful on WinXP? Everything in my experience tells me, there should be no difference. So I think I'm looking for a needle in a haystack. Has anyone come across anything similar?

Any suggestions are greatly appreciated...

Cheers,
Carl

QuestionRe: Performance diff between Win2K and WinXP? Pin
David Crow25-Jul-07 3:34
David Crow25-Jul-07 3:34 
AnswerRe: Performance diff between Win2K and WinXP? Pin
cjlambre29-Jul-07 6:22
cjlambre29-Jul-07 6:22 
Questionmalloc and free? Pin
murali_utr25-Jul-07 2:30
murali_utr25-Jul-07 2:30 
AnswerRe: malloc and free? Pin
Jonathan [Darka]25-Jul-07 2:39
professionalJonathan [Darka]25-Jul-07 2:39 
AnswerRe: malloc and free? Pin
David Crow25-Jul-07 2:40
David Crow25-Jul-07 2:40 
AnswerRe: malloc and free? Pin
Nemanja Trifunovic25-Jul-07 3:04
Nemanja Trifunovic25-Jul-07 3:04 
AnswerRe: malloc and free? Pin
Randor 25-Jul-07 6:27
professional Randor 25-Jul-07 6:27 
QuestionClist ctrl in dialog Pin
deeps_cute25-Jul-07 2:06
deeps_cute25-Jul-07 2:06 
AnswerRe: Clist ctrl in dialog Pin
David Crow25-Jul-07 2:30
David Crow25-Jul-07 2:30 
GeneralRe: Clist ctrl in dialog Pin
deeps_cute25-Jul-07 3:07
deeps_cute25-Jul-07 3:07 
QuestionRe: Clist ctrl in dialog Pin
David Crow25-Jul-07 3:30
David Crow25-Jul-07 3:30 
QuestionCamera Capture Utility Pin
Programm3r25-Jul-07 1:08
Programm3r25-Jul-07 1:08 
AnswerRe: Camera Capture Utility Pin
Adno25-Jul-07 10:13
Adno25-Jul-07 10:13 
QuestionConversion problem Pin
Suneet.0325-Jul-07 0:52
Suneet.0325-Jul-07 0:52 
AnswerRe: Conversion problem Pin
Rage25-Jul-07 1:29
professionalRage25-Jul-07 1:29 
AnswerRe: Conversion problem Pin
Mark Salsbery25-Jul-07 5:45
Mark Salsbery25-Jul-07 5:45 
QuestionConditional break point on CString object is not working? Pin
Mushtaque Nizamani25-Jul-07 0:03
Mushtaque Nizamani25-Jul-07 0: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.