Click here to Skip to main content
15,924,367 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: bluetooth includes Pin
jmkhael4-Jun-04 0:13
jmkhael4-Jun-04 0:13 
GeneralBuild Problem Pin
rakeshgajula3-Jun-04 22:22
rakeshgajula3-Jun-04 22:22 
GeneralRe: Build Problem Pin
Cedric Moonen3-Jun-04 22:44
Cedric Moonen3-Jun-04 22:44 
GeneralRe: Build Problem Pin
toxcct3-Jun-04 22:47
toxcct3-Jun-04 22:47 
GeneralRe: Build Problem Pin
jmkhael3-Jun-04 22:50
jmkhael3-Jun-04 22:50 
GeneralRe: Build Problem Pin
toxcct3-Jun-04 22:52
toxcct3-Jun-04 22:52 
GeneralRe: Build Problem Pin
rakeshgajula3-Jun-04 23:11
rakeshgajula3-Jun-04 23:11 
GeneralRe: Build Problem Pin
Cedric Moonen3-Jun-04 23:03
Cedric Moonen3-Jun-04 23:03 
Hum maybe a little explanation of my previous post Wink | ;) .

When you use a class in another class (like you: CSecond in CconfuDlg so, NOT A POINTER), the compiler needs to know CconfuDlg, in order to 'construct' CSecond (because he needs to know the size of CconfuDlg, thus of CSecond to allocate memory for the object).

BUT if you use a POINTER to a class in another class (CconfuDlg* in CSecond), the compiler knows the size of the pointer (a pointer has always the same size), so he doesn't require to know the class CconfuDlg when constructing CSecond. But, you need to tell hil that this class exists and will be defined after (by adding the line class CconfuDlg;).
In the second case, if the class is never declared after (and if you use some of its properties), the linker will throw errors telling that the methods you are callig are not defined.

Hope this is clear enough Poke tongue | ;-P
GeneralRe: Build Problem Pin
rakeshgajula3-Jun-04 23:08
rakeshgajula3-Jun-04 23:08 
GeneralRe: Build Problem Pin
Cedric Moonen3-Jun-04 23:15
Cedric Moonen3-Jun-04 23:15 
GeneralMFC CDialog Inheritance Pin
Mythago3-Jun-04 21:52
Mythago3-Jun-04 21:52 
GeneralRe: MFC CDialog Inheritance Pin
Robert A. T. Káldy4-Jun-04 2:28
Robert A. T. Káldy4-Jun-04 2:28 
GeneralPowerPoint Automation :: Slide Item Pin
Fasial3-Jun-04 19:58
Fasial3-Jun-04 19:58 
QuestionHow do i catch Paste command in windows explorer? Pin
Prakash Nadar3-Jun-04 19:27
Prakash Nadar3-Jun-04 19:27 
AnswerRe: How do i catch Paste command in windows explorer? Pin
Diddy3-Jun-04 23:54
Diddy3-Jun-04 23:54 
GeneralRe: How do i catch Paste command in windows explorer? Pin
Prakash Nadar4-Jun-04 4:42
Prakash Nadar4-Jun-04 4:42 
QuestionHow can I get a jpeg picture's array of pixels to memory by using gdi+ and draw it by OPGL? Pin
pqcyy3-Jun-04 18:32
pqcyy3-Jun-04 18:32 
GeneralDebugging Information Corrupt Pin
Paul Kennedy3-Jun-04 18:14
Paul Kennedy3-Jun-04 18:14 
GeneralRe: Debugging Information Corrupt Pin
Diddy3-Jun-04 23:46
Diddy3-Jun-04 23:46 
GeneralProblem Http POST transfer encoding chunked Pin
tejasvnahal3-Jun-04 17:50
tejasvnahal3-Jun-04 17:50 
GeneralRe: Problem Http POST transfer encoding chunked Pin
palbano3-Jun-04 18:12
palbano3-Jun-04 18:12 
GeneralRe: Problem Http POST transfer encoding chunked Pin
tejasvnahal3-Jun-04 20:26
tejasvnahal3-Jun-04 20:26 
GeneralRe: Problem Http POST transfer encoding chunked Pin
palbano4-Jun-04 4:50
palbano4-Jun-04 4:50 
GeneralRe: Problem Http POST transfer encoding chunked Pin
toxcct3-Jun-04 21:28
toxcct3-Jun-04 21:28 
GeneralRe: Problem Http POST transfer encoding chunked Pin
tejasvnahal3-Jun-04 21:43
tejasvnahal3-Jun-04 21:43 

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.