Click here to Skip to main content
16,005,467 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Missing Classes in MFC ClassWizard? Pin
Christian Graus16-Jun-02 15:42
protectorChristian Graus16-Jun-02 15:42 
GeneralRe: Missing Classes in MFC ClassWizard? Pin
Teknofreek16-Jun-02 17:25
Teknofreek16-Jun-02 17:25 
GeneralRe: Missing Classes in MFC ClassWizard? Pin
Christian Graus16-Jun-02 17:39
protectorChristian Graus16-Jun-02 17:39 
GeneralRe: Missing Classes in MFC ClassWizard? Pin
Teknofreek16-Jun-02 21:12
Teknofreek16-Jun-02 21:12 
GeneralToolbar Image List question Pin
Teknofreek16-Jun-02 14:04
Teknofreek16-Jun-02 14:04 
GeneralRe: Toolbar Image List question Pin
code_cold22-Aug-02 22:34
code_cold22-Aug-02 22:34 
GeneralI user MediaPlayer OCX in vc++ Pin
16-Jun-02 13:58
suss16-Jun-02 13:58 
GeneralCArchive adding chars to my saved files :/ Pin
carrie16-Jun-02 13:55
carrie16-Jun-02 13:55 
I'm trying to write a basic dialog program with MFC that loads a file up, lets you edit it then lets you save it so I can add a file to the games I've started making. Simple enough I thought Big Grin | :-D It loads up the file fine, it lets you edit it to your hearts content in the control, but saving it it adds the characters ÿ to the first line of the file at the start :/ For the life of me I don't have a clue what its doing or why its doing it but I'm needing it to play nice and not do it Smile | :)

Using TRACE commands I've seen that its not adding the chars to the CString I'm using to hold all the data before its saved, its only when its saved that its added.

newDiz.Open("file_id.diz",CFile::modeCreate|CFile::modeReadWrite);
CArchive diz(&newDiz,CArchive::store);

diz << m_dizView;

diz.Close();
newDiz.Close();

Thats with newDiz being a CFile and diz obviously being a CArchive Big Grin | :-D Using code like that before its worked in another program I wrote but in this one its being a pain in the bum.

Has anyone any idea why it would add these characters to the start of the file? Thanks for your help Smile | :)
Questionwindow XP tips site? Pin
rsasalm_16-Jun-02 11:25
rsasalm_16-Jun-02 11:25 
AnswerRe: window XP tips site? Pin
Anders Molin16-Jun-02 12:53
professionalAnders Molin16-Jun-02 12:53 
GeneralCTreeCtrl::GetItemState Pin
16-Jun-02 9:59
suss16-Jun-02 9:59 
GeneralRe: CTreeCtrl::GetItemState Pin
JohnJ16-Jun-02 10:19
JohnJ16-Jun-02 10:19 
GeneralRe: CTreeCtrl::GetItemState Pin
16-Jun-02 11:39
suss16-Jun-02 11:39 
QuestionHow is it you retrieve a string from a std::map? Pin
redeemer16-Jun-02 9:03
redeemer16-Jun-02 9:03 
AnswerRe: How is it you retrieve a string from a std::map? Pin
[James Pullicino]16-Jun-02 9:27
[James Pullicino]16-Jun-02 9:27 
GeneralRe: How is it you retrieve a string from a std::map? Pin
redeemer16-Jun-02 10:08
redeemer16-Jun-02 10:08 
GeneralRe: How is it you retrieve a string from a std::map? Pin
Joaquín M López Muñoz16-Jun-02 11:41
Joaquín M López Muñoz16-Jun-02 11:41 
GeneralRe: How is it you retrieve a string from a std::map? Pin
James R. Twine17-Jun-02 9:11
James R. Twine17-Jun-02 9:11 
GeneralRe: How is it you retrieve a string from a std::map? Pin
Christian Graus16-Jun-02 12:41
protectorChristian Graus16-Jun-02 12:41 
QuestionWhere to get REAL HTTP/1.1-compatible proxy? Pin
Artem Moroz16-Jun-02 6:14
Artem Moroz16-Jun-02 6:14 
GeneralRe: CSocket / TCP/IP handling of send/receive error... Pin
Joaquín M López Muñoz16-Jun-02 11:52
Joaquín M López Muñoz16-Jun-02 11:52 
GeneralRe: CSocket / TCP/IP handling of send/receive error... Pin
17-Jun-02 6:26
suss17-Jun-02 6:26 
GeneralUNICODE Pin
Ancient Dragon16-Jun-02 5:01
Ancient Dragon16-Jun-02 5:01 
GeneralRe: UNICODE Pin
Rama Krishna Vavilala16-Jun-02 8:37
Rama Krishna Vavilala16-Jun-02 8:37 
GeneralRe: UNICODE [with an addition] Pin
Joaquín M López Muñoz16-Jun-02 12:06
Joaquín M López Muñoz16-Jun-02 12:06 

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.