Click here to Skip to main content
15,902,860 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Floating point precision lost: NEED HELP! Pin
Hing16-May-04 16:07
Hing16-May-04 16:07 
GeneralRe: Floating point precision lost: NEED HELP! Pin
Member 39436516-May-04 21:13
Member 39436516-May-04 21:13 
GeneralNeed an algorithm (image analyzing) Pin
User 665815-May-04 1:05
User 665815-May-04 1:05 
GeneralRe: Need an algorithm (image analyzing) Pin
Felix Gartsman15-May-04 5:29
Felix Gartsman15-May-04 5:29 
GeneralRe: Need an algorithm (image analyzing) Pin
Alexander M.,15-May-04 5:39
Alexander M.,15-May-04 5:39 
GeneralRe: Need an algorithm (image analyzing) Pin
John R. Shaw15-May-04 7:19
John R. Shaw15-May-04 7:19 
GeneralThanks! Pin
User 665816-May-04 7:59
User 665816-May-04 7:59 
GeneralCFile Pin
Muad-Dib14-May-04 23:33
Muad-Dib14-May-04 23:33 
Hallo!

I'm a beginner with MFC... can somebody tell me how can I read 3 parameters from a *.txt into a Class.

//actually it would be 3 points of an triangle and I would load the co-ordinates of Points from the file

<br />
typedef int Point[2];<br />
<br />
class Point : public CObject<br />
{<br />
public:<br />
	<br />
	<br />
	Points(){};<br />
    <br />
	Pont SummPoints[5];<br />
	int PointNumm;<br />
	bool TriangleTest (Pont a, Pont b, Pont c)	<br />
	{<br />
		double long1 = sqrt((a[0]-b[0])*(a[0]-b[0]) + (a[1]-b[1])*(a[1]-b[1]));<br />
		double long2 = sqrt((a[0]-c[0])*(a[0]-c[0]) + (a[1]-c[1])*(a[1]-c[1]));<br />
		double long3 = sqrt((c[0]-b[0])*(c[0]-b[0]) + (c[1]-b[1])*(c[1]-b[1]));<br />
		 if (long1>= (long2+long3)) return false;<br />
	<br />
	}<br />
}; 




Muad-Dib
mailto:adamo_piar@freemail.hu
Made in Hungary
GeneralRe: CFile Pin
toxcct15-May-04 0:32
toxcct15-May-04 0:32 
GeneralShared Property Pages..! Pin
Halloko14-May-04 23:30
Halloko14-May-04 23:30 
GeneralRe: Shared Property Pages..! Pin
Prakash Nadar15-May-04 22:09
Prakash Nadar15-May-04 22:09 
GeneralRe: Shared Property Pages..! Pin
Halloko15-May-04 22:24
Halloko15-May-04 22:24 
GeneralRe: Shared Property Pages..! Pin
Prakash Nadar16-May-04 3:58
Prakash Nadar16-May-04 3:58 
GeneralRe: Shared Property Pages..! Pin
Halloko16-May-04 4:02
Halloko16-May-04 4:02 
GeneralRe: Shared Property Pages..! Pin
Prakash Nadar16-May-04 4:09
Prakash Nadar16-May-04 4:09 
QuestionVB doesn't provide an HWND to OLE Controls? How to get it for an MFC OCX? Pin
Nirav Doshi14-May-04 22:28
Nirav Doshi14-May-04 22:28 
AnswerRe: VB doesn't provide an HWND to OLE Controls? How to get it for an MFC OCX? Pin
Member 42102515-May-04 6:35
Member 42102515-May-04 6:35 
GeneralRe: VB doesn't provide an HWND to OLE Controls? How to get it for an MFC OCX? Pin
Nirav Doshi16-May-04 18:34
Nirav Doshi16-May-04 18:34 
GeneralRe: VB doesn't provide an HWND to OLE Controls? How to get it for an MFC OCX? Pin
Member 42102517-May-04 5:59
Member 42102517-May-04 5:59 
GeneralRetrieving user details from the registry Pin
abdul moeed14-May-04 20:35
abdul moeed14-May-04 20:35 
GeneralRe: Retrieving user details from the registry Pin
22491714-May-04 21:56
22491714-May-04 21:56 
Generalreading and displaying a bmp image in vc++ Pin
Anonymous14-May-04 20:25
Anonymous14-May-04 20:25 
GeneralBackground Process Pin
cberam14-May-04 19:38
cberam14-May-04 19:38 
GeneralRe: Background Process Pin
22491714-May-04 22:01
22491714-May-04 22:01 
GeneralRe: Background Process Pin
cberam16-May-04 18:03
cberam16-May-04 18: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.