Click here to Skip to main content
15,915,509 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Those *#@!$+ Memory Leaks Pin
Uwe Keim20-May-05 3:28
sitebuilderUwe Keim20-May-05 3:28 
GeneralRe: Those *#@!$+ Memory Leaks Pin
David Crow19-May-05 8:31
David Crow19-May-05 8:31 
GeneralRe: Those *#@!$+ Memory Leaks Pin
Uwe Keim19-May-05 10:22
sitebuilderUwe Keim19-May-05 10:22 
GeneralRe: Those *#@!$+ Memory Leaks Pin
Uwe Keim20-May-05 3:25
sitebuilderUwe Keim20-May-05 3:25 
QuestionVS ANSI C++ implementation error? Pin
Franz Klein19-May-05 5:36
Franz Klein19-May-05 5:36 
AnswerRe: VS ANSI C++ implementation error? Pin
David Crow19-May-05 5:49
David Crow19-May-05 5:49 
AnswerRe: VS ANSI C++ implementation error? Pin
PJ Arends19-May-05 7:49
professionalPJ Arends19-May-05 7:49 
Generalsmall pointers problem Pin
Mridang Agarwalla19-May-05 5:16
Mridang Agarwalla19-May-05 5:16 
hi,
i have small problem on pointers. Suppose i have avariable called 'varA' and i a function called 'modifyvariable'. Now when i write this:


//***********************
void main()
{
int varA;
modifyvariable(&varA);
}

void modifyvariable(int *varB)
{
int temp;
varB = &temp;
}
//************************


Okay. Example: if the address of varA is 25200, and and i pass the address of varA to modifyvariable by writing 'modifyvariable(&varA);', the address 25200 gets copied to the pointer varB. Now if the address of temp is 26200, and i change the value of the pointer varB (which is currently 25200) to 26200 using the code 'varB = &temp;', the address contained within varB does change but the address of varA does not change. how can i change the address of varA to 26200 from the fucntion?

GeneralRe: small pointers problem Pin
David Crow19-May-05 5:47
David Crow19-May-05 5:47 
GeneralRe: small pointers problem Pin
RChin19-May-05 5:55
RChin19-May-05 5:55 
GeneralRe: small pointers problem Pin
ThatsAlok19-May-05 19:05
ThatsAlok19-May-05 19:05 
GeneralDirectory existance Pin
Imtiaz Murtaza19-May-05 5:13
Imtiaz Murtaza19-May-05 5:13 
GeneralRe: Directory existance Pin
Blake Miller19-May-05 5:16
Blake Miller19-May-05 5:16 
GeneralRe: Directory existance Pin
Ravi Bhavnani19-May-05 5:41
professionalRavi Bhavnani19-May-05 5:41 
GeneralRe: Directory existance Pin
ThatsAlok19-May-05 18:25
ThatsAlok19-May-05 18:25 
GeneralProblem with controlling window media player Pin
JaniceA19-May-05 5:06
JaniceA19-May-05 5:06 
GeneralRun program on startup Pin
Zack Manning19-May-05 4:52
sussZack Manning19-May-05 4:52 
GeneralRe: Run program on startup Pin
Blake Miller19-May-05 5:18
Blake Miller19-May-05 5:18 
GeneralRe: Run program on startup Pin
ddmcr19-May-05 7:11
ddmcr19-May-05 7:11 
GeneralPolyBezier Pin
Anthony988719-May-05 4:37
Anthony988719-May-05 4:37 
GeneralRe: PolyBezier Pin
Joel Holdsworth19-May-05 6:51
Joel Holdsworth19-May-05 6:51 
GeneralHelp needed to fix warning C4251 Pin
Kri519-May-05 3:55
Kri519-May-05 3:55 
GeneralRe: Help needed to fix warning C4251 Pin
Alexander M.,19-May-05 4:22
Alexander M.,19-May-05 4:22 
GeneralRe: Help needed to fix warning C4251 Pin
Kri519-May-05 6:04
Kri519-May-05 6:04 
GeneralRe: Help needed to fix warning C4251 Pin
jmkhael19-May-05 6:32
jmkhael19-May-05 6:32 

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.