Click here to Skip to main content
16,006,594 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralDare I proceed? Pin
ns2-Aug-02 7:49
ns2-Aug-02 7:49 
GeneralmySQL and Visual C++ Pin
monrobot132-Aug-02 3:25
monrobot132-Aug-02 3:25 
Generalaccessing database Pin
_ra2-Aug-02 3:12
_ra2-Aug-02 3:12 
GeneralRe: accessing database Pin
[James Pullicino]2-Aug-02 5:10
[James Pullicino]2-Aug-02 5:10 
GeneralRe: Soket or ASP Pin
Masaaki Onishi2-Aug-02 6:38
Masaaki Onishi2-Aug-02 6:38 
GeneralRe: Soket or ASP Pin
Anonymous3-Aug-02 5:08
Anonymous3-Aug-02 5:08 
GeneralLatitude & Longitude Pin
Daniel Ferguson2-Aug-02 2:48
Daniel Ferguson2-Aug-02 2:48 
GeneralRe: Latitude & Longitude Pin
tjkrz2-Aug-02 3:02
tjkrz2-Aug-02 3:02 
NAUTICAL_MILES CNavUtils::FindDistance(
LAT_DEGREES FROM_LATITUDE,
LON_DEGREES FROM_LONGITUDE,
LAT_DEGREES TO_LATITUDE,
LON_DEGREES TO_LONGITUDE)
{
double DELTA_NORTH;
double DELTA_EAST;
double DELTA_LON;
NAUTICAL_MILES RETURN_VALUE;

DELTA_NORTH = TO_LATITUDE - FROM_LATITUDE;
DELTA_LON = TO_LONGITUDE - FROM_LONGITUDE;
if (DELTA_LON > 180.0)
DELTA_LON -= 360.0;
else if (DELTA_LON < -180.0)
DELTA_LON += 360.0;

DELTA_EAST = DELTA_LON *
cos( ((FROM_LATITUDE + TO_LATITUDE) / 2.0) * DEG_TO_RAD );

RETURN_VALUE = (float)(DEG2MIN * (sqrt(pow(DELTA_NORTH,2) + pow(DELTA_EAST,2))));

return (RETURN_VALUE);
}

NORTH and EAST are positive. SOUTH and WEST negative.
GeneralRe: Latitude & Longitude Pin
Daniel Ferguson2-Aug-02 3:38
Daniel Ferguson2-Aug-02 3:38 
GeneralReleasing allocated DC memories !!! Pin
Hadi Rezaee2-Aug-02 1:58
Hadi Rezaee2-Aug-02 1:58 
GeneralRe: Releasing allocated DC memories !!! Pin
Jason Henderson2-Aug-02 3:48
Jason Henderson2-Aug-02 3:48 
GeneralRe: Releasing allocated DC memories !!! Pin
Tomasz Sowinski2-Aug-02 4:01
Tomasz Sowinski2-Aug-02 4:01 
GeneralRe: Releasing allocated DC memories !!! Pin
Hadi Rezaee3-Aug-02 6:27
Hadi Rezaee3-Aug-02 6:27 
GeneralOOP-problem Pin
Mr. T2-Aug-02 1:28
Mr. T2-Aug-02 1:28 
GeneralSuggestion Pin
Ravi Bhavnani2-Aug-02 1:44
professionalRavi Bhavnani2-Aug-02 1:44 
GeneralRe: OOP-problem Pin
Raphael Kindt2-Aug-02 4:41
Raphael Kindt2-Aug-02 4:41 
GeneralReading text file Pin
hongheo762-Aug-02 1:12
hongheo762-Aug-02 1:12 
GeneralRe: Reading text file Pin
Tomasz Sowinski2-Aug-02 1:23
Tomasz Sowinski2-Aug-02 1:23 
QuestionHow to force a thread to end?? Pin
Olli2-Aug-02 0:42
Olli2-Aug-02 0:42 
AnswerRe: How to force a thread to end?? Pin
Tomasz Sowinski2-Aug-02 0:46
Tomasz Sowinski2-Aug-02 0:46 
GeneralRe: How to force a thread to end?? Pin
Olli2-Aug-02 3:05
Olli2-Aug-02 3:05 
AnswerRe: How to force a thread to end?? Pin
Navin2-Aug-02 3:08
Navin2-Aug-02 3:08 
GeneralRe: How to force a thread to end?? Pin
Olli2-Aug-02 3:16
Olli2-Aug-02 3:16 
GeneralRe: How to force a thread to end?? Pin
Daniel Lohmann2-Aug-02 3:53
Daniel Lohmann2-Aug-02 3:53 
GeneralRe: How to force a thread to end?? Pin
Todd Smith2-Aug-02 4:48
Todd Smith2-Aug-02 4:48 

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.