Click here to Skip to main content
15,913,361 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralEditable subitem code needed!! URGENT Pin
IrishSonic29-Sep-03 4:11
IrishSonic29-Sep-03 4:11 
GeneralRe: Editable subitem code needed!! URGENT Pin
b_girl29-Sep-03 4:26
b_girl29-Sep-03 4:26 
GeneralRe: Editable subitem code needed!! URGENT Pin
IrishSonic29-Sep-03 23:26
IrishSonic29-Sep-03 23:26 
GeneralRe: Editable subitem code needed!! URGENT Pin
b_girl30-Sep-03 3:17
b_girl30-Sep-03 3:17 
GeneralRe: Editable subitem code needed!! URGENT Pin
b_girl30-Sep-03 5:12
b_girl30-Sep-03 5:12 
GeneralRe: Editable subitem code needed!! URGENT Pin
IrishSonic2-Oct-03 22:26
IrishSonic2-Oct-03 22:26 
GeneralRe: Editable subitem code needed!! URGENT Pin
b_girl3-Oct-03 3:32
b_girl3-Oct-03 3:32 
GeneralAdding a new resource Pin
Rome Singh29-Sep-03 3:57
Rome Singh29-Sep-03 3:57 
Generalanother CListCtrl question Pin
b_girl29-Sep-03 3:51
b_girl29-Sep-03 3:51 
GeneralRe: another CListCtrl question Pin
Terry O'Nolley29-Sep-03 6:04
Terry O'Nolley29-Sep-03 6:04 
GeneralRe: another CListCtrl question Pin
b_girl29-Sep-03 6:51
b_girl29-Sep-03 6:51 
GeneralIterating through the duplicate keys in multimap Pin
pankajdaga29-Sep-03 3:44
pankajdaga29-Sep-03 3:44 
GeneralRe: Iterating through the duplicate keys in multimap Pin
Joaquín M López Muñoz29-Sep-03 4:20
Joaquín M López Muñoz29-Sep-03 4:20 
GeneralRe: Iterating through the duplicate keys in multimap Pin
Anonymous29-Sep-03 4:21
Anonymous29-Sep-03 4:21 
GeneralDirectX pixel drawing Pin
skaanji29-Sep-03 3:14
skaanji29-Sep-03 3:14 
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 

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.