Click here to Skip to main content
15,844,387 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: change mouse pointer for MainFram and dialog in MDI applicaion Pin
ptr_Electron2-Jun-09 23:23
ptr_Electron2-Jun-09 23:23 
GeneralRe: change mouse pointer for MainFram and dialog in MDI applicaion Pin
Chandrasekharan P3-Jun-09 2:11
Chandrasekharan P3-Jun-09 2:11 
GeneralRe: change mouse pointer for MainFram and dialog in MDI applicaion [modified] Pin
ptr_Electron3-Jun-09 3:55
ptr_Electron3-Jun-09 3:55 
GeneralRe: change mouse pointer for MainFram and dialog in MDI applicaion Pin
ptr_Electron4-Jun-09 2:00
ptr_Electron4-Jun-09 2:00 
GeneralRe: change mouse pointer for MainFram and dialog in MDI applicaion Pin
gabbasb211-Aug-09 5:41
gabbasb211-Aug-09 5:41 
QuestionCPropertyView Problems Compiling Pin
wdolson1-Jun-09 18:52
wdolson1-Jun-09 18:52 
AnswerRe: CPropertyView Problems Compiling Pin
Stuart Dootson2-Jun-09 3:06
professionalStuart Dootson2-Jun-09 3:06 
GeneralRe: CPropertyView Problems Compiling Pin
wdolson2-Jun-09 22:29
wdolson2-Jun-09 22:29 
DECLARE_MESSAGE_MAP is there. I was tracking down another compiler error and stumbled across the problem. When I converted the class as derived from CFormView to CPropertyView, I had updated all the references to CFormView except 1. I don't know why the compiler didn't see that as a problem, but when I changed that, it compiled.

I'm having some other problems now. It appears that something in the parent class is causing a memory corruption in the derived class. It was blowing up when I tried to call Clear() for a COleVariant class variable. When I looked at it in the debugger, it was set to something strange. In the class declaration, I moved the COleVariant to the end of the fire and it ran Clear() fine. However, it now blows up when calling SetWindowText() for a CEdit variable.

Tracing down into the debugger, everything looks fine until

m_pCtrlSite->;SetWindowText(lpszString);

I try to trace into it, but I get an access violation reading location 0x00000000. The issue is almost certainly caused by something in CPropertyView because the program runs just fine through that point with the old TabView.

What tools are available to figure out what's corrupting memory?

Bill
GeneralRe: CPropertyView Problems Compiling Pin
Stuart Dootson2-Jun-09 22:39
professionalStuart Dootson2-Jun-09 22:39 
GeneralRe: CPropertyView Problems Compiling Pin
wdolson2-Jun-09 23:03
wdolson2-Jun-09 23:03 
QuestionHi Help me write this program (tuan1111) Pin
tuan11111-Jun-09 18:37
tuan11111-Jun-09 18:37 
QuestionCreating Threads using Class Object functions Pin
jobin0070071-Jun-09 16:38
jobin0070071-Jun-09 16:38 
AnswerRe: Creating Threads using Class Object functions Pin
David Crow1-Jun-09 18:04
David Crow1-Jun-09 18:04 
GeneralRe: Creating Threads using Class Object functions Pin
jobin0070071-Jun-09 18:30
jobin0070071-Jun-09 18:30 
GeneralRe: Creating Threads using Class Object functions Pin
David Crow2-Jun-09 3:30
David Crow2-Jun-09 3:30 
GeneralRe: Creating Threads using Class Object functions Pin
norish2-Jun-09 3:09
norish2-Jun-09 3:09 
NewsRe: Creating Threads using Class Object functions Pin
norish2-Jun-09 3:12
norish2-Jun-09 3:12 
AnswerRe: Creating Threads using Class Object functions Pin
Stuart Dootson2-Jun-09 3:25
professionalStuart Dootson2-Jun-09 3:25 
GeneralRe: Creating Threads using Class Object functions Pin
jobin0070072-Jun-09 5:27
jobin0070072-Jun-09 5:27 
GeneralRe: Creating Threads using Class Object functions Pin
Stuart Dootson2-Jun-09 6:13
professionalStuart Dootson2-Jun-09 6:13 
GeneralRe: Creating Threads using Class Object functions Pin
jobin0070072-Jun-09 13:17
jobin0070072-Jun-09 13:17 
GeneralRe: Creating Threads using Class Object functions Pin
Stuart Dootson2-Jun-09 13:30
professionalStuart Dootson2-Jun-09 13:30 
GeneralRe: Creating Threads using Class Object functions Pin
jobin0070072-Jun-09 5:33
jobin0070072-Jun-09 5:33 
GeneralRe: Creating Threads using Class Object functions Pin
Stuart Dootson2-Jun-09 6:25
professionalStuart Dootson2-Jun-09 6:25 
QuestionIs it "ok" to get array length this way Pin
FocusedWolf1-Jun-09 13:46
FocusedWolf1-Jun-09 13:46 

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.