Click here to Skip to main content
15,898,588 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to convert CString to char[] in MFC?(Very Urgent............) Pin
Gary R. Wheeler3-Mar-09 10:40
Gary R. Wheeler3-Mar-09 10:40 
QuestionRe: How to convert CString to char[] in MFC?(Very Urgent............) Pin
CPallini3-Mar-09 12:48
mveCPallini3-Mar-09 12:48 
AnswerRe: How to convert CString to char[] in MFC?(Very Urgent............) Pin
Gary R. Wheeler4-Mar-09 12:26
Gary R. Wheeler4-Mar-09 12:26 
QuestionRe: How to convert CString to char[] in MFC?(Very Urgent............) Pin
David Crow3-Mar-09 3:11
David Crow3-Mar-09 3:11 
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 
I have the following codes:

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);
}

double Length1(double x1, double y1, double z1, double x2, double y2, double z2)
{
	return ((x2 - x1)*(x2 - x1) + (y2 - y1)*(y2 - y1) + (z2 - z1)*(z2 - z1));
}


Assume all other conditions are the same, which one (Length0 or Length1) theoretically executes faster?

A bit explanation is highly appreciated.
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 
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 

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.