Click here to Skip to main content
14,360,900 members

C / C++ / MFC

 
GeneralRe: New to C++ and Programming, Absolutely new Pin
Richard MacCutchan14-Jun-15 22:42
protectorRichard MacCutchan14-Jun-15 22:42 
QuestionAfxGetApp anomaly Pin
ForNow10-Jun-15 10:18
memberForNow10-Jun-15 10:18 
QuestionOdd property sheet behavior Pin
David Crow10-Jun-15 5:41
memberDavid Crow10-Jun-15 5:41 
AnswerRe: Odd property sheet behavior Pin
Chris Losinger10-Jun-15 6:26
professionalChris Losinger10-Jun-15 6:26 
QuestionAdd lib by pragma Pin
_Flaviu10-Jun-15 1:32
member_Flaviu10-Jun-15 1:32 
AnswerRe: Add lib by pragma Pin
David Crow10-Jun-15 3:46
memberDavid Crow10-Jun-15 3:46 
GeneralRe: Add lib by pragma Pin
_Flaviu11-Jun-15 0:25
member_Flaviu11-Jun-15 0:25 
Questionbad pointer error when I read a class object with CString member Pin
manoharbalu8-Jun-15 21:13
membermanoharbalu8-Jun-15 21:13 
class test
{
public:
CString str;
}
test oTest;
oTest.str = "abc";

When I try to write the above object 'oTest' to a simple file using fwrite and CFile and then try to read using fread, I am getting bad pointer in oTest.str

But when I replace the CString member with char array as "char str[50]" and try to write and read file, its working

So I want to know how to write and read a class object with CString member to and from a file
Answer[Repost] Pin
Sascha Lefèvre8-Jun-15 21:36
professionalSascha Lefèvre8-Jun-15 21:36 
SuggestionRe: bad pointer error when I read a class object with CString member Pin
David Crow9-Jun-15 6:37
memberDavid Crow9-Jun-15 6:37 
AnswerRe: bad pointer error when I read a class object with CString member Pin
Stefan_Lang12-Jun-15 1:13
memberStefan_Lang12-Jun-15 1:13 
QuestionWindows 8.1 TouchScreen panning does not scroll window for MFC Scrollview or Win32 apps Pin
bob169727-Jun-15 8:10
memberbob169727-Jun-15 8:10 
AnswerRe: Windows 8.1 TouchScreen panning does not scroll window for MFC Scrollview or Win32 apps Pin
bob1697220-Jun-15 4:31
memberbob1697220-Jun-15 4:31 
Questionlinked list in C Pin
a random user7-Jun-15 5:28
membera random user7-Jun-15 5:28 
AnswerRe: linked list in C Pin
Chris Losinger9-Jun-15 5:55
professionalChris Losinger9-Jun-15 5:55 
Questionneed help with linked structs at C language Pin
a random user6-Jun-15 0:57
membera random user6-Jun-15 0:57 
AnswerRe: need help with linked structs at C language Pin
Richard MacCutchan6-Jun-15 1:29
protectorRichard MacCutchan6-Jun-15 1:29 
GeneralRe: need help with linked structs at C language Pin
a random user6-Jun-15 1:56
membera random user6-Jun-15 1:56 
GeneralRe: need help with linked structs at C language Pin
Frankie-C6-Jun-15 7:42
memberFrankie-C6-Jun-15 7:42 
GeneralRe: need help with linked structs at C language Pin
a random user6-Jun-15 8:03
membera random user6-Jun-15 8:03 
GeneralRe: need help with linked structs at C language Pin
Frankie-C6-Jun-15 8:12
memberFrankie-C6-Jun-15 8:12 
GeneralRe: need help with linked structs at C language Pin
a random user6-Jun-15 8:20
membera random user6-Jun-15 8:20 
GeneralRe: need help with linked structs at C language Pin
a random user6-Jun-15 8:25
membera random user6-Jun-15 8:25 
GeneralRe: need help with linked structs at C language Pin
Frankie-C7-Jun-15 6:33
memberFrankie-C7-Jun-15 6:33 
GeneralRe: need help with linked structs at C language Pin
a random user7-Jun-15 7:32
membera random user7-Jun-15 7:32 

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.