Click here to Skip to main content
15,892,005 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questiontypdef struct MFC [modified] Pin
mesajflaviu31-Aug-10 20:45
mesajflaviu31-Aug-10 20:45 
AnswerRe: typdef struct MFC Pin
Eugen Podsypalnikov31-Aug-10 21:02
Eugen Podsypalnikov31-Aug-10 21:02 
GeneralRe: typdef struct MFC Pin
mesajflaviu31-Aug-10 21:15
mesajflaviu31-Aug-10 21:15 
GeneralRe: typdef struct MFC Pin
CPallini31-Aug-10 21:26
mveCPallini31-Aug-10 21:26 
AnswerRe: typdef struct MFC Pin
Cedric Moonen31-Aug-10 21:02
Cedric Moonen31-Aug-10 21:02 
GeneralRe: typdef struct MFC Pin
mesajflaviu31-Aug-10 22:53
mesajflaviu31-Aug-10 22:53 
GeneralRe: typdef struct MFC Pin
mesajflaviu31-Aug-10 22:59
mesajflaviu31-Aug-10 22:59 
GeneralRe: typdef struct MFC Pin
Cedric Moonen31-Aug-10 23:06
Cedric Moonen31-Aug-10 23:06 
Why not ? If your structure has to be manipulated externally from your CMyView class, then it makes sense to make it a class which is not defined in your CMyView class (the class, not instances of the class of course).
And I would probably make it a class instead of a structure because you could add some useful methods to it (like check if the line is close enough to a given point, calculate the lenght of the line, ...). Of course, you can still do that with a structure but for most people using a structure in C++ means that it is an object that only contains data (and no method). This is of course not a strict rule.
Cédric Moonen
Software developer

Charting control [v3.0]
OpenGL game tutorial in C++

GeneralRe: typdef struct MFC Pin
Cedric Moonen31-Aug-10 23:02
Cedric Moonen31-Aug-10 23:02 
QuestionRe: typdef struct MFC Pin
CPallini31-Aug-10 23:06
mveCPallini31-Aug-10 23:06 
AnswerRe: typdef struct MFC Pin
mesajflaviu1-Sep-10 0:33
mesajflaviu1-Sep-10 0:33 
GeneralRe: typdef struct MFC Pin
CPallini1-Sep-10 2:03
mveCPallini1-Sep-10 2:03 
Questionre: winsock multiplexed server using select() Pin
Alan Kurlansky31-Aug-10 9:50
Alan Kurlansky31-Aug-10 9:50 
AnswerRe: re: winsock multiplexed server using select() Pin
Moak31-Aug-10 10:36
Moak31-Aug-10 10:36 
QuestionCrash ribbon when PC enter in sleep/standby mode Pin
Dansveen31-Aug-10 2:47
Dansveen31-Aug-10 2:47 
AnswerRe: Crash ribbon when PC enter in sleep/standby mode Pin
Eugen Podsypalnikov31-Aug-10 9:27
Eugen Podsypalnikov31-Aug-10 9:27 
GeneralRe: Crash ribbon when PC enter in sleep/standby mode Pin
Dansveen1-Sep-10 10:52
Dansveen1-Sep-10 10:52 
GeneralRe: Crash ribbon when PC enter in sleep/standby mode Pin
Eugen Podsypalnikov1-Sep-10 22:34
Eugen Podsypalnikov1-Sep-10 22:34 
GeneralRe: Crash ribbon when PC enter in sleep/standby mode Pin
Dansveen2-Sep-10 3:09
Dansveen2-Sep-10 3:09 
GeneralRe: Crash ribbon when PC enter in sleep/standby mode Pin
Eugen Podsypalnikov2-Sep-10 3:22
Eugen Podsypalnikov2-Sep-10 3:22 
GeneralRe: Crash ribbon when PC enter in sleep/standby mode Pin
Dansveen2-Sep-10 9:11
Dansveen2-Sep-10 9:11 
GeneralRe: Crash ribbon when PC enter in sleep/standby mode Pin
Eugen Podsypalnikov2-Sep-10 20:55
Eugen Podsypalnikov2-Sep-10 20:55 
QuestionCan we create DSN name and set a path through Install shield Pin
raju_shiva30-Aug-10 20:48
raju_shiva30-Aug-10 20:48 
QuestionRe: Can we create DSN name and set a path through Install shield Pin
David Crow31-Aug-10 5:45
David Crow31-Aug-10 5:45 
QuestionCustomized BEGIN_TEMPLATE_MESSAGE_MAP with 2 template arguments for VS2005 Pin
funwithdolphin30-Aug-10 19:50
funwithdolphin30-Aug-10 19:50 

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.