Click here to Skip to main content
16,016,882 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Question[Message Deleted] Pin
regnwald5-Feb-09 15:44
regnwald5-Feb-09 15:44 
AnswerRe: Calling an existing form from another existing form Pin
Cedric Moonen5-Feb-09 20:06
Cedric Moonen5-Feb-09 20:06 
GeneralRe: Calling an existing form from another existing form Pin
regnwald6-Feb-09 15:31
regnwald6-Feb-09 15:31 
QuestionOperating system location (drive letter) Pin
FloatingMarc5-Feb-09 15:00
FloatingMarc5-Feb-09 15:00 
AnswerRe: Operating system location (drive letter) Pin
PIEBALDconsult5-Feb-09 15:18
mvePIEBALDconsult5-Feb-09 15:18 
AnswerRe: Operating system location (drive letter) Pin
David Crow5-Feb-09 15:26
David Crow5-Feb-09 15:26 
GeneralRe: Operating system location (drive letter) Pin
FloatingMarc5-Feb-09 19:41
FloatingMarc5-Feb-09 19:41 
Questionpointer help Pin
yellowine5-Feb-09 13:48
yellowine5-Feb-09 13:48 
I have the following codes:

void Fun(int *v1, int *v2);

int *n1 = 0;
int main(int argc, char* argv[])
{
int *n2 = new int;
*n2 = 3;

Fun(n1, n2);
delete n2;
return 0;
}
void Fun(int *v1, int *v2)
{
v1 = v2;
}

After compiled and run, the value of n1 is supposed to the pointer value of v2 which contains an integer 3 after called Fun and before the delete statement. But actually not, n1 is still 0 after called Fun. why?

Thanks.
AnswerRe: pointer help Pin
Saurabh.Garg5-Feb-09 15:23
Saurabh.Garg5-Feb-09 15:23 
QuestionTab control - the big fight Pin
daavena5-Feb-09 11:02
daavena5-Feb-09 11:02 
AnswerRe: Tab control - the big fight Pin
Jonathan Davies5-Feb-09 12:22
Jonathan Davies5-Feb-09 12:22 
QuestionResource Problems Pin
Largo Usagi5-Feb-09 9:19
Largo Usagi5-Feb-09 9:19 
AnswerRe: Resource Problems Pin
Stuart Dootson5-Feb-09 9:55
professionalStuart Dootson5-Feb-09 9:55 
Questionwin API autorun.. I can't use this codes... help me please.. Pin
mgbrain5-Feb-09 8:13
mgbrain5-Feb-09 8:13 
AnswerRe: win API autorun.. I can't use this codes... help me please.. Pin
Stuart Dootson5-Feb-09 9:46
professionalStuart Dootson5-Feb-09 9:46 
GeneralRe: win API autorun.. I can't use this codes... help me please.. Pin
mgbrain5-Feb-09 9:56
mgbrain5-Feb-09 9:56 
GeneralRe: win API autorun.. I can't use this codes... help me please.. Pin
Stuart Dootson5-Feb-09 10:12
professionalStuart Dootson5-Feb-09 10:12 
GeneralRe: win API autorun.. I can't use this codes... help me please.. Pin
mgbrain5-Feb-09 10:27
mgbrain5-Feb-09 10:27 
GeneralRe: win API autorun.. I can't use this codes... help me please.. Pin
Stuart Dootson5-Feb-09 10:36
professionalStuart Dootson5-Feb-09 10:36 
GeneralRe: win API autorun.. I can't use this codes... help me please.. Pin
mgbrain5-Feb-09 11:00
mgbrain5-Feb-09 11:00 
GeneralRe: win API autorun.. I can't use this codes... help me please.. Pin
Stuart Dootson5-Feb-09 11:08
professionalStuart Dootson5-Feb-09 11:08 
GeneralRe: win API autorun.. I can't use this codes... help me please.. Pin
mgbrain5-Feb-09 11:25
mgbrain5-Feb-09 11:25 
GeneralRe: win API autorun.. I can't use this codes... help me please.. Pin
Stuart Dootson5-Feb-09 11:32
professionalStuart Dootson5-Feb-09 11:32 
GeneralRe: win API autorun.. I can't use this codes... help me please.. Pin
mgbrain5-Feb-09 11:39
mgbrain5-Feb-09 11:39 
GeneralRe: win API autorun.. I can't use this codes... help me please.. Pin
David Crow5-Feb-09 15:32
David Crow5-Feb-09 15: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.