Click here to Skip to main content
15,923,789 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: error LNK2005: std::basic_string Pin
mandanani25-Jul-07 23:30
mandanani25-Jul-07 23:30 
AnswerRe: error LNK2005: std::basic_string Pin
Cedric Moonen25-Jul-07 23:39
Cedric Moonen25-Jul-07 23:39 
GeneralRe: error LNK2005: std::basic_string Pin
Mohammed Asif Palimar25-Jul-07 23:48
Mohammed Asif Palimar25-Jul-07 23:48 
AnswerRe: error LNK2005: std::basic_string Pin
Russell'26-Jul-07 0:13
Russell'26-Jul-07 0:13 
GeneralRe: error LNK2005: std::basic_string Pin
Russell'26-Jul-07 0:46
Russell'26-Jul-07 0:46 
GeneralRe: error LNK2005: std::basic_string Pin
Mohammed Asif Palimar26-Jul-07 0:54
Mohammed Asif Palimar26-Jul-07 0:54 
GeneralRe: error LNK2005: std::basic_string Pin
Mohammed Asif Palimar26-Jul-07 0:50
Mohammed Asif Palimar26-Jul-07 0:50 
QuestionHANDLE and FILE* Pin
George_George25-Jul-07 23:20
George_George25-Jul-07 23:20 
Hello everyone,


I am using Windows API open (create) a new file by CreateFile,

http://msdn2.microsoft.com/en-us/library/aa363858.aspx

the return value is HANDLE, if I use fwrite to write content to the file, since fwrite requires FILE* as parameter. I think HANDLE is not the same as FILE*, right?

Are there any ways (or methods) to transform HANDLE to FILE*?

I have tried that passing HANDLE directly to fwrite (forcely convert from HANDLE from FILE*) will cause access violation exception. I think the reason is HANDLE is not the same as FILE*, is that correct?


thanks in advance,
George
AnswerRe: HANDLE and FILE* Pin
Jonathan [Darka]25-Jul-07 23:30
professionalJonathan [Darka]25-Jul-07 23:30 
Answeror... Pin
CPallini25-Jul-07 23:43
mveCPallini25-Jul-07 23:43 
AnswerRe: HANDLE and FILE* Pin
Viorel.26-Jul-07 2:07
Viorel.26-Jul-07 2:07 
GeneralRe: HANDLE and FILE* Pin
CPallini26-Jul-07 2:29
mveCPallini26-Jul-07 2:29 
QuestionPre-Requisite Pin
Mahesh Kulkarni25-Jul-07 23:12
Mahesh Kulkarni25-Jul-07 23:12 
AnswerRe: Pre-Requisite Pin
Mark Salsbery26-Jul-07 5:57
Mark Salsbery26-Jul-07 5:57 
GeneralRe: Pre-Requisite Pin
Mahesh Kulkarni27-Jul-07 2:05
Mahesh Kulkarni27-Jul-07 2:05 
GeneralRe: Pre-Requisite Pin
Mark Salsbery27-Jul-07 5:06
Mark Salsbery27-Jul-07 5:06 
QuestionHow to restore the bitmap used by CImageList::Add Pin
Nishad S25-Jul-07 22:30
Nishad S25-Jul-07 22:30 
AnswerRe: How to restore the bitmap used by CImageList::Add Pin
#realJSOP26-Jul-07 2:15
professional#realJSOP26-Jul-07 2:15 
GeneralRe: How to restore the bitmap used by CImageList::Add Pin
Nishad S26-Jul-07 19:14
Nishad S26-Jul-07 19:14 
AnswerRe: How to restore the bitmap used by CImageList::Add Pin
Mark Salsbery26-Jul-07 6:00
Mark Salsbery26-Jul-07 6:00 
GeneralRe: How to restore the bitmap used by CImageList::Add Pin
Nishad S26-Jul-07 19:09
Nishad S26-Jul-07 19:09 
GeneralRe: How to restore the bitmap used by CImageList::Add Pin
Mark Salsbery26-Jul-07 20:25
Mark Salsbery26-Jul-07 20:25 
GeneralRe: How to restore the bitmap used by CImageList::Add Pin
Nishad S26-Jul-07 21:21
Nishad S26-Jul-07 21:21 
GeneralRe: How to restore the bitmap used by CImageList::Add Pin
Mark Salsbery27-Jul-07 5:00
Mark Salsbery27-Jul-07 5:00 
GeneralRe: How to restore the bitmap used by CImageList::Add Pin
Nishad S29-Jul-07 18:37
Nishad S29-Jul-07 18:37 

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.