Click here to Skip to main content
15,887,027 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Size Of Control Objects Pin
Bacon Ultimate Cheeseburger1-Aug-09 21:36
Bacon Ultimate Cheeseburger1-Aug-09 21:36 
GeneralRe: Size Of Control Objects Pin
ForNow1-Aug-09 21:49
ForNow1-Aug-09 21:49 
Questionvoid pointer? Pin
sam_psycho30-Jul-09 6:21
sam_psycho30-Jul-09 6:21 
AnswerRe: void pointer? Pin
molesworth30-Jul-09 7:49
molesworth30-Jul-09 7:49 
GeneralRe: void pointer? Pin
sam_psycho30-Jul-09 8:06
sam_psycho30-Jul-09 8:06 
GeneralRe: void pointer? [modified] Pin
Joe Woodbury30-Jul-09 8:20
professionalJoe Woodbury30-Jul-09 8:20 
GeneralRe: void pointer? Pin
sam_psycho30-Jul-09 8:30
sam_psycho30-Jul-09 8:30 
GeneralRe: void pointer? Pin
Joe Woodbury30-Jul-09 8:35
professionalJoe Woodbury30-Jul-09 8:35 
There is no solution except to case the pointer to something that resolves to an integer or long value (which is dangerous of the void* isn't actually pointing to an integer or long.)

The point is that you could do *(int*)ptr.

(I actually slightly misspoke--the *ptr is simply an error. That said, newer compilers do some rudimentary "sanity" checking of printf arguments. I've never seen how far the compiler goes, but have seen it complain on occasion when I was being dumb.)
GeneralRe: void pointer? Pin
sam_psycho30-Jul-09 9:01
sam_psycho30-Jul-09 9:01 
GeneralRe: void pointer? Pin
Joe Woodbury30-Jul-09 9:45
professionalJoe Woodbury30-Jul-09 9:45 
GeneralRe: void pointer? Pin
sam_psycho30-Jul-09 16:43
sam_psycho30-Jul-09 16:43 
GeneralRe: void pointer? Pin
Joe Woodbury30-Jul-09 17:04
professionalJoe Woodbury30-Jul-09 17:04 
QuestionC++ Excel Automation -- assign array to range Pin
MattPugsley30-Jul-09 5:45
MattPugsley30-Jul-09 5:45 
GeneralRe: C++ Excel Automation -- assign array to range -- mostly working now Pin
MattPugsley30-Jul-09 10:12
MattPugsley30-Jul-09 10:12 
GeneralRe: C++ Excel Automation -- assign array to range -- mostly working now Pin
Le@rner31-Aug-10 23:32
Le@rner31-Aug-10 23:32 
QuestionCan we change pointer type in the run time? Pin
THAQCD30-Jul-09 3:45
THAQCD30-Jul-09 3:45 
AnswerRe: Can we change pointer type in the run time? Pin
Code-o-mat30-Jul-09 4:04
Code-o-mat30-Jul-09 4:04 
GeneralRe: Can we change pointer type in the run time? Pin
THAQCD30-Jul-09 8:21
THAQCD30-Jul-09 8:21 
GeneralRe: Can we change pointer type in the run time? Pin
Code-o-mat30-Jul-09 8:28
Code-o-mat30-Jul-09 8:28 
AnswerRe: Can we change pointer type in the run time? Pin
MattPugsley30-Jul-09 7:51
MattPugsley30-Jul-09 7:51 
GeneralRe: Can we change pointer type in the run time? Pin
THAQCD30-Jul-09 8:32
THAQCD30-Jul-09 8:32 
QuestionHow to avoid a Global Variable Pin
Madhu_Rani30-Jul-09 3:36
Madhu_Rani30-Jul-09 3:36 
AnswerRe: How to avoid a Global Variable Pin
Chris Losinger30-Jul-09 5:12
professionalChris Losinger30-Jul-09 5:12 
AnswerRe: How to avoid a Global Variable Pin
Rick York30-Jul-09 6:07
mveRick York30-Jul-09 6:07 
GeneralRe: How to avoid a Global Variable Pin
Madhu_Rani30-Jul-09 20:04
Madhu_Rani30-Jul-09 20:04 

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.