Click here to Skip to main content
16,011,711 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: problem with pasting bitmap to the clipboard under win98 Pin
Tomasz Sowinski1-Oct-02 12:18
Tomasz Sowinski1-Oct-02 12:18 
GeneralRe: problem with pasting bitmap to the clipboard under win98 Pin
Mariusz Popiolek2-Oct-02 0:22
sussMariusz Popiolek2-Oct-02 0:22 
QuestionHow do I do this? Pin
Anonymous1-Oct-02 9:31
Anonymous1-Oct-02 9:31 
AnswerRe: How do I do this? Pin
Nick Parker1-Oct-02 9:40
protectorNick Parker1-Oct-02 9:40 
AnswerRe: How do I do this? Pin
Scott H. Settlemier1-Oct-02 9:51
Scott H. Settlemier1-Oct-02 9:51 
AnswerRe: How do I do this? Pin
Michael Dunn1-Oct-02 9:47
sitebuilderMichael Dunn1-Oct-02 9:47 
AnswerRe: How do I do this? Pin
PJ Arends1-Oct-02 9:47
professionalPJ Arends1-Oct-02 9:47 
AnswerRe: How do I do this? Pin
Mariusz Popiolek1-Oct-02 9:52
sussMariusz Popiolek1-Oct-02 9:52 
At the point where you define class A compiler knows nothing about identifier B, that's why error occurs. Put this before declaration of A:
class B;
Now compiler knows that B is a class, but that's not all. To return B from function compiler must know declaration of B, so you have to return pointer to B, not object B(when compiler see pointer to class, it doesn't have to know declaration of this class). Also you can't call constructor of B at this point, so just declare function in a class A and make a definition after a declaration of class B.

Greetings
Mariusz Popiolek
AnswerRe: How do I do this? Pin
Scott H. Settlemier1-Oct-02 10:00
Scott H. Settlemier1-Oct-02 10:00 
GeneralRe: How do I do this? Pin
PJ Arends1-Oct-02 10:15
professionalPJ Arends1-Oct-02 10:15 
GeneralRe: How do I do this? Pin
Mariusz Popiolek1-Oct-02 10:15
sussMariusz Popiolek1-Oct-02 10:15 
AnswerRe: How do I do this? Pin
Roger Stewart1-Oct-02 10:00
professionalRoger Stewart1-Oct-02 10:00 
AnswerRe: How do I do this? Pin
Anonymous1-Oct-02 11:05
Anonymous1-Oct-02 11:05 
Generalclistctrl::getitmeText Pin
pnpfriend1-Oct-02 9:07
pnpfriend1-Oct-02 9:07 
GeneralRe: clistctrl::getitmeText Pin
Michael Dunn1-Oct-02 9:50
sitebuilderMichael Dunn1-Oct-02 9:50 
GeneralRe: clistctrl::getitmeText Pin
pnpfriend2-Oct-02 5:43
pnpfriend2-Oct-02 5:43 
Questionhow to give the catch block a filename? Pin
ns1-Oct-02 9:06
ns1-Oct-02 9:06 
AnswerRe: how to give the catch block a filename? Pin
jmkhael1-Oct-02 9:08
jmkhael1-Oct-02 9:08 
GeneralRe: how to give the catch block a filename? Pin
ns1-Oct-02 9:13
ns1-Oct-02 9:13 
GeneralRe: how to give the catch block a filename? Pin
jmkhael1-Oct-02 9:14
jmkhael1-Oct-02 9:14 
AnswerRe: how to give the catch block a filename? Pin
Tomasz Sowinski1-Oct-02 11:29
Tomasz Sowinski1-Oct-02 11:29 
GeneralRemote Library Access Pin
Anonymous1-Oct-02 8:52
Anonymous1-Oct-02 8:52 
GeneralRe: Remote Library Access Pin
Daniel Lohmann1-Oct-02 9:56
Daniel Lohmann1-Oct-02 9:56 
GeneralDisplaying data from memory in an SDI application Pin
johann_malherbe1-Oct-02 8:53
sussjohann_malherbe1-Oct-02 8:53 
GeneralRe: Displaying data from memory in an SDI application Pin
jmkhael1-Oct-02 9:06
jmkhael1-Oct-02 9: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.