Click here to Skip to main content
15,908,115 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: error MIDL2020 : error generating type library : SaveAllChanges Failed : Pin
Nuri Ismail15-Feb-09 0:49
Nuri Ismail15-Feb-09 0:49 
Questionfatal error C1189: #error : This add-in is for VC++ 6.0 only Pin
pandit8414-Feb-09 23:18
pandit8414-Feb-09 23:18 
AnswerRe: fatal error C1189: #error : This add-in is for VC++ 6.0 only Pin
Stuart Dootson14-Feb-09 23:25
professionalStuart Dootson14-Feb-09 23:25 
GeneralRe: fatal error C1189: #error : This add-in is for VC++ 6.0 only Pin
pandit8414-Feb-09 23:39
pandit8414-Feb-09 23:39 
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 
grassrootkit wrote:
Ok.. I found and replaced all CViews with CEditView. And it's not asserting now. Is it a right way?


Yeah, that should now be correctly deriving from CEditView.

grassrootkit wrote:
I will have a separate class to read/write to a given file path.

grassrootkit wrote:
On Opening a document, I read the text and keep it in a variable


You should have read/write operations as methods of your document class, and store the text in a member variable of an instance of your document class (presuming you're using the document/view bits of MFC).

grassrootkit wrote:
In the OnDraw() function in the view, I keep "SetWindowText()" that read content

You should probably do that in the OnUpdate handler - that should get called when the document is updated, by the document calling its UpdateAllViews method (that's part of CView).

The idea of the doc/view stuff is for you to put operations affecting the document in your document class, operations affecting the view in your view class, to get separation of concerns.

Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p

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 
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 

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.