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

C / C++ / MFC

 
GeneralRe: Share combobox on different pages Pin
Toni7823-Jul-03 1:19
Toni7823-Jul-03 1:19 
GeneralRe: Share combobox on different pages Pin
Ryan Binns23-Jul-03 4:11
Ryan Binns23-Jul-03 4:11 
GeneralRe: Share combobox on different pages Pin
David Crow23-Jul-03 3:39
David Crow23-Jul-03 3:39 
Questionhow to create a user name and password for a database ? Pin
vcseeker22-Jul-03 21:35
vcseeker22-Jul-03 21:35 
AnswerRe: how to create a user name and password for a database ? Pin
sorenb23-Jul-03 0:48
sorenb23-Jul-03 0:48 
AnswerRe: how to create a user name and password for a database ? Pin
Alexander M.,23-Jul-03 2:03
Alexander M.,23-Jul-03 2:03 
QuestionHow to prevent binding a Type library to a ATL Attributed DLL ? need help ! Pin
talhalfon22-Jul-03 21:26
talhalfon22-Jul-03 21:26 
GeneralQuestion about file descriptor. Pin
George222-Jul-03 21:24
George222-Jul-03 21:24 
Hello everyone!


Please look at the follow sample,


--------
fd = open (...);

switch (fork())
{
case child_process:
use fd to read;
close (fd);
break;

case parent_process:
use fd to write;
wait (NULL)
break;
}
--------

I think the case is not correct. I think closing fd by child process is
not the same as closing fd by parent process. So I think the parent
process should also close fd before termination.

Am I correct?


Thanks in advance,
George
GeneralRe: Question about file descriptor. Pin
Ryan Binns22-Jul-03 23:34
Ryan Binns22-Jul-03 23:34 
GeneralRe: Question about file descriptor. Pin
George223-Jul-03 0:20
George223-Jul-03 0:20 
GeneralRe: Question about file descriptor. Pin
Ryan Binns23-Jul-03 4:17
Ryan Binns23-Jul-03 4:17 
GeneralRe: Question about file descriptor. Pin
George224-Jul-03 2:48
George224-Jul-03 2:48 
QuestionGDI+ in ATL ActiveX control??? Pin
denkor22-Jul-03 20:41
denkor22-Jul-03 20:41 
GeneralFocus Pin
Valeria Bogdevich22-Jul-03 20:17
Valeria Bogdevich22-Jul-03 20:17 
GeneralRe: Focus Pin
Toni7822-Jul-03 20:25
Toni7822-Jul-03 20:25 
GeneralRe: Focus Pin
Toni7822-Jul-03 22:54
Toni7822-Jul-03 22:54 
GeneralRe: Focus Pin
Valeria Bogdevich23-Jul-03 1:42
Valeria Bogdevich23-Jul-03 1:42 
GeneralRe: Focus Pin
Toni7823-Jul-03 1:47
Toni7823-Jul-03 1:47 
GeneralRe: Focus Pin
Ryan Binns22-Jul-03 23:39
Ryan Binns22-Jul-03 23:39 
GeneralRe: Focus Pin
Ryan Binns23-Jul-03 0:23
Ryan Binns23-Jul-03 0:23 
GeneralRe: Focus Pin
Valeria Bogdevich23-Jul-03 1:29
Valeria Bogdevich23-Jul-03 1:29 
GeneralRe: Focus Pin
Toni7823-Jul-03 1:49
Toni7823-Jul-03 1:49 
GeneralRe: Focus Pin
Ryan Binns23-Jul-03 3:56
Ryan Binns23-Jul-03 3:56 
GeneralRe: Focus Pin
KaЯl22-Jul-03 22:32
KaЯl22-Jul-03 22:32 
GeneralRe: Focus Pin
KaЯl23-Jul-03 2:13
KaЯl23-Jul-03 2:13 

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.