Click here to Skip to main content
15,921,959 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Invalid access to memory location - in WriteFile - writting to COM posrt. Pin
Vaclav_1-Mar-10 18:21
Vaclav_1-Mar-10 18:21 
GeneralRe: Invalid access to memory location - in WriteFile - writting to COM posrt. Pin
Iain Clarke, Warrior Programmer2-Mar-10 6:50
Iain Clarke, Warrior Programmer2-Mar-10 6:50 
GeneralRe: Invalid access to memory location - in WriteFile - writting to COM posrt. Pin
David Crow2-Mar-10 3:42
David Crow2-Mar-10 3:42 
QuestionWrapping toolbar label text Pin
David Ferreira1-Mar-10 2:43
David Ferreira1-Mar-10 2:43 
QuestionStrange Issue Pin
john563228-Feb-10 23:35
john563228-Feb-10 23:35 
AnswerRe: Strange Issue Pin
john56321-Mar-10 0:35
john56321-Mar-10 0:35 
AnswerRe: Strange Issue Pin
Code-o-mat1-Mar-10 1:47
Code-o-mat1-Mar-10 1:47 
GeneralRe: Strange Issue Pin
john56321-Mar-10 2:06
john56321-Mar-10 2:06 
GeneralRe: Strange Issue Pin
Code-o-mat1-Mar-10 2:51
Code-o-mat1-Mar-10 2:51 
QuestionAES 128bit encryption using CryptoAPI Pin
Varghese Paul M28-Feb-10 22:13
Varghese Paul M28-Feb-10 22:13 
AnswerRe: AES 128bit encryption using CryptoAPI Pin
Richard MacCutchan28-Feb-10 23:52
mveRichard MacCutchan28-Feb-10 23:52 
GeneralRe: AES 128bit encryption using CryptoAPI Pin
Rajesh R Subramanian1-Mar-10 6:25
professionalRajesh R Subramanian1-Mar-10 6:25 
GeneralRe: AES 128bit encryption using CryptoAPI Pin
Richard MacCutchan1-Mar-10 6:33
mveRichard MacCutchan1-Mar-10 6:33 
QuestionHow to create a form or dailog in MFC-MDI ? Pin
Patrick Tang28-Feb-10 21:31
Patrick Tang28-Feb-10 21:31 
AnswerRe: How to create a form or dailog in MFC-MDI ? Pin
CPallini28-Feb-10 21:40
mveCPallini28-Feb-10 21:40 
AnswerRe: How to create a form or dailog in MFC-MDI ? Pin
Patrick Tang28-Feb-10 22:23
Patrick Tang28-Feb-10 22:23 
GeneralRe: How to create a form or dailog in MFC-MDI ? Pin
Eugen Podsypalnikov28-Feb-10 22:43
Eugen Podsypalnikov28-Feb-10 22:43 
QuestionRe: How to create a form or dailog in MFC-MDI ? Pin
David Crow1-Mar-10 3:14
David Crow1-Mar-10 3:14 
Questionsigned char[] to CString Pin
PaulowniaK28-Feb-10 19:51
PaulowniaK28-Feb-10 19:51 
AnswerRe: signed char[] to CString Pin
Eugen Podsypalnikov28-Feb-10 20:06
Eugen Podsypalnikov28-Feb-10 20:06 
GeneralRe: signed char[] to CString Pin
PaulowniaK28-Feb-10 20:13
PaulowniaK28-Feb-10 20:13 
GeneralRe: signed char[] to CString Pin
Eugen Podsypalnikov28-Feb-10 20:18
Eugen Podsypalnikov28-Feb-10 20:18 
GeneralRe: signed char[] to CString Pin
PaulowniaK28-Feb-10 20:33
PaulowniaK28-Feb-10 20:33 
GeneralRe: signed char[] to CString Pin
Eugen Podsypalnikov28-Feb-10 20:35
Eugen Podsypalnikov28-Feb-10 20:35 
GeneralRe: signed char[] to CString Pin
PaulowniaK28-Feb-10 20:45
PaulowniaK28-Feb-10 20:45 
Cool, but I found the reverse problem as well.

I'm loading up cCoffee from a CString as well and messed that up so only the first character was copied:

CopyMemory(cCoffee, strOriginal.GetBuffer(), strOriginal.GetLength());


I understand this is wrong, but I don't know how to fix it.

Please help!

(Basically, I'm going from CString -> signed char* -> CString. Probably not a nice thing to do, but I'm stuck with it for the time being...)

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.