Click here to Skip to main content
15,903,847 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: c++ integration subroutine. Pin
Mattias G21-Jan-10 12:55
Mattias G21-Jan-10 12:55 
GeneralRe: c++ integration subroutine. Pin
mrby12321-Jan-10 13:05
mrby12321-Jan-10 13:05 
GeneralRe: c++ integration subroutine. Pin
Mattias G21-Jan-10 13:21
Mattias G21-Jan-10 13:21 
QuestionCompiling an assembly file with Visual Studio Pin
Jim Crafton21-Jan-10 8:44
Jim Crafton21-Jan-10 8:44 
AnswerRe: Compiling an assembly file with Visual Studio Pin
Jim Crafton21-Jan-10 8:47
Jim Crafton21-Jan-10 8:47 
QuestionDialog hang Pin
Member 686483921-Jan-10 8:22
Member 686483921-Jan-10 8:22 
AnswerRe: Dialog hang Pin
Mattias G21-Jan-10 12:39
Mattias G21-Jan-10 12:39 
GeneralRe: Dialog hang Pin
Member 686483922-Jan-10 6:38
Member 686483922-Jan-10 6:38 
GeneralRe: Dialog hang Pin
Mattias G22-Jan-10 11:13
Mattias G22-Jan-10 11:13 
QuestionDisabling Entire MFC ActiveX Control Pin
wgoodwater21-Jan-10 7:47
wgoodwater21-Jan-10 7:47 
AnswerRe: Disabling Entire MFC ActiveX Control Pin
LunaticFringe21-Jan-10 8:31
LunaticFringe21-Jan-10 8:31 
GeneralRe: Disabling Entire MFC ActiveX Control Pin
wgoodwater21-Jan-10 8:33
wgoodwater21-Jan-10 8:33 
GeneralRe: Disabling Entire MFC ActiveX Control Pin
LunaticFringe21-Jan-10 8:40
LunaticFringe21-Jan-10 8:40 
QuestionCannot remove popup from CVSListbox - Help????? [modified] Pin
gamejunk21-Jan-10 7:20
gamejunk21-Jan-10 7:20 
QuestionCMFCStatusBar in ActiveX control without Title Bar Pin
wgoodwater21-Jan-10 5:33
wgoodwater21-Jan-10 5:33 
Questionmy list error! Pin
wbgxx21-Jan-10 4:54
wbgxx21-Jan-10 4:54 
AnswerRe: my list error! Pin
Cedric Moonen21-Jan-10 5:00
Cedric Moonen21-Jan-10 5:00 
QuestionRe: my list error! Pin
Maximilien21-Jan-10 5:04
Maximilien21-Jan-10 5:04 
AnswerRe: my list error! Pin
LunaticFringe21-Jan-10 5:06
LunaticFringe21-Jan-10 5:06 
AnswerRe: my list error! Pin
Richard MacCutchan21-Jan-10 5:09
mveRichard MacCutchan21-Jan-10 5:09 
AnswerRe: my list error! Pin
David Crow21-Jan-10 9:04
David Crow21-Jan-10 9:04 
Questionwhat is the difference between ..? Pin
krish_kumar21-Jan-10 4:06
krish_kumar21-Jan-10 4:06 
AnswerRe: what is the difference between ..? Pin
Cedric Moonen21-Jan-10 4:17
Cedric Moonen21-Jan-10 4:17 
AnswerRe: what is the difference between ..? Pin
molesworth21-Jan-10 4:20
molesworth21-Jan-10 4:20 
krish_kumar wrote:
return(0) and return 0 is same or not

Yes, exactly the same. The addition of brackets makes no difference.

krish_kumar wrote:
return;

This however is totally different, and only valid in a "void" function - i.e. one which doesn't return a result.

The difference between them can be illustrated as :-

int DoSomething_1(int val)
{
    // some processing
    // ...

    return (0);  // has to return a value as it's an "int" function
}


void DoSomething_2(int val)
{
    // some processing
    // ...

    return;  // must not return a value as it's a "void" function
}


Days spent at sea are not deducted from one's alloted span - Phoenician proverb

GeneralRe: what is the difference between ..? Pin
Rozis21-Jan-10 12:04
Rozis21-Jan-10 12:04 

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.