Click here to Skip to main content
15,912,578 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to convert CString to char[] in MFC?(Very Urgent............) Pin
Eytukan3-Mar-09 4:38
Eytukan3-Mar-09 4:38 
GeneralRe: How to convert CString to char[] in MFC?(Very Urgent............) Pin
David Crow3-Mar-09 4:42
David Crow3-Mar-09 4:42 
GeneralRe: How to convert CString to char[] in MFC?(Very Urgent............) Pin
Eytukan3-Mar-09 4:47
Eytukan3-Mar-09 4:47 
QuestionEfficiency question Pin
yellowine2-Mar-09 10:39
yellowine2-Mar-09 10:39 
AnswerRe: Efficiency question Pin
Stuart Dootson2-Mar-09 10:46
professionalStuart Dootson2-Mar-09 10:46 
AnswerRe: Efficiency question Pin
Maximilien2-Mar-09 13:31
Maximilien2-Mar-09 13:31 
AnswerRe: Efficiency question Pin
«_Superman_»2-Mar-09 17:15
professional«_Superman_»2-Mar-09 17:15 
AnswerRe: Efficiency question Pin
Eytukan2-Mar-09 20:17
Eytukan2-Mar-09 20:17 
yellowine wrote:
double Length0(double x1, double y1, double z1, double x2, double y2, double z2)
{
double dx = x2 - x1;
double dy = y2 - y1;
double dz = z2 - z1;

return (dx*dx + dy*dy + dz*dz);
}


You can see no specific improvements with that change there. but on the other hand There would be some improvements with the first case (length0), If the calculations happen inside a loop. just a rough example:
double y1, double z1, double x2, double y2, double z2)
{
double dx = x2 - x1;
double dy = y2 - y1;
double dz = z2 - z1;

double result =0.0;

for(int i=xx;i<yx;i++)>
{
   result +=  (dx* i + dy * i + dz * i);
}
return result;
}

There it would make sense to keep them out of the loop and see some performance improvements.

He never answers anyone who replies to him. I've taken to calling him a retard, which is not fair to retards everywhere.-Christian Graus

QuestionReplacing contents of a file Pin
Neelesh K J Jain2-Mar-09 9:58
Neelesh K J Jain2-Mar-09 9:58 
AnswerRe: Replacing contents of a file Pin
CPallini2-Mar-09 10:09
mveCPallini2-Mar-09 10:09 
GeneralRe: Replacing contents of a file Pin
Rajesh R Subramanian2-Mar-09 19:53
professionalRajesh R Subramanian2-Mar-09 19:53 
JokeRe: Replacing contents of a file Pin
CPallini2-Mar-09 21:18
mveCPallini2-Mar-09 21:18 
QuestionOnAppExit not called when X button clicked Pin
TimmySRX2-Mar-09 9:49
TimmySRX2-Mar-09 9:49 
AnswerRe: OnAppExit not called when X button clicked Pin
Stuart Dootson2-Mar-09 10:15
professionalStuart Dootson2-Mar-09 10:15 
GeneralRe: OnAppExit not called when X button clicked Pin
TimmySRX2-Mar-09 11:05
TimmySRX2-Mar-09 11:05 
GeneralRe: OnAppExit not called when X button clicked Pin
Iain Clarke, Warrior Programmer2-Mar-09 23:04
Iain Clarke, Warrior Programmer2-Mar-09 23:04 
QuestionSendKeys won't work Pin
Ran42-Mar-09 8:49
Ran42-Mar-09 8:49 
AnswerRe: SendKeys won't work Pin
led mike2-Mar-09 9:49
led mike2-Mar-09 9:49 
GeneralRe: SendKeys won't work Pin
Ran42-Mar-09 10:14
Ran42-Mar-09 10:14 
GeneralRe: SendKeys won't work Pin
CPallini2-Mar-09 10:19
mveCPallini2-Mar-09 10:19 
AnswerRe: SendKeys won't work Pin
«_Superman_»2-Mar-09 17:33
professional«_Superman_»2-Mar-09 17:33 
GeneralRe: SendKeys won't work Pin
davidjaybrown3-Mar-09 8:49
davidjaybrown3-Mar-09 8:49 
GeneralRe: SendKeys won't work Pin
«_Superman_»3-Mar-09 15:59
professional«_Superman_»3-Mar-09 15:59 
QuestionCompile Error Actual linking error ....Can someone help. Pin
FISH7862-Mar-09 8:01
FISH7862-Mar-09 8:01 
AnswerRe: Compile Error Actual linking error ....Can someone help. Pin
Jonathan Davies2-Mar-09 8:05
Jonathan Davies2-Mar-09 8:05 

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.