Click here to Skip to main content
14,603,943 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.
 
GeneralRe: coffee just tastes better Pin
Member 798912223-Jan-20 8:31
MemberMember 798912223-Jan-20 8:31 
GeneralRe: coffee just tastes better Pin
dandy7224-Jan-20 3:49
Memberdandy7224-Jan-20 3:49 
GeneralRe: coffee just tastes better Pin
Ravi Bhavnani22-Jan-20 12:35
professionalRavi Bhavnani22-Jan-20 12:35 
GeneralIs main() a callback function? Pin
Rob Philpott22-Jan-20 5:00
MemberRob Philpott22-Jan-20 5:00 
GeneralRe: Is main() a callback function? Pin
Rick York22-Jan-20 5:11
mveRick York22-Jan-20 5:11 
GeneralRe: Is main() a callback function? Pin
Rob Philpott22-Jan-20 5:27
MemberRob Philpott22-Jan-20 5:27 
GeneralRe: Is main() a callback function? Pin
Rick York22-Jan-20 5:35
mveRick York22-Jan-20 5:35 
GeneralRe: Is main() a callback function? Pin
Rick York22-Jan-20 5:41
mveRick York22-Jan-20 5:41 
The non-re-entrancy part comes about because you can't call it yourself. It's not a callback in the strict sense of the term but in effect it is if you think of it as the designated function for the OS to call to run the program. It is not specified in code (this is why it fails the strict definition) but it is implicitly known to the linker and can be overridden. In the case of programs for Windows, it IS overridden to be WinMain.
"They have a consciousness, they have a life, they have a soul! Damn you! Let the rabbits wear glasses! Save our brothers! Can I get an amen?"

GeneralRe: Is main() a callback function? Pin
Richard MacCutchan22-Jan-20 6:13
mveRichard MacCutchan22-Jan-20 6:13 
GeneralRe: Is main() a callback function? Pin
Rick York22-Jan-20 8:10
mveRick York22-Jan-20 8:10 
GeneralRe: Is main() a callback function? Pin
Richard MacCutchan22-Jan-20 22:01
mveRichard MacCutchan22-Jan-20 22:01 
GeneralRe: Is main() a callback function? Pin
Rick York23-Jan-20 4:49
mveRick York23-Jan-20 4:49 
GeneralRe: Is main() a callback function? Pin
Gary Wheeler22-Jan-20 5:43
MemberGary Wheeler22-Jan-20 5:43 
GeneralRe: Is main() a callback function? Pin
Rob Philpott22-Jan-20 5:50
MemberRob Philpott22-Jan-20 5:50 
GeneralRe: Is main() a callback function? Pin
honey the codewitch22-Jan-20 6:23
mvahoney the codewitch22-Jan-20 6:23 
GeneralRe: Is main() a callback function? Pin
TheGreatAndPowerfulOz22-Jan-20 10:18
MemberTheGreatAndPowerfulOz22-Jan-20 10:18 
GeneralRe: Is main() a callback function? Pin
honey the codewitch22-Jan-20 10:53
mvahoney the codewitch22-Jan-20 10:53 
GeneralRe: Is main() a callback function? Pin
TheGreatAndPowerfulOz22-Jan-20 11:12
MemberTheGreatAndPowerfulOz22-Jan-20 11:12 
GeneralRe: Is main() a callback function? Pin
honey the codewitch22-Jan-20 11:35
mvahoney the codewitch22-Jan-20 11:35 
GeneralRe: Is main() a callback function? Pin
TheGreatAndPowerfulOz23-Jan-20 4:29
MemberTheGreatAndPowerfulOz23-Jan-20 4:29 
GeneralRe: Is main() a callback function? Pin
raddevus22-Jan-20 5:14
mvaraddevus22-Jan-20 5:14 
GeneralRe: Is main() a callback function? Pin
Rob Philpott22-Jan-20 5:21
MemberRob Philpott22-Jan-20 5:21 
GeneralRe: Is main() a callback function? Pin
k505422-Jan-20 7:38
mvek505422-Jan-20 7:38 
GeneralRe: Is main() a callback function? Pin
Rick York22-Jan-20 8:12
mveRick York22-Jan-20 8:12 
GeneralRe: Is main() a callback function? Pin
PIEBALDconsult22-Jan-20 10:23
professionalPIEBALDconsult22-Jan-20 10:23 

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.