Click here to Skip to main content
16,004,919 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionis it possible to run an app in user PC throught internet? Pin
includeh1031-May-03 2:18
includeh1031-May-03 2:18 
AnswerRe: is it possible to run an app in user PC throught internet? Pin
ZoogieZork31-May-03 3:14
ZoogieZork31-May-03 3:14 
GeneralFixing size of a folder Pin
rohit.dhamija31-May-03 0:40
rohit.dhamija31-May-03 0:40 
GeneralRe: Fixing size of a folder Pin
valikac31-May-03 7:09
valikac31-May-03 7:09 
GeneralRe: Fixing size of a folder Pin
Anonymous1-Jun-03 1:06
Anonymous1-Jun-03 1:06 
GeneralIs void main() a legal C++ statement? Bjarne Stroustrup says it's not. Pin
Link260031-May-03 0:22
Link260031-May-03 0:22 
GeneralRe: Is void main() a legal C++ statement? Bjarne Stroustrup says it's not. Pin
ZoogieZork31-May-03 1:36
ZoogieZork31-May-03 1:36 
GeneralRe: Is void main() a legal C++ statement? Bjarne Stroustrup says it's not. Pin
Michael Dunn31-May-03 5:49
sitebuilderMichael Dunn31-May-03 5:49 
main() has always had a return type of int. The return value from main() is used as the exit code for the process.

Now, the reason for why some people write void main() is that historically, C programmers wrote:
main(int argc, char** argv)
{
/* app... */
}
There are two things happening there. First, earlier versions of C let you omit the return type if it was int. Second, some compilers let you omit the return statement from main() and implicitly returned 0 or 1 or whatever their default was.
So later on, new C programmers who don't know those rules come along and assume that since there is no return type listed, that's the same as void.

--Mike--
Latest blog entry: *drool* (Alyson) [May 10]
Ericahist | Homepage | RightClick-Encrypt | 1ClickPicGrabber
"You have Erica on the brain" - Jon Sagara to me

GeneralNo (NT) Pin
Mike Nordell31-May-03 18:53
Mike Nordell31-May-03 18:53 
Generalkeybd_event( VK_ESCAPE, 0, 0, 0); disables drag and drop of windows !! Pin
Anonymous31-May-03 0:06
Anonymous31-May-03 0:06 
GeneralRe: keybd_event( VK_ESCAPE, 0, 0, 0); disables drag and drop of windows !! Pin
Michael Dunn31-May-03 5:52
sitebuilderMichael Dunn31-May-03 5:52 
GeneralUsing Common Data Format with both C and MATLAB Pin
pdorrell30-May-03 22:51
pdorrell30-May-03 22:51 
Generalvalarray Pin
aguest30-May-03 22:11
aguest30-May-03 22:11 
GeneralATL & MFC CString's Pin
Peter Weyzen30-May-03 21:43
Peter Weyzen30-May-03 21:43 
GeneralRe: ATL & MFC CString's Pin
valikac31-May-03 7:12
valikac31-May-03 7:12 
GeneralRe: ATL & MFC CString's Pin
Peter Weyzen31-May-03 10:01
Peter Weyzen31-May-03 10:01 
GeneralRe: ATL & MFC CString's Pin
valikac31-May-03 10:07
valikac31-May-03 10:07 
Questionhow can i get the database list in a Sql Server? Pin
Peter Keung30-May-03 20:16
Peter Keung30-May-03 20:16 
QuestionWave equations? Pin
Henry P.30-May-03 20:11
Henry P.30-May-03 20:11 
QuestionHow to capture and highlight a word and copy it to clipboard in any application using a mouse click? Pin
sledge197800130-May-03 16:45
sledge197800130-May-03 16:45 
AnswerRe: How to capture and highlight a word and copy it to clipboard in any application using a mouse click? Pin
Neville Franks31-May-03 2:03
Neville Franks31-May-03 2:03 
GeneralRe: How to capture and highlight a word and copy it to clipboard in any application using a mouse click? Pin
sledge19780014-Jun-03 23:05
sledge19780014-Jun-03 23:05 
GeneralRe: How to capture and highlight a word and copy it to clipboard in any application using a mouse click? Pin
Neville Franks5-Jun-03 20:45
Neville Franks5-Jun-03 20:45 
Generaluse C++ to open dicom data Pin
mpf30-May-03 15:24
mpf30-May-03 15:24 
QuestionWhat's wrong with my hook? Pin
Old Gun30-May-03 14:43
Old Gun30-May-03 14:43 

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.