Click here to Skip to main content
15,914,109 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow to detect a system shutdown? Pin
heman15418-Nov-04 10:49
heman15418-Nov-04 10:49 
AnswerRe: How to detect a system shutdown? Pin
22491718-Nov-04 19:24
22491718-Nov-04 19:24 
GeneralRe: How to detect a system shutdown? Pin
heman15419-Nov-04 3:26
heman15419-Nov-04 3:26 
GeneralRe: How to detect a system shutdown? Pin
David Crow19-Nov-04 4:26
David Crow19-Nov-04 4:26 
GeneralProgrammatically close an executable. Pin
DanYELL18-Nov-04 10:27
DanYELL18-Nov-04 10:27 
GeneralRe: Programmatically close an executable. Pin
Gerald Schwab18-Nov-04 10:53
Gerald Schwab18-Nov-04 10:53 
GeneralNon-blocking Sockets Pin
joelite18-Nov-04 9:35
joelite18-Nov-04 9:35 
GeneralRe: Non-blocking Sockets Pin
David Crow18-Nov-04 10:18
David Crow18-Nov-04 10:18 
Before calling connect():

unsigned long ul = 1;
SOCKET rSocket;
int nResult = ioctlsocket(rSocket, FIONBIO, (unsigned long *) &ul);
Before calling select():

timeval tv = {0};
tv.tv_sec = 5; // 5 seconds
fd_set fdread;
FD_ZERO(&fdread);
FD_SET(rSocket, &fdread);
Before calling recv():

if (FD_ISSET(rSocket, &fdread) != 0)
...


A wise man once said that a dictionary is of no use if you do not know how to spell the word. Likewise, Google is of no use if you do not know what to search for.


"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow


GeneralHelp!!! How to set position of a dialog Pin
VikramDelhi18-Nov-04 9:05
VikramDelhi18-Nov-04 9:05 
GeneralRe: Help!!! How to set position of a dialog Pin
David Crow18-Nov-04 10:12
David Crow18-Nov-04 10:12 
GeneralRe: Help!!! How to set position of a dialog Pin
VikramDelhi19-Nov-04 9:49
VikramDelhi19-Nov-04 9:49 
QuestionHow do I Serialize a CEditView as Binary? Pin
Anonymous18-Nov-04 8:17
Anonymous18-Nov-04 8:17 
GeneralTreeview transparent background Pin
LukeV18-Nov-04 6:52
LukeV18-Nov-04 6:52 
GeneralRe: Treeview transparent background Pin
BlackDice18-Nov-04 9:09
BlackDice18-Nov-04 9:09 
GeneralRe: Treeview transparent background Pin
LukeV18-Nov-04 10:50
LukeV18-Nov-04 10:50 
QuestionPrinting in an MFC application with a splitter window? Pin
lasombra18-Nov-04 6:03
lasombra18-Nov-04 6:03 
QuestionHow to exit an application automatically? Pin
nonothing18-Nov-04 4:39
nonothing18-Nov-04 4:39 
AnswerRe: How to exit an application automatically? Pin
BlackDice18-Nov-04 4:44
BlackDice18-Nov-04 4:44 
AnswerRe: How to exit an application automatically? Pin
BlackDice18-Nov-04 4:44
BlackDice18-Nov-04 4:44 
AnswerRe: How to exit an application automatically? Pin
David Crow18-Nov-04 4:52
David Crow18-Nov-04 4:52 
GeneralSpeed of LPCTSTR versus const CString& Pin
Blake Miller18-Nov-04 4:37
Blake Miller18-Nov-04 4:37 
GeneralRe: Speed of LPCTSTR versus const CString& Pin
Tim Smith18-Nov-04 12:45
Tim Smith18-Nov-04 12:45 
General"DPI Settings" from Display Properties Pin
Manfred Staiger18-Nov-04 4:17
Manfred Staiger18-Nov-04 4:17 
GeneralRe: "DPI Settings" from Display Properties Pin
David Crow18-Nov-04 5:03
David Crow18-Nov-04 5:03 
GeneralRe: "DPI Settings" from Display Properties Pin
Manfred Staiger18-Nov-04 5:07
Manfred Staiger18-Nov-04 5:07 

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.