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

C / C++ / MFC

 
GeneralRe: Logging Pin
David Crow1-Oct-04 3:03
David Crow1-Oct-04 3:03 
GeneralRe: Logging Pin
Neville Franks1-Oct-04 12:19
Neville Franks1-Oct-04 12:19 
QuestionDialog? Pin
Larsson30-Sep-04 21:29
Larsson30-Sep-04 21:29 
AnswerRe: Dialog? Pin
jtorjo30-Sep-04 22:05
jtorjo30-Sep-04 22:05 
GeneralRe: Dialog? Pin
Larsson30-Sep-04 22:07
Larsson30-Sep-04 22:07 
GeneralRe: Dialog? Pin
BlackDice1-Oct-04 3:46
BlackDice1-Oct-04 3:46 
GeneralRe: Dialog? Pin
jtorjo4-Oct-04 22:31
jtorjo4-Oct-04 22:31 
GeneralCreateFile for reading/writing file Pin
Paolo Ponzano30-Sep-04 21:09
Paolo Ponzano30-Sep-04 21:09 
hello,
I've the following problem:
1) two files one with data and another one with header about data's file
2) I need to insert the header into the data file at the beginning of file
3) I tried using Createfile in this form

<br />
tempfd=CreateFile(filename_save, GENERIC_WRITE|GENERIC_READ, FILE_SHARE_READ, NULL, OPEN_ALWAYS, NULL, NULL);<br />


but when I use the ReadFile, it returns error 183, that's defined in msdn ad
<br />
183 Cannot create a file when that file already exists. <br />


My idea was to copy the content of two files in memory, than paste the header into data file, than append the data file, but doesn't seems to work, any suggestion??
Thanks in advance
Paolo
GeneralRe: CreateFile for reading/writing file Pin
4apai30-Sep-04 21:31
4apai30-Sep-04 21:31 
GeneralRe: CreateFile for reading/writing file Pin
Paolo Ponzano1-Oct-04 0:34
Paolo Ponzano1-Oct-04 0:34 
GeneralRe: CreateFile for reading/writing file Pin
4apai1-Oct-04 1:12
4apai1-Oct-04 1:12 
GeneralRe: CreateFile for reading/writing file Pin
Paolo Ponzano1-Oct-04 3:27
Paolo Ponzano1-Oct-04 3:27 
GeneralRe: CreateFile for reading/writing file Pin
4apai4-Oct-04 8:01
4apai4-Oct-04 8:01 
GeneralRe: CreateFile for reading/writing file Pin
Blake Miller1-Oct-04 6:26
Blake Miller1-Oct-04 6:26 
GeneralResizing of form view - problem Pin
ledallam30-Sep-04 20:30
ledallam30-Sep-04 20:30 
GeneralRe: Resizing of form view - problem Pin
Sujan Christo30-Sep-04 20:44
Sujan Christo30-Sep-04 20:44 
GeneralRe: Resizing of form view - problem Pin
#realJSOP30-Sep-04 23:49
professional#realJSOP30-Sep-04 23:49 
GeneralRe: Resizing of form view - problem Pin
ledallam1-Oct-04 1:30
ledallam1-Oct-04 1:30 
GeneralRe: Resizing of form view - problem Pin
BlackDice1-Oct-04 3:52
BlackDice1-Oct-04 3:52 
GeneralAdd a scroll bar to Mainframe Pin
ledallam30-Sep-04 20:26
ledallam30-Sep-04 20:26 
GeneralRe: Add a scroll bar to Mainframe Pin
Iain Clarke, Warrior Programmer30-Sep-04 22:58
Iain Clarke, Warrior Programmer30-Sep-04 22:58 
GeneralCopy a File Pin
tgprakash30-Sep-04 19:57
tgprakash30-Sep-04 19:57 
GeneralRe: Copy a File Pin
BlackDice1-Oct-04 4:05
BlackDice1-Oct-04 4:05 
GeneralCORRECTION Pin
BlackDice1-Oct-04 4:07
BlackDice1-Oct-04 4:07 
GeneralRe: CORRECTION Pin
tgprakash3-Oct-04 20:04
tgprakash3-Oct-04 20:04 

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.