Splitter Windows
-
I overrided the OnCreateClient function for my MDI child window to add a splitter. Everything work just fine except when I type into one of the views I get an illegal error, and I beleive everyone knows what i'm talking about. I was just really hoping someone here could help me with this problem. Also I am compiling with a shared DLL for MFC and service pack 3.
-
I overrided the OnCreateClient function for my MDI child window to add a splitter. Everything work just fine except when I type into one of the views I get an illegal error, and I beleive everyone knows what i'm talking about. I was just really hoping someone here could help me with this problem. Also I am compiling with a shared DLL for MFC and service pack 3.
Someone please help, also I am not using Doc/View architecture.
-
I overrided the OnCreateClient function for my MDI child window to add a splitter. Everything work just fine except when I type into one of the views I get an illegal error, and I beleive everyone knows what i'm talking about. I was just really hoping someone here could help me with this problem. Also I am compiling with a shared DLL for MFC and service pack 3.
What kind of error are you getting? be a little more specific. -Ben --------- On the topic of code with no error handling -- It's not poor coding, it's "optimistic" ;)
-
What kind of error are you getting? be a little more specific. -Ben --------- On the topic of code with no error handling -- It's not poor coding, it's "optimistic" ;)
Well, when I press on the details it says it's an invalid page fault. Then when I debug it, it says unhandled exception in raIRC.exe(MFC42.dll) 0xC0000005: Access Violation. And in the dissasembly it shows me this line: 5F41A33D mov eax,dword ptr [ecx]
-
Well, when I press on the details it says it's an invalid page fault. Then when I debug it, it says unhandled exception in raIRC.exe(MFC42.dll) 0xC0000005: Access Violation. And in the dissasembly it shows me this line: 5F41A33D mov eax,dword ptr [ecx]
Please, someone help me with this.
-
Well, when I press on the details it says it's an invalid page fault. Then when I debug it, it says unhandled exception in raIRC.exe(MFC42.dll) 0xC0000005: Access Violation. And in the dissasembly it shows me this line: 5F41A33D mov eax,dword ptr [ecx]
I take it raIRC.exe is you application, the resto of the stuff does not help me much. Check you call stack, is there any of the functions you are overiding in it? If not, try setting a break point just before the code you just entered that is casing the problem, then just step throught till it bombs... do some tracing... make sure all the pointers your using are valid -Ben --------- On the topic of code with no error handling -- It's not poor coding, it's "optimistic" ;)
-
I take it raIRC.exe is you application, the resto of the stuff does not help me much. Check you call stack, is there any of the functions you are overiding in it? If not, try setting a break point just before the code you just entered that is casing the problem, then just step throught till it bombs... do some tracing... make sure all the pointers your using are valid -Ben --------- On the topic of code with no error handling -- It's not poor coding, it's "optimistic" ;)
I did that, and the code work perfect in Doc/View except the person that told me how to use splitters said it would work without the Doc/View.