Click here to Skip to main content
15,890,123 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Cannot create DSN name Pin
raju_shiva2-Sep-10 19:00
raju_shiva2-Sep-10 19:00 
QuestionStore a point within rect Pin
mesajflaviu1-Sep-10 0:37
mesajflaviu1-Sep-10 0:37 
AnswerRe: Store a point within rect Pin
CPallini1-Sep-10 0:48
mveCPallini1-Sep-10 0:48 
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 
mesajflaviu wrote:
pView->m_line.AddTail(pView->Line(pObj,1,point)); // this is error


If your structure is defined globally (not inside your class), then you can simply do something like this (given that the structure has the appropriate constructor and your m_line variable is public):
pView->m_line.AddTail(Line(pObj,1,point));


However, it is always better to make your variables private and provide a AddLine to your CMyView instead.


mesajflaviu wrote:
// I don't know how to access element of pView->m_line;


The same way you wrote it. But once again, providing a getter is much more clean.
If you want to access a specific line in your list, then you have to use the methods from the list to retrieve the line you are looking for.
Cédric Moonen
Software developer

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

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 
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 

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.