Click here to Skip to main content
15,888,454 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: Double buffering Pin
CPallini14-May-14 21:39
mveCPallini14-May-14 21:39 
AnswerRe: Double buffering Pin
Legor14-May-14 21:54
Legor14-May-14 21:54 
AnswerRe: Double buffering Pin
Richard MacCutchan14-May-14 21:56
mveRichard MacCutchan14-May-14 21:56 
AnswerRe: Double buffering Pin
Software_Developer15-May-14 4:35
Software_Developer15-May-14 4:35 
AnswerRe: Double buffering Pin
Stefan_Lang15-May-14 22:21
Stefan_Lang15-May-14 22:21 
QuestionCan I properly derive from CMFCPropertyGridColorProperty ? Pin
Maximilien14-May-14 4:10
Maximilien14-May-14 4:10 
QuestionRe: Can I properly derive from CMFCPropertyGridColorProperty ? Pin
CPallini14-May-14 6:42
mveCPallini14-May-14 6:42 
AnswerRe: Can I properly derive from CMFCPropertyGridColorProperty ? Pin
Maximilien14-May-14 7:30
Maximilien14-May-14 7:30 
GeneralRe: Can I properly derive from CMFCPropertyGridColorProperty ? Pin
CPallini14-May-14 7:32
mveCPallini14-May-14 7:32 
GeneralRe: Can I properly derive from CMFCPropertyGridColorProperty ? Pin
Maximilien14-May-14 8:02
Maximilien14-May-14 8:02 
GeneralRe: Can I properly derive from CMFCPropertyGridColorProperty ? Pin
CPallini14-May-14 9:17
mveCPallini14-May-14 9:17 
QuestionCFile Error When Writing Pin
AmbiguousName14-May-14 1:52
AmbiguousName14-May-14 1:52 
QuestionRe: CFile Error When Writing Pin
CPallini14-May-14 2:34
mveCPallini14-May-14 2:34 
AnswerRe: CFile Error When Writing Pin
AmbiguousName14-May-14 6:57
AmbiguousName14-May-14 6:57 
AnswerRe: CFile Error When Writing Pin
Software_Developer14-May-14 6:36
Software_Developer14-May-14 6:36 
GeneralRe: CFile Error When Writing Pin
AmbiguousName14-May-14 6:56
AmbiguousName14-May-14 6:56 
GeneralRe: CFile Error When Writing Pin
Software_Developer14-May-14 7:27
Software_Developer14-May-14 7:27 
The error should be obvious, the inners of write look like this..

C++
virtual void Write( 
   const void* lpBuf, 
   UINT nCount  
);


Parameters
lpBuf - A pointer to the user-supplied buffer that contains the data to be written to the file.

nCount - The number of bytes to be transferred from the buffer. For text-mode files, carriage return–linefeed pairs are counted as single characters.




Official MSDN example:

C++
CFile cfile;
cfile.Open(_T("Write_File.dat"), CFile::modeCreate |   CFile::modeReadWrite);

char pbufWrite[100];

memset(pbufWrite, 'a', sizeof(pbufWrite));

cfile.Write(pbufWrite, 100);         
cfile.Flush();




http://msdn.microsoft.com/en-us/library/esb6sz20.aspx[^]
GeneralRe: CFile Error When Writing Pin
Richard MacCutchan14-May-14 21:55
mveRichard MacCutchan14-May-14 21:55 
GeneralRe: CFile Error When Writing Pin
leon de boer15-May-14 4:26
leon de boer15-May-14 4:26 
AnswerRe: CFile Error When Writing Pin
Jonathan Davies14-May-14 7:42
Jonathan Davies14-May-14 7:42 
QuestionIf I use a library, do I need DLL file ? Pin
_Flaviu12-May-14 21:50
_Flaviu12-May-14 21:50 
AnswerRe: If I use a library, do I need DLL file ? PinPopular
«_Superman_»12-May-14 22:11
professional«_Superman_»12-May-14 22:11 
GeneralRe: If I use a library, do I need DLL file ? Pin
AssemToCode14-May-14 17:46
AssemToCode14-May-14 17:46 
AnswerRe: If I use a library, do I need DLL file ? Pin
Legor14-May-14 21:59
Legor14-May-14 21:59 
GeneralRe: If I use a library, do I need DLL file ? Pin
_Flaviu14-May-14 23:54
_Flaviu14-May-14 23:54 

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.