Click here to Skip to main content
16,006,475 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: get the process' path by its pid Pin
Krauze14-Jun-10 15:55
Krauze14-Jun-10 15:55 
QuestionListBox (CListBox) focus frame problems introduced with a shlwapi.dll security update in Windows XP 32 bit Pin
User 2694213-Jun-10 21:52
professionalUser 2694213-Jun-10 21:52 
QuestionC2061 Pin
T.RATHA KRISHNAN13-Jun-10 21:06
T.RATHA KRISHNAN13-Jun-10 21:06 
AnswerRe: C2061 Pin
«_Superman_»13-Jun-10 21:15
professional«_Superman_»13-Jun-10 21:15 
AnswerRe: C2061 PinPopular
Richard MacCutchan13-Jun-10 21:35
mveRichard MacCutchan13-Jun-10 21:35 
GeneralRe: C2061 Pin
Aescleal13-Jun-10 21:38
Aescleal13-Jun-10 21:38 
GeneralRe: C2061 Pin
Richard MacCutchan13-Jun-10 22:46
mveRichard MacCutchan13-Jun-10 22:46 
AnswerRe: C2061 Pin
Aescleal13-Jun-10 21:35
Aescleal13-Jun-10 21:35 
Without knowing which line the error happened at it's a bit hard working out why you're getting that error.

Having said thay if you implement your classes the way you do within the same translation unit you'll never get it to work - you've got a cyclic depenedency between the two clases. Each has to know the size of the other to be able to create instances of the other. Split them up into pairs of .h and .cpp files and it'll have a better chance of working.

Oh, and remember to implement destructors or use some sort of resource management class instead of the pointers. And beware of any class that calls itself a context (or manager) they're usually global state in disguise.

Cheers,

Ash
AnswerRe: C2061 Pin
sunlin715-Jun-10 2:45
sunlin715-Jun-10 2:45 
GeneralRe: C2061 Pin
sunlin715-Jun-10 2:48
sunlin715-Jun-10 2:48 
AnswerRe: C2061 Pin
ThatsAlok17-Jun-10 0:06
ThatsAlok17-Jun-10 0:06 
QuestionGetting addresses...setjmp/longjmp Pin
_AnsHUMAN_ 13-Jun-10 20:34
_AnsHUMAN_ 13-Jun-10 20:34 
AnswerRe: Getting addresses...setjmp/longjmp Pin
«_Superman_»13-Jun-10 21:00
professional«_Superman_»13-Jun-10 21:00 
GeneralRe: Getting addresses...setjmp/longjmp Pin
_AnsHUMAN_ 13-Jun-10 22:25
_AnsHUMAN_ 13-Jun-10 22:25 
GeneralRe: Getting addresses...setjmp/longjmp Pin
«_Superman_»13-Jun-10 22:27
professional«_Superman_»13-Jun-10 22:27 
GeneralRe: Getting addresses...setjmp/longjmp Pin
_AnsHUMAN_ 13-Jun-10 22:50
_AnsHUMAN_ 13-Jun-10 22:50 
AnswerRe: Getting addresses...setjmp/longjmp Pin
Aescleal13-Jun-10 21:27
Aescleal13-Jun-10 21:27 
GeneralRe: Getting addresses...setjmp/longjmp Pin
_AnsHUMAN_ 13-Jun-10 22:23
_AnsHUMAN_ 13-Jun-10 22:23 
GeneralRe: Getting addresses...setjmp/longjmp Pin
Aescleal13-Jun-10 22:37
Aescleal13-Jun-10 22:37 
GeneralRe: Getting addresses...setjmp/longjmp Pin
_AnsHUMAN_ 13-Jun-10 22:47
_AnsHUMAN_ 13-Jun-10 22:47 
GeneralRe: Getting addresses...setjmp/longjmp Pin
_AnsHUMAN_ 14-Jun-10 19:03
_AnsHUMAN_ 14-Jun-10 19:03 
GeneralRe: Getting addresses...setjmp/longjmp Pin
Aescleal15-Jun-10 0:21
Aescleal15-Jun-10 0:21 
GeneralRe: Getting addresses...setjmp/longjmp Pin
_AnsHUMAN_ 15-Jun-10 1:51
_AnsHUMAN_ 15-Jun-10 1:51 
GeneralRe: Getting addresses...setjmp/longjmp Pin
Aescleal15-Jun-10 8:35
Aescleal15-Jun-10 8:35 
GeneralRe: Getting addresses...setjmp/longjmp Pin
norish14-Jun-10 9:17
norish14-Jun-10 9:17 

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.