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.
I have a program written in VC6 (running on XP) that I want to stop from having multiple copies open. I want it to check whether there is another instance of itself running on start up and close if there is. Using FindWindow() doesnt work as it finds itself!
You can try creating a named mutex with CreateMutex() API and checking the result with GetLastError(). When the second instance of the app tries to create it, GetLastError() will return ERROR_ALREADY_EXISTS as the mutex is already created by the first instance.
I am making an application comprising both C/C++ and .Net environments (for different modules). Both C++ and .Net modules create logs in some XML files. But I am now facing many problems in maintaining all the log files (mostly because of their sizes).
I am planning to create my logs in some database. But I am not familiar with using any database with C++ or with .Net code. Here are my requirements:
1 The very first requirement is that database should be free to use.
2 database should be able to connect with both C++ module and .Net (C# module)
Can anybody suggest me any such database that can be used freely. Also help me in knowing some tutorial by which I can connect my application with that free database.
Thanks in Advance
Last Visit: 7-Aug-20 6:26 Last Update: 7-Aug-20 6:26