Click here to Skip to main content
15,902,198 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: change hex string ? Pin
David Crow14-Feb-05 10:01
David Crow14-Feb-05 10:01 
GeneralDirect3D 8.0 question Pin
Bob Ciora14-Feb-05 9:14
Bob Ciora14-Feb-05 9:14 
GeneralATL Dialog in ATL COM with MFC support Pin
peterchen14-Feb-05 8:34
peterchen14-Feb-05 8:34 
GeneralWeird pointer behavior Pin
K. Shaffer14-Feb-05 6:32
K. Shaffer14-Feb-05 6:32 
GeneralRe: Weird pointer behavior Pin
Michael Dunn14-Feb-05 7:06
sitebuilderMichael Dunn14-Feb-05 7:06 
GeneralRe: Weird pointer behavior Pin
Maximilien14-Feb-05 7:06
Maximilien14-Feb-05 7:06 
GeneralRe: Weird pointer behavior Pin
rocky_pulley14-Feb-05 7:06
rocky_pulley14-Feb-05 7:06 
GeneralRe: Weird pointer behavior Pin
K. Shaffer14-Feb-05 7:50
K. Shaffer14-Feb-05 7:50 
Ok, I think I am understanding now.


This is valid because the function is changing the contents of where the pointer I am passing in points to, not the actual value of the pointer itself.

char g_code[APP_AIRPORT_CODE_SIZE + 1];
GetCode(g_code);

GetCode(char* code)
{
strcpy(code, "Code");
}


However this does not work as I expected because I am trying to change the actual value of the pointer g_code:

char* g_code;
GetCode(g_code)
{
g_code = GetPointerToArraysomeOtherPlace();
}


Please let me know if I am still in la la land.
Thank you for your answers.





Kevin Shaffer
kshaff03@msn.com
GeneralRe: Weird pointer behavior Pin
K. Shaffer14-Feb-05 7:55
K. Shaffer14-Feb-05 7:55 
GeneralRe: Weird pointer behavior Pin
Maximilien14-Feb-05 8:38
Maximilien14-Feb-05 8:38 
GeneralRe: Weird pointer behavior Pin
TFrancis14-Feb-05 8:52
TFrancis14-Feb-05 8:52 
GeneralRe: Weird pointer behavior Pin
Christian Graus14-Feb-05 15:02
protectorChristian Graus14-Feb-05 15:02 
GeneralSplitting with the existance of COutlook2Ctrl Pin
Mohammad Tarik14-Feb-05 6:10
Mohammad Tarik14-Feb-05 6:10 
GeneralRe: Splitting with the existance of COutlook2Ctrl Pin
rocky_pulley14-Feb-05 7:35
rocky_pulley14-Feb-05 7:35 
GeneralRe: Splitting with the existance of COutlook2Ctrl Pin
Mohammad Tarik14-Feb-05 12:18
Mohammad Tarik14-Feb-05 12:18 
Generali want to create my own takbar... Pin
14-Feb-05 5:33
suss14-Feb-05 5:33 
GeneralRe: i want to create my own takbar... Pin
rocky_pulley14-Feb-05 7:36
rocky_pulley14-Feb-05 7:36 
GeneralRe: i want to create my own taskbar... Pin
jaisri_g15-Feb-05 4:05
jaisri_g15-Feb-05 4:05 
GeneralSetting up multiple-port TCP/IP printers with TCPMON Xcv Commands Pin
TweakIt14-Feb-05 5:31
TweakIt14-Feb-05 5:31 
QuestionHow can I get ride of the 'X' that closes an application. Pin
mcgahanfl14-Feb-05 4:45
mcgahanfl14-Feb-05 4:45 
AnswerRe: How can I get ride of the 'X' that closes an application. Pin
John M. Drescher14-Feb-05 5:33
John M. Drescher14-Feb-05 5:33 
AnswerRe: How can I get ride of the 'X' that closes an application. Pin
Kippesoep14-Feb-05 6:36
Kippesoep14-Feb-05 6:36 
GeneralResource DLL Pin
Franz Klein14-Feb-05 4:13
Franz Klein14-Feb-05 4:13 
GeneralRe: Resource DLL Pin
rocky_pulley14-Feb-05 4:21
rocky_pulley14-Feb-05 4:21 
GeneralRe: Resource DLL Pin
Franz Klein14-Feb-05 4:31
Franz Klein14-Feb-05 4:31 

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.