When the loader loads a DLL or EXE the address it loads it at (the base address) plus the RVA of something of interest in the image will give you its address in memory. Put another way, it's the location of something in memory relative to the base address of the containing module. Remember that DLLs can be relocated if need be so the base address need not always be the same.
I am beginner to MFC programming. I created one CLR Console Applications project, here in this project I want to use MFC classes like CString,CArray,CFile....etc.
In project settings I used "Use MFC in a shared DLL"
And in project stdafx.h file I am adding
I also used few classes from MFC in the application and complied, I am not getting any errors.
But while running the application, I am facing crash in the application. and the error message is as follows
An unhandled exception of type 'System.AccessViolationException' occurred in Unknown Module.
Additional information:Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
Please provide some solution for this.
Thanks in advance.
I am using Excel Automation for that.. but i am trying to close the excel file and then open it again in a different function and then i am trying to append it again. that is not happening. I am using PutElement function to write the values into the excel file. but i am getting an exception there.
I have created a Splitter Window in which the Right view of the splitter is further split into two parts.How to resize the views during run time i.e. I want to double the size of top view at run time and hide the bottom one.Can anybody please help me out.