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

C / C++ / MFC

 
GeneralRe: What am I doing wrong? Pin
Eytukan4-Jul-09 6:16
Eytukan4-Jul-09 6:16 
QuestionSmsSendMessage fails. Pin
Le@rner4-Jul-09 1:30
Le@rner4-Jul-09 1:30 
AnswerRe: SmsSendMessage fails. Pin
«_Superman_»4-Jul-09 2:14
professional«_Superman_»4-Jul-09 2:14 
GeneralRe: SmsSendMessage fails. Pin
Le@rner4-Jul-09 2:16
Le@rner4-Jul-09 2:16 
AnswerRe: SmsSendMessage fails. Pin
Hamid_RT4-Jul-09 3:00
Hamid_RT4-Jul-09 3:00 
GeneralRe: SmsSendMessage fails. Pin
Le@rner4-Jul-09 3:02
Le@rner4-Jul-09 3:02 
QuestionPower configuration settings on Win2K3 and Win2K using "powercfg.exe" Pin
sandy.pune4-Jul-09 1:29
sandy.pune4-Jul-09 1:29 
QuestionAny similar option to PROVIDER_SPECIFIC_MESSAGE_CLASS in CEMAPI. Pin
Le@rner4-Jul-09 1:28
Le@rner4-Jul-09 1:28 
Questionvalues for PR_MESSAGE_CLASS. Pin
Le@rner4-Jul-09 1:27
Le@rner4-Jul-09 1:27 
Questioncrystl32.ocx version 5.2 setselectionformula() displaying E message Pin
Hussain Azhar4-Jul-09 0:02
Hussain Azhar4-Jul-09 0:02 
Questionorder of icons in CListCtrl Pin
popwander9993-Jul-09 22:09
popwander9993-Jul-09 22:09 
AnswerRe: order of icons in CListCtrl Pin
«_Superman_»4-Jul-09 3:00
professional«_Superman_»4-Jul-09 3:00 
GeneralRe: order of icons in CListCtrl Pin
popwander9994-Jul-09 21:48
popwander9994-Jul-09 21:48 
Questiongetting data from non-.txt files properly Pin
UserNameless3-Jul-09 21:25
UserNameless3-Jul-09 21:25 
AnswerRe: getting data from non-.txt files properly Pin
Cedric Moonen3-Jul-09 21:42
Cedric Moonen3-Jul-09 21:42 
GeneralRe: getting data from non-.txt files properly Pin
UserNameless3-Jul-09 21:45
UserNameless3-Jul-09 21:45 
AnswerRe: getting data from non-.txt files properly Pin
Rajesh R Subramanian3-Jul-09 22:50
professionalRajesh R Subramanian3-Jul-09 22:50 
GeneralRe: getting data from non-.txt files properly Pin
UserNameless3-Jul-09 23:30
UserNameless3-Jul-09 23:30 
GeneralRe: getting data from non-.txt files properly Pin
Rajesh R Subramanian4-Jul-09 2:51
professionalRajesh R Subramanian4-Jul-09 2:51 
QuestionSub programming in C Pin
Andrew Jenkinson3-Jul-09 21:19
Andrew Jenkinson3-Jul-09 21:19 
AnswerRe: Sub programming in C Pin
«_Superman_»3-Jul-09 21:57
professional«_Superman_»3-Jul-09 21:57 
GeneralRe: Sub programming in C Pin
Andrew Jenkinson4-Jul-09 22:20
Andrew Jenkinson4-Jul-09 22:20 
AnswerRe: Sub programming in C Pin
Stuart Dootson3-Jul-09 23:26
professionalStuart Dootson3-Jul-09 23:26 
Andrew Jenkinson wrote:
How do I exit a C subroutine


The 'return' statement. Either 'return' for a void function, or 'return value for a non-void function. A void function can also return by reaching hte end of the function. Here are some examples:

void VoidFn(int value)
{
   if (value < 0) return;
   printf("%d", value);
}

int NonVoidFn(int value)
{
   if (value >= 0) return value;
   return -value;
}


You can return from anywhere in a C function, but many people recommend using only a single exit point. Personally, I take the pragmatic approach - if it makes sense to return earlier than the end of a function, then just do it.

Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p

AnswerRe: Sub programming in C Pin
molesworth4-Jul-09 0:25
molesworth4-Jul-09 0:25 
GeneralRe: Sub programming in C Pin
Andrew Jenkinson5-Jul-09 0:42
Andrew Jenkinson5-Jul-09 0:42 

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.