Click here to Skip to main content
15,879,474 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
GeneralRe: If I use a library, do I need DLL file ? Pin
Legor15-May-14 0:30
Legor15-May-14 0:30 
GeneralRe: If I use a library, do I need DLL file ? Pin
_Flaviu15-May-14 1:32
_Flaviu15-May-14 1:32 
GeneralRe: If I use a library, do I need DLL file ? Pin
Legor15-May-14 2:29
Legor15-May-14 2:29 
GeneralRe: If I use a library, do I need DLL file ? Pin
_Flaviu15-May-14 4:01
_Flaviu15-May-14 4:01 
GeneralRe: If I use a library, do I need DLL file ? Pin
_Flaviu19-May-14 21:50
_Flaviu19-May-14 21:50 
GeneralRe: If I use a library, do I need DLL file ? Pin
Legor19-May-14 23:46
Legor19-May-14 23:46 
Questionwrite Series of this program 1+-3+5+-7+9+-11 in c++ Pin
Beiniam12-May-14 5:22
Beiniam12-May-14 5:22 
QuestionRe: write Series of this program 1+-3+5+-7+9+-11 in c++ Pin
jeron112-May-14 5:38
jeron112-May-14 5:38 
AnswerRe: write Series of this program 1+-3+5+-7+9+-11 in c++ Pin
«_Superman_»12-May-14 19:11
professional«_Superman_»12-May-14 19:11 

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.