Click here to Skip to main content
15,884,979 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: LPCTSTR to LPCWSTR Pin
Cedric Moonen21-Apr-09 21:24
Cedric Moonen21-Apr-09 21:24 
GeneralRe: LPCTSTR to LPCWSTR Pin
David Crow22-Apr-09 5:48
David Crow22-Apr-09 5:48 
Questioncreating modeless dialog Pin
Rakesh521-Apr-09 19:32
Rakesh521-Apr-09 19:32 
AnswerRe: creating modeless dialog Pin
Chandrasekharan P21-Apr-09 19:38
Chandrasekharan P21-Apr-09 19:38 
AnswerRe: creating modeless dialog Pin
Hamid_RT21-Apr-09 20:04
Hamid_RT21-Apr-09 20:04 
QuestionNetUserChangePassword( not working under Windosw 2003 sp2 Pin
CADITC_CODER21-Apr-09 18:59
CADITC_CODER21-Apr-09 18:59 
QuestionHow to draw the 3D image using the StL file Pin
DevelopmentNoob21-Apr-09 17:52
DevelopmentNoob21-Apr-09 17:52 
AnswerRe: How to draw the 3D image using the StL file Pin
Cedric Moonen21-Apr-09 20:20
Cedric Moonen21-Apr-09 20:20 
Using pure GDI, this will be very complex because GDI only draws 2D (so you'll need to make all the conversions from 3D to 2D yourself, which is probably not what you want). What you could do, is use OpenGL inside your MFC application to take care of the 3d drawing (or another graphic library like directX, but I think OpenGL is more suited to this task).

This is a rather complex task and it is impossible to answer in a single post, so my reply is a general guidelins so that you know a bit where to look. For a start, I would search for articles on CP that describes how to embedd OpenGL in an MFC application (I saw at least one such article) and then I would start to learn OpenGL. This[^] is an excellent book to learn everything you need. You can also find a free version of the book for previous version of OpenGL on the net (which are legal).

On the other hand, somebody perhaps wrote such a control to display an STL file, but I guess you already search for that on google and couldn't find anything. Apparently you didn't because after a very quick search, I found this[^]. You could go and take a look at the implementation. Maybe there are other articles on the subject also.

Cédric Moonen
Software developer

Charting control [v2.0 - Updated]
OpenGL game tutorial in C++

Questionuse gdi+ to draw special picture Pin
x169m21-Apr-09 16:29
x169m21-Apr-09 16:29 
AnswerRe: use gdi+ to draw special picture Pin
Hamid_RT21-Apr-09 20:12
Hamid_RT21-Apr-09 20:12 
Questionabout SetJob().about Printer Pin
tony_bin21-Apr-09 15:41
tony_bin21-Apr-09 15:41 
QuestionPre-Allocate File Storage Pin
Hoppenfeld21-Apr-09 9:18
Hoppenfeld21-Apr-09 9:18 
AnswerRe: Pre-Allocate File Storage Pin
Stuart Dootson21-Apr-09 10:28
professionalStuart Dootson21-Apr-09 10:28 
QuestionSystray icon settings under Windows 7 Pin
Maxwell Chen21-Apr-09 8:16
Maxwell Chen21-Apr-09 8:16 
AnswerRe: Systray icon settings under Windows 7 Pin
Stuart Dootson21-Apr-09 8:39
professionalStuart Dootson21-Apr-09 8:39 
GeneralRe: Systray icon settings under Windows 7 Pin
Maxwell Chen21-Apr-09 15:30
Maxwell Chen21-Apr-09 15:30 
GeneralRe: Systray icon settings under Windows 7 Pin
miriam.l22-Sep-09 19:41
miriam.l22-Sep-09 19:41 
QuestionDetect Internet Explorer 7 Pin
bob1697221-Apr-09 7:33
bob1697221-Apr-09 7:33 
QuestionRe: Detect Internet Explorer 7 Pin
David Crow21-Apr-09 7:58
David Crow21-Apr-09 7:58 
AnswerRe: Detect Internet Explorer 7 Pin
bob1697221-Apr-09 8:18
bob1697221-Apr-09 8:18 
QuestionWho can find my import file ! mingw32 problem!!! Pin
zarelaky21-Apr-09 5:13
zarelaky21-Apr-09 5:13 
AnswerRe: Who can find my import file ! mingw32 problem!!! Pin
Stuart Dootson21-Apr-09 8:34
professionalStuart Dootson21-Apr-09 8:34 
GeneralRe: Who can find my import file ! mingw32 problem!!! Pin
zarelaky22-Apr-09 1:41
zarelaky22-Apr-09 1:41 
GeneralRe: Who can find my import file ! mingw32 problem!!! Pin
Stuart Dootson22-Apr-09 2:04
professionalStuart Dootson22-Apr-09 2:04 
GeneralRe: Who can find my import file ! mingw32 problem!!! Pin
zarelaky22-Apr-09 4:06
zarelaky22-Apr-09 4:06 

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.