Click here to Skip to main content
15,926,858 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: warning to make a choice for editBox Pin
wb27-Jul-03 23:27
wb27-Jul-03 23:27 
GeneralRe: calc Pin
wb28-Jul-03 2:09
wb28-Jul-03 2:09 
GeneralRe: warning to make a choice for editBox Pin
David Crow28-Jul-03 5:01
David Crow28-Jul-03 5:01 
GeneralProper use of _bstr_t Pin
nibor27-Jul-03 23:12
nibor27-Jul-03 23:12 
Questionhow to connect to dbase server using postgres Pin
mhar27-Jul-03 22:55
professionalmhar27-Jul-03 22:55 
AnswerRe: how to connect to dbase server using postgres Pin
basementman28-Jul-03 5:12
basementman28-Jul-03 5:12 
General_open routine Pin
El'Cachubrey27-Jul-03 22:38
El'Cachubrey27-Jul-03 22:38 
GeneralRe: _open routine Pin
Johnny ²28-Jul-03 3:49
Johnny ²28-Jul-03 3:49 
Looking at the MSDN for _open it states:

The pmode argument is required only when _O_CREAT is specified. If the file already exists, pmode is ignored. Otherwise, pmode specifies the file permission settings, which are set when the new file is closed the first time

So basically you need to specify the 3rd argument to specify the permissions:

_open ("ffile",_O_BINARY|_O_RDWR|_O_CREAT|_O_TRUNC, _S_IREAD | _S_IWRITE )

I would image not giving the pmode in this case causes the subtle error you described.
QuestionHow to display the item of a treectrl like this? Pin
allenhu27-Jul-03 21:41
allenhu27-Jul-03 21:41 
AnswerRe: How to display the item of a treectrl like this? Pin
Iain Clarke, Warrior Programmer27-Jul-03 23:05
Iain Clarke, Warrior Programmer27-Jul-03 23:05 
AnswerRe: How to display the item of a treectrl like this? Pin
dan o27-Jul-03 23:13
dan o27-Jul-03 23:13 
GeneralParameters for MSComm Pin
petr.me27-Jul-03 21:37
petr.me27-Jul-03 21:37 
GeneralSuche Leute zum MFC / C++ lernen Pin
schonu27-Jul-03 21:04
schonu27-Jul-03 21:04 
GeneralRe: Suche Leute zum MFC / C++ lernen Pin
Philip Patrick28-Jul-03 1:20
professionalPhilip Patrick28-Jul-03 1:20 
GeneralRe: Suche Leute zum MFC / C++ lernen Pin
peterchen28-Jul-03 4:41
peterchen28-Jul-03 4:41 
GeneralWin32 vc++ Smooth Animation Pin
koxin27-Jul-03 20:54
koxin27-Jul-03 20:54 
GeneralRe: Win32 vc++ Smooth Animation Pin
Iain Clarke, Warrior Programmer27-Jul-03 23:14
Iain Clarke, Warrior Programmer27-Jul-03 23:14 
Questionhow can i apply a macro to all project files Pin
sunil_g1727-Jul-03 20:15
sunil_g1727-Jul-03 20:15 
QuestionHow to PRINT MsWord DOC through VC++ Dlg based Prg Pin
22491727-Jul-03 20:01
22491727-Jul-03 20:01 
AnswerRe: How to PRINT MsWord DOC through VC++ Dlg based Prg Pin
wb27-Jul-03 22:41
wb27-Jul-03 22:41 
GeneralSaving graph Pin
Neha27-Jul-03 20:00
Neha27-Jul-03 20:00 
GeneralRe: Saving graph Pin
Alexander M.,28-Jul-03 3:19
Alexander M.,28-Jul-03 3:19 
QuestionHow can I clear drop list combo box? Pin
Emre Zorlu27-Jul-03 19:46
Emre Zorlu27-Jul-03 19:46 
AnswerRe: How can I clear drop list combo box? Pin
Frank K27-Jul-03 19:52
Frank K27-Jul-03 19:52 
GeneralRe: How can I clear drop list combo box? Pin
Emre Zorlu27-Jul-03 21:23
Emre Zorlu27-Jul-03 21: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.