Click here to Skip to main content
16,005,169 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
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 
George2 wrote:
I think the parent process should close fd and reset the properties of /dev/modem, and stdout, and close /dev/modem even if the clild process has done that.

It will need to close fd (which is /dev/modem), but I don't think (from memory) it needs to reset the properties of the devices. These properties are shared between processes, so the child doing this means that the parent does not have to.

Incidentally, Linux closes any file descriptors that the programs do not, so theoretically it does not have to close the file descriptor, but it's definitely good programming practice to do so.

Ryan
"Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"

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 
GeneralRe: Focus Pin
KaЯl23-Jul-03 5:30
KaЯl23-Jul-03 5:30 
GeneralRe: Focus Pin
KaЯl23-Jul-03 5:37
KaЯl23-Jul-03 5:37 
GeneralDLL and Static Library Doubt Pin
Richard Lewis22-Jul-03 19:57
Richard Lewis22-Jul-03 19:57 

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.