Click here to Skip to main content
15,887,135 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How could i find the '\t' in a file Pin
Archy_Yu21-Feb-09 19:13
Archy_Yu21-Feb-09 19:13 
Questionwin32 dll in visual studio 6.0 VS visual studio 2005/2008 questions Pin
Greg Ellis21-Feb-09 15:10
Greg Ellis21-Feb-09 15:10 
AnswerRe: win32 dll in visual studio 6.0 VS visual studio 2005/2008 questions Pin
Gary R. Wheeler21-Feb-09 15:50
Gary R. Wheeler21-Feb-09 15:50 
AnswerRe: win32 dll in visual studio 6.0 VS visual studio 2005/2008 questions Pin
«_Superman_»21-Feb-09 19:11
professional«_Superman_»21-Feb-09 19:11 
AnswerRe: win32 dll in visual studio 6.0 VS visual studio 2005/2008 questions Pin
Stuart Dootson22-Feb-09 13:46
professionalStuart Dootson22-Feb-09 13:46 
Questiona short code for basic graphics Pin
Redribs21-Feb-09 14:02
Redribs21-Feb-09 14:02 
AnswerRe: a short code for basic graphics Pin
Stephen Hewitt21-Feb-09 22:18
Stephen Hewitt21-Feb-09 22:18 
AnswerRe: a short code for basic graphics Pin
Iain Clarke, Warrior Programmer23-Feb-09 4:45
Iain Clarke, Warrior Programmer23-Feb-09 4:45 
I'm not sure what you're after.

To draw a triangle, you need a drawing surface, so if you're using MFC, you need a view class.

For your actual question, you just need to store 3 sets of X/Y coordinates however you like.

For a code sample, have a look at:
http://www.codeproject.com/KB/recipes/CoordWarp.aspx[^]

It's got lots of points making up long lines - but you can use just 3 if you like...

(Hint, Polygon, with n = 3)

Good luck,

Iain.

Codeproject MVP for C++, I can't believe it's for my lounge posts...

QuestionDeveloping WM5 app, runs differnet in Debug versus Release Pin
uzziah021-Feb-09 12:50
uzziah021-Feb-09 12:50 
AnswerRe: Developing WM5 app, runs differnet in Debug versus Release Pin
uzziah022-Feb-09 15:37
uzziah022-Feb-09 15:37 
Questioncheck existence of file in C++ Pin
meixiang621-Feb-09 11:18
meixiang621-Feb-09 11:18 
AnswerRe: check existence of file in C++ Pin
Iain Clarke, Warrior Programmer21-Feb-09 11:43
Iain Clarke, Warrior Programmer21-Feb-09 11:43 
GeneralRe: check existence of file in C++ Pin
meixiang621-Feb-09 13:49
meixiang621-Feb-09 13:49 
GeneralRe: check existence of file in C++ Pin
enhzflep21-Feb-09 13:59
enhzflep21-Feb-09 13:59 
GeneralRe: check existence of file in C++ Pin
meixiang621-Feb-09 14:14
meixiang621-Feb-09 14:14 
AnswerRe: check existence of file in C++ Pin
Rajesh R Subramanian21-Feb-09 21:08
professionalRajesh R Subramanian21-Feb-09 21:08 
GeneralRe: check existence of file in C++ Pin
David Crow21-Feb-09 14:34
David Crow21-Feb-09 14:34 
GeneralRe: check existence of file in C++ Pin
uzziah022-Feb-09 15:38
uzziah022-Feb-09 15:38 
AnswerRe: check existence of file in C++ Pin
David Crow21-Feb-09 14:34
David Crow21-Feb-09 14:34 
AnswerRe: check existence of file in C++ Pin
Stuart Dootson22-Feb-09 13:48
professionalStuart Dootson22-Feb-09 13:48 
GeneralRe: check existence of file in C++ Pin
meixiang622-Feb-09 16:29
meixiang622-Feb-09 16:29 
AnswerRe: check existence of file in C++ Pin
Dan22-Feb-09 21:25
Dan22-Feb-09 21:25 
QuestionHow to check whether system is connected to internet using VC++? Pin
Supra221-Feb-09 3:02
Supra221-Feb-09 3:02 
AnswerRe: How to check whether system is connected to internet using VC++? Pin
Iain Clarke, Warrior Programmer21-Feb-09 11:46
Iain Clarke, Warrior Programmer21-Feb-09 11:46 
AnswerRe: How to check whether system is connected to internet using VC++? Pin
David Crow21-Feb-09 14:35
David Crow21-Feb-09 14:35 

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.