Click here to Skip to main content
15,900,110 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: DirectX pixel drawing Pin
ZoogieZork29-Sep-03 6:32
ZoogieZork29-Sep-03 6:32 
GeneralRe: DirectX pixel drawing Pin
skaanji29-Sep-03 8:16
skaanji29-Sep-03 8:16 
GeneralDebug Window. Pin
73Zeppelin29-Sep-03 3:12
73Zeppelin29-Sep-03 3:12 
GeneralRe: Debug Window. Pin
Adam Gritt29-Sep-03 3:38
Adam Gritt29-Sep-03 3:38 
GeneralRe: Debug Window. Pin
73Zeppelin29-Sep-03 4:07
73Zeppelin29-Sep-03 4:07 
GeneralGet click event from a DialogBar Pin
Sebastien Bouchard29-Sep-03 2:45
Sebastien Bouchard29-Sep-03 2:45 
GeneralRe: Get click event from a DialogBar Pin
Michael Dunn29-Sep-03 6:28
sitebuilderMichael Dunn29-Sep-03 6:28 
QuestionHow to convert a pointer to char*? Pin
DaFrawg29-Sep-03 2:10
DaFrawg29-Sep-03 2:10 
(I know this isn't really VC++)(Or is it?)(Anyway, it's not MFC)

Example:
void main(){<br />
   int nInt;<br />
   int *pInt;<br />
   cout << /*help?!*/<br />
}


I want to output the memory location of nInt. This location is saved into pInt Sigh | :sigh: .
The memory location is for instance 3031:3233, so pInt contains 0x30313233. If I would convert this (how) to char*, it'd say "0123". But what I want is 0x30313233 to be converted to a string saying "0x30313233". How is that possible? Confused | :confused:

I know it is weird, but this is what I tried:
void main(){<br />
   int nInt;<br />
   int *pInt;<br />
   cout << char*(void*(pInt));<br />
}


//Excuse me for my bad English. Blush | :O

//---QUOTE---
//
//"ERROR: Keyboard not present - Press F1 to continue" - Most BOIS chips
AnswerRe: How to convert a pointer to char*? Pin
Bernhard29-Sep-03 2:20
Bernhard29-Sep-03 2:20 
AnswerRe: How to convert a pointer to char*? Pin
Adam Gritt29-Sep-03 2:35
Adam Gritt29-Sep-03 2:35 
AnswerRe: How to convert a pointer to char*? Pin
Iain Clarke, Warrior Programmer29-Sep-03 3:47
Iain Clarke, Warrior Programmer29-Sep-03 3:47 
AnswerRe: How to convert a pointer to char*? Pin
David Crow29-Sep-03 5:21
David Crow29-Sep-03 5:21 
AnswerRe: How to convert a pointer to char*? Pin
JT Anderson29-Sep-03 13:33
JT Anderson29-Sep-03 13:33 
QuestionAuto-hide Groupbox - is there ? Pin
vgrigor29-Sep-03 2:04
vgrigor29-Sep-03 2:04 
AnswerRe: Auto-hide Groupbox - is there ? Pin
Iain Clarke, Warrior Programmer29-Sep-03 4:02
Iain Clarke, Warrior Programmer29-Sep-03 4:02 
GeneralRe: Auto-hide Groupbox - is there ? Pin
vgrigor29-Sep-03 4:04
vgrigor29-Sep-03 4:04 
GeneralMFC Dialog Pin
hph29-Sep-03 1:19
hph29-Sep-03 1:19 
GeneralRe: MFC Dialog Pin
Member 21830429-Sep-03 1:46
Member 21830429-Sep-03 1:46 
GeneralRe: MFC Dialog Pin
Roger Allen29-Sep-03 2:27
Roger Allen29-Sep-03 2:27 
GeneralOpen MSWord doc at specific bookmark (ShellExecute?) Pin
Steve Kearon29-Sep-03 0:13
Steve Kearon29-Sep-03 0:13 
Questionocx 2 ??? Pin
The_Server29-Sep-03 0:12
The_Server29-Sep-03 0:12 
GeneralBogus reload macro message Pin
Anonymous29-Sep-03 0:05
Anonymous29-Sep-03 0:05 
GeneralAccess struct in DLL Pin
adamf8128-Sep-03 23:52
adamf8128-Sep-03 23:52 
GeneralRe: Access struct in DLL Pin
Joaquín M López Muñoz29-Sep-03 0:03
Joaquín M López Muñoz29-Sep-03 0:03 
GeneralRe: Access struct in DLL Pin
adamf8129-Sep-03 0:16
adamf8129-Sep-03 0:16 

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.