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

C / C++ / MFC

 
AnswerRe: Function pointer point to a object member function in C++? Pin
Stefan_Lang19-Oct-11 23:21
Stefan_Lang19-Oct-11 23:21 
AnswerRe: Function pointer point to a object member function in C++? Pin
App_19-Oct-11 23:22
App_19-Oct-11 23:22 
Questionvisual studio run time problem Pin
trioum19-Oct-11 20:09
trioum19-Oct-11 20:09 
AnswerRe: visual studio run time problem Pin
Chuck O'Toole19-Oct-11 21:28
Chuck O'Toole19-Oct-11 21:28 
GeneralRe: visual studio run time problem Pin
trioum19-Oct-11 22:54
trioum19-Oct-11 22:54 
GeneralRe: visual studio run time problem Pin
«_Superman_»20-Oct-11 2:26
professional«_Superman_»20-Oct-11 2:26 
GeneralRe: visual studio run time problem Pin
trioum20-Oct-11 5:08
trioum20-Oct-11 5:08 
GeneralRe: visual studio run time problem Pin
Chuck O'Toole20-Oct-11 15:01
Chuck O'Toole20-Oct-11 15:01 
AnswerRe: visual studio run time problem Pin
Albert Holguin20-Oct-11 4:01
professionalAlbert Holguin20-Oct-11 4:01 
QuestionI need socket help UDP broadcast, sendbuf Pin
jkirkerx19-Oct-11 14:24
professionaljkirkerx19-Oct-11 14:24 
AnswerRe: I need socket help UDP broadcast, sendbuf Pin
Goto_Label_19-Oct-11 23:01
Goto_Label_19-Oct-11 23:01 
GeneralRe: I need socket help UDP broadcast, sendbuf Pin
jkirkerx20-Oct-11 6:25
professionaljkirkerx20-Oct-11 6:25 
AnswerRe: I need socket help UDP broadcast, sendbuf Pin
Albert Holguin20-Oct-11 4:14
professionalAlbert Holguin20-Oct-11 4:14 
GeneralRe: I need socket help UDP broadcast, sendbuf Pin
jkirkerx20-Oct-11 6:21
professionaljkirkerx20-Oct-11 6:21 
AnswerRe: I need socket help UDP broadcast, sendbuf Pin
Albert Holguin20-Oct-11 6:50
professionalAlbert Holguin20-Oct-11 6:50 
GeneralRe: I need socket help UDP broadcast, sendbuf Pin
jkirkerx20-Oct-11 8:54
professionaljkirkerx20-Oct-11 8:54 
GeneralRe: I need socket help UDP broadcast, sendbuf Pin
Albert Holguin20-Oct-11 11:31
professionalAlbert Holguin20-Oct-11 11:31 
GeneralRe: I need socket help UDP broadcast, sendbuf Pin
jkirkerx20-Oct-11 12:39
professionaljkirkerx20-Oct-11 12:39 
GeneralRe: I need socket help UDP broadcast, sendbuf Pin
jkirkerx20-Oct-11 12:46
professionaljkirkerx20-Oct-11 12:46 
GeneralRe: I need socket help UDP broadcast, sendbuf Pin
Albert Holguin21-Oct-11 4:51
professionalAlbert Holguin21-Oct-11 4:51 
GeneralRe: I need socket help UDP broadcast, sendbuf Pin
jkirkerx21-Oct-11 6:52
professionaljkirkerx21-Oct-11 6:52 
AnswerYou have to use the memset Pin
jkirkerx20-Oct-11 11:05
professionaljkirkerx20-Oct-11 11:05 
AnswerRe: You have to use the memset Pin
Albert Holguin20-Oct-11 11:35
professionalAlbert Holguin20-Oct-11 11:35 
Question#define not const? Pin
Waldermort19-Oct-11 3:58
Waldermort19-Oct-11 3:58 
AnswerRe: #define not const? Pin
TheGreatAndPowerfulOz19-Oct-11 5:14
TheGreatAndPowerfulOz19-Oct-11 5:14 
no, it's not const. Because it's not a compile-time operation. You're accessing a memory location. If you were to look at the generated C-code, it would look like the following:
(("cmap"[0] << 24) | ("cmap"[1] << 16) | ("cmap"[2] << 8) | ("cmap"[3]))

So, it's runtime code, *not* a constant.

You could try assigning it to a constant though, as follows:
const tag_cmap = _makeTag(cmap);

instead of the
#define tag_cmap

If your actions inspire others to dream more, learn more, do more and become more, you are a leader." - John Quincy Adams
You must accept one of two basic premises: Either we are alone in the universe, or we are not alone in the universe. And either way, the implications are staggering” - Wernher von Braun

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.