Click here to Skip to main content
15,900,495 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 22:23
ptr_Electron2-Jun-09 22:23 
GeneralRe: change mouse pointer for MainFram and dialog in MDI applicaion Pin
Chandrasekharan P3-Jun-09 1:11
Chandrasekharan P3-Jun-09 1:11 
GeneralRe: change mouse pointer for MainFram and dialog in MDI applicaion [modified] Pin
ptr_Electron3-Jun-09 2:55
ptr_Electron3-Jun-09 2:55 
GeneralRe: change mouse pointer for MainFram and dialog in MDI applicaion Pin
ptr_Electron4-Jun-09 1:00
ptr_Electron4-Jun-09 1:00 
GeneralRe: change mouse pointer for MainFram and dialog in MDI applicaion Pin
gabbasb211-Aug-09 4:41
gabbasb211-Aug-09 4:41 
QuestionCPropertyView Problems Compiling Pin
wdolson1-Jun-09 17:52
wdolson1-Jun-09 17:52 
AnswerRe: CPropertyView Problems Compiling Pin
Stuart Dootson2-Jun-09 2:06
professionalStuart Dootson2-Jun-09 2:06 
GeneralRe: CPropertyView Problems Compiling Pin
wdolson2-Jun-09 21:29
wdolson2-Jun-09 21: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 21:39
professionalStuart Dootson2-Jun-09 21:39 
GeneralRe: CPropertyView Problems Compiling Pin
wdolson2-Jun-09 22:03
wdolson2-Jun-09 22:03 
QuestionHi Help me write this program (tuan1111) Pin
tuan11111-Jun-09 17:37
tuan11111-Jun-09 17:37 
QuestionCreating Threads using Class Object functions Pin
jobin0070071-Jun-09 15:38
jobin0070071-Jun-09 15:38 
AnswerRe: Creating Threads using Class Object functions Pin
David Crow1-Jun-09 17:04
David Crow1-Jun-09 17:04 
GeneralRe: Creating Threads using Class Object functions Pin
jobin0070071-Jun-09 17:30
jobin0070071-Jun-09 17:30 
GeneralRe: Creating Threads using Class Object functions Pin
David Crow2-Jun-09 2:30
David Crow2-Jun-09 2:30 
GeneralRe: Creating Threads using Class Object functions Pin
norish2-Jun-09 2:09
norish2-Jun-09 2:09 
NewsRe: Creating Threads using Class Object functions Pin
norish2-Jun-09 2:12
norish2-Jun-09 2:12 
AnswerRe: Creating Threads using Class Object functions Pin
Stuart Dootson2-Jun-09 2:25
professionalStuart Dootson2-Jun-09 2:25 
GeneralRe: Creating Threads using Class Object functions Pin
jobin0070072-Jun-09 4:27
jobin0070072-Jun-09 4:27 
GeneralRe: Creating Threads using Class Object functions Pin
Stuart Dootson2-Jun-09 5:13
professionalStuart Dootson2-Jun-09 5:13 
GeneralRe: Creating Threads using Class Object functions Pin
jobin0070072-Jun-09 12:17
jobin0070072-Jun-09 12:17 
GeneralRe: Creating Threads using Class Object functions Pin
Stuart Dootson2-Jun-09 12:30
professionalStuart Dootson2-Jun-09 12:30 
GeneralRe: Creating Threads using Class Object functions Pin
jobin0070072-Jun-09 4:33
jobin0070072-Jun-09 4:33 
GeneralRe: Creating Threads using Class Object functions Pin
Stuart Dootson2-Jun-09 5:25
professionalStuart Dootson2-Jun-09 5:25 
QuestionIs it "ok" to get array length this way Pin
FocusedWolf1-Jun-09 12:46
FocusedWolf1-Jun-09 12: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.