Click here to Skip to main content
15,911,039 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: fatal error C1189: #error : This add-in is for VC++ 6.0 only Pin
Stuart Dootson15-Feb-09 0:39
professionalStuart Dootson15-Feb-09 0:39 
QuestionCEditView Pin
grassrootkit14-Feb-09 22:44
grassrootkit14-Feb-09 22:44 
AnswerRe: CEditView Pin
grassrootkit14-Feb-09 22:56
grassrootkit14-Feb-09 22:56 
GeneralRe: CEditView Pin
Stuart Dootson14-Feb-09 23:13
professionalStuart Dootson14-Feb-09 23:13 
GeneralRe: CEditView Pin
grassrootkit15-Feb-09 0:50
grassrootkit15-Feb-09 0:50 
GeneralRe: CEditView Pin
Stuart Dootson15-Feb-09 3:01
professionalStuart Dootson15-Feb-09 3:01 
GeneralRe: CEditView Pin
grassrootkit15-Feb-09 5:34
grassrootkit15-Feb-09 5:34 
GeneralRe: CEditView Pin
grassrootkit15-Feb-09 22:31
grassrootkit15-Feb-09 22:31 
Hi Stuart, I've put the logic in ::Serialize function. But how will I connect this function in "Open New file". The control flow is a bit unclear.

When I open a document, the first function that gets called is the below one.
The void CMyTestView::OnFileOpen()
{
 ..

}


Also in the document class, I've got,
BOOL CMyTestDoc::OnOpenDocument()
{
	return TRUE;
}


Where should we call the ::Serialize() function?.

When I open a new file, what the functions happens/I should call. Can you please..just type down the function names. I'll figure out and end the conversation.

Like,

Open A new document:
1.
void CMyTestView::OnFileOpen()
{
   //Load the file path of the selected file.
}

2.
BOOL CSDITestDoc::OnOpenDocument()
{
    return true;
    //Call Serialize()
}

3.
void CSDITestDoc::Serialize(CArchive& ar)
{
 // read the file
 //Update view.
}

GeneralRe: CEditView Pin
Stuart Dootson15-Feb-09 23:30
professionalStuart Dootson15-Feb-09 23:30 
GeneralRe: CEditView Pin
grassrootkit15-Feb-09 22:54
grassrootkit15-Feb-09 22:54 
GeneralRe: CEditView Pin
Stuart Dootson15-Feb-09 23:26
professionalStuart Dootson15-Feb-09 23:26 
AnswerRe: CEditView // Displaying text Pin
grassrootkit14-Feb-09 23:00
grassrootkit14-Feb-09 23:00 
GeneralRe: CEditView // Displaying text Pin
grassrootkit14-Feb-09 23:11
grassrootkit14-Feb-09 23:11 
GeneralRe: CEditView // Displaying text Pin
Stuart Dootson14-Feb-09 23:17
professionalStuart Dootson14-Feb-09 23:17 
GeneralRe: CEditView // Displaying text Pin
grassrootkit14-Feb-09 23:27
grassrootkit14-Feb-09 23:27 
QuestionCListCtrl "show selection always" doesn't work in vista aero theme Pin
xanagan66614-Feb-09 21:05
xanagan66614-Feb-09 21:05 
AnswerRe: CListCtrl "show selection always" doesn't work in vista aero theme Pin
Stuart Dootson14-Feb-09 23:14
professionalStuart Dootson14-Feb-09 23:14 
Question871127 - intellisense Pin
ilostmyid214-Feb-09 17:30
professionalilostmyid214-Feb-09 17:30 
AnswerRe: 871127 - intellisense Pin
Stuart Dootson14-Feb-09 23:20
professionalStuart Dootson14-Feb-09 23:20 
GeneralRe: 871127 - intellisense Pin
ilostmyid217-Feb-09 18:21
professionalilostmyid217-Feb-09 18:21 
QuestionToUpper and ToLower part of a string in .net C++? Pin
TabascoSauce14-Feb-09 13:00
TabascoSauce14-Feb-09 13:00 
AnswerRe: ToUpper and ToLower part of a string in .net C++? Pin
Stuart Dootson14-Feb-09 13:33
professionalStuart Dootson14-Feb-09 13:33 
GeneralRe: ToUpper and ToLower part of a string in .net C++? Pin
TabascoSauce14-Feb-09 15:27
TabascoSauce14-Feb-09 15:27 
GeneralRe: ToUpper and ToLower part of a string in .net C++? Pin
Stuart Dootson14-Feb-09 22:09
professionalStuart Dootson14-Feb-09 22:09 
QuestionList of fonts in Rich Text Edit control? Pin
tiresias214-Feb-09 6:33
tiresias214-Feb-09 6:33 

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.