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

C / C++ / MFC

 
GeneralRe: INT_PTR/INT usage confusion Pin
Chris Meech24-May-06 6:49
Chris Meech24-May-06 6:49 
GeneralRe: INT_PTR/INT usage confusion Pin
bob1697224-May-06 7:38
bob1697224-May-06 7:38 
GeneralRe: INT_PTR/INT usage confusion Pin
Zac Howland24-May-06 8:30
Zac Howland24-May-06 8:30 
GeneralRe: INT_PTR/INT usage confusion Pin
bob1697224-May-06 9:20
bob1697224-May-06 9:20 
QuestionHow to acquire the Scrolling distance ?? Pin
llp00na24-May-06 4:34
llp00na24-May-06 4:34 
AnswerRe: How to acquire the Scrolling distance ?? Pin
Steve Echols24-May-06 18:35
Steve Echols24-May-06 18:35 
QuestionHelping with including a file :D [modified] Pin
Mahhouraaaaaa24-May-06 4:21
Mahhouraaaaaa24-May-06 4:21 
AnswerRe: Helping with including a file :D [modified] Pin
bob1697224-May-06 5:07
bob1697224-May-06 5:07 
Mahhouraaaaaa wrote:
#include "ServeurDicoView.h"


The view class is also dependent on the document class. If your going to couple your class to the view like this, you will also need to inclide the document class. (order of inclusion is important but I forget which one comes first). Also, it may take some jacking around with where your declarations are if they are shared by multiple classes. Sometimes forward declarations work, sometimes putting it in the stdafx.h etc...

Lastly, I hate it when others say "you shouldn't do it this way" but for what it's worth, just a friendly FYI, and I still resort to this from time to time so I'm guilty of it as well, but you should try to avoid close coupling your classes to the view/doc/app classes to promote simpler reuse. Sorry. It seems to be our civic duty to point that out around here till it's pouring out of our ears. For what it's worth...

Smile | :)
QuestionInternet Explorer History Pin
rajeevktripathi24-May-06 3:53
rajeevktripathi24-May-06 3:53 
AnswerRe: Internet Explorer History Pin
Chris Losinger24-May-06 4:43
professionalChris Losinger24-May-06 4:43 
AnswerRe: Internet Explorer History Pin
David Crow24-May-06 4:50
David Crow24-May-06 4:50 
Questionboost::weak_ptr exception Pin
LionAM24-May-06 3:32
LionAM24-May-06 3:32 
Question(High-color) icon management Pin
Andre xxxxxxx24-May-06 3:24
Andre xxxxxxx24-May-06 3:24 
AnswerRe: (High-color) icon management Pin
grigsoft24-May-06 6:56
grigsoft24-May-06 6:56 
GeneralRe: (High-color) icon management Pin
Andre xxxxxxx24-May-06 9:08
Andre xxxxxxx24-May-06 9:08 
QuestionPassing on varargs Pin
Steve S24-May-06 3:13
Steve S24-May-06 3:13 
AnswerRe: Passing on varargs Pin
Chris Losinger24-May-06 3:21
professionalChris Losinger24-May-06 3:21 
GeneralRe: Passing on varargs Pin
Steve S24-May-06 3:41
Steve S24-May-06 3:41 
QuestionRe: Multi columns values in combo box [modified] Pin
David Crow24-May-06 3:03
David Crow24-May-06 3:03 
QuestionWrite CD Pin
devcdd24-May-06 2:29
devcdd24-May-06 2:29 
QuestionRe: Write CD Pin
David Crow24-May-06 3:04
David Crow24-May-06 3:04 
AnswerRe: Write CD Pin
devcdd24-May-06 22:52
devcdd24-May-06 22:52 
QuestionRe: Write CD Pin
David Crow25-May-06 2:44
David Crow25-May-06 2:44 
AnswerRe: Write CD Pin
devcdd25-May-06 4:00
devcdd25-May-06 4:00 
GeneralRe: Write CD Pin
David Crow25-May-06 4:04
David Crow25-May-06 4:04 

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.