Click here to Skip to main content
15,908,444 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: how to post a custom message in mfc Pin
Blake Miller18-Mar-05 11:50
Blake Miller18-Mar-05 11:50 
QuestionHow to make a button invisible dynamically Pin
caykahve17-Mar-05 22:25
caykahve17-Mar-05 22:25 
AnswerRe: How to make a button invisible dynamically Pin
Mike Dimmick17-Mar-05 22:33
Mike Dimmick17-Mar-05 22:33 
GeneralRe: How to make a button invisible dynamically Pin
caykahve17-Mar-05 22:58
caykahve17-Mar-05 22:58 
GeneralRe: How to make a button invisible dynamically Pin
Cedric Moonen18-Mar-05 1:04
Cedric Moonen18-Mar-05 1:04 
GeneralRe: How to make a button invisible dynamically Pin
Blake Miller18-Mar-05 11:52
Blake Miller18-Mar-05 11:52 
General#define problem Pin
cmk17-Mar-05 22:19
cmk17-Mar-05 22:19 
GeneralRe: #define problem Pin
Bob Stanneveld18-Mar-05 0:39
Bob Stanneveld18-Mar-05 0:39 
Hello,

This certainly looks strange! I can see what you are trying to do and I'll show you a good solution in a moment.

First, your CKOBJ_DUMP_HEAD(CkClass) is a single line macro. The problem here is that you have placed a multiline comment there that comments out everything until a '*/' is found. Therefore the CKOBJ_DUMP_TAIL does not exist. Therefore your solution will never work.

Now, a solution that will work is the following and this is applied often in a class design. I assume here that you have objects that you want to dump.

1) Add a dump method to all the classes that need one. (in the CKDUMP section)
2) Define the following maco
<br />
#ifdef CKDUMP<br />
#  define CK_DUMP_OBJ(OBJ) OBJ->Dump(); /*use the this pointer to call method*/<br />
#else // !CK_DUMP<br />
#  define CK_DUMP_OBJ(OBJ) /*No dumping*/<br />
#endif // CKDUMP<br />


Hope this helps.

I also got the blogging virus..[^]
GeneralRe: #define problem Pin
cmk18-Mar-05 11:57
cmk18-Mar-05 11:57 
QuestionHow to find from where do Outlookaddin get the resource ? Pin
xcavin17-Mar-05 22:10
xcavin17-Mar-05 22:10 
QuestionHow can i use ..........in windows 98? Pin
deldeep17-Mar-05 20:02
deldeep17-Mar-05 20:02 
AnswerRe: How can i use ..........in windows 98? Pin
Mike Dimmick17-Mar-05 22:29
Mike Dimmick17-Mar-05 22:29 
GeneralCreateProcessWithLogonW() not found Pin
ace_maggot17-Mar-05 19:30
ace_maggot17-Mar-05 19:30 
GeneralRe: CreateProcessWithLogonW() not found Pin
Mike Dimmick17-Mar-05 22:32
Mike Dimmick17-Mar-05 22:32 
GeneralPicture control Pin
wasife17-Mar-05 18:29
wasife17-Mar-05 18:29 
GeneralRe: Picture control Pin
namaskaaram17-Mar-05 20:02
namaskaaram17-Mar-05 20:02 
GeneralRe: Picture control Pin
ThatsAlok17-Mar-05 20:33
ThatsAlok17-Mar-05 20:33 
GeneralRe: Picture control Pin
JohnCz18-Mar-05 8:32
JohnCz18-Mar-05 8:32 
Generallog file Pin
Ed0117-Mar-05 17:53
Ed0117-Mar-05 17:53 
GeneralRe: log file Pin
Serge Krynine17-Mar-05 18:33
Serge Krynine17-Mar-05 18:33 
GeneralRe: log file Pin
David Crow18-Mar-05 3:13
David Crow18-Mar-05 3:13 
GeneralRe: log file Pin
John R. Shaw18-Mar-05 8:13
John R. Shaw18-Mar-05 8:13 
GeneralRe: log file Pin
David Crow18-Mar-05 8:23
David Crow18-Mar-05 8:23 
GeneralRe: log file Pin
Ed0118-Mar-05 13:18
Ed0118-Mar-05 13:18 
GeneralRe: log file Pin
David Crow18-Mar-05 18:10
David Crow18-Mar-05 18:10 

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.