I have created a Single Document project. In the main app, I use
CSingleDocTemplate* pDocTemplate = new CSingleDocTemplate(
IDR_MAINFRAME,
RUNTIME_CLASS(CMyDoc),
RUNTIME_CLASS(CMain...
In MDI application I use CWinFormsControl to host a Windows Forms control. The application is a standard MFC application and the control is implemented in C#. When I open a window containing a...
Hi Experts,
I've got a dialog with a custom control which doesn't show up. It was working fine before, but now that I'm loading my resources from a separate dll, DoModal immediately return...
Hi,
How can I check for a 5 minute idle time in my MFC app? I want to auto-exit my application if the user hasn't moved the mouse or pressed any keys within 5 minutes,
Thanks
I'm writing an MFC C++ app that uses automation. I want to expose a C++ array - safearray, whatever - to javascript.
I know that javascript needs an IDispatch to access data in what looks ...
Windows 7 (pro)
VS 2008 (pro)
MFC project.
When using the Resource View for a dialog, and I right click on a control
and select Add Variable the "Add member variable Wizard" pops up very...
A project that compiled and ran OK no longer run after installing Windows SDk
I had VS2008 with SP1 installed and then installed Windows
SDK using 6.0.6001.18000.367-KRMSDK_EN
MFC VC++...
In a simple VC++ MFC Dialog project I have added two files
using Project / Add Existing Item .
The code compiles OK
I then want to Add a Variable to the Dialog using "Add Variable
and wh...
Hi all,
I have an MFC application and for no obvious reason, when i run it in Debug, I get the 'Find Symbols' dialog.
When I select the correct folder for VC60PDB it tells me:
"A File wi...
I have a MFC window based on CWnd. I want to create a message handler for a message that is not a constant (i.e. the message id is returned from a call to "RegisterWindowMessage". The messag...
Hi
I'm trying to get a pointer to the Doc of my SDI application but I am getting an exception as soon as it hits the first line of the code below.
This code is being called from an objec...
I am trying to write out this amortization schedule out, and i having trouble with the part where the values are not changing.
example : i start out with loan: 1000 interest:.01(notation) m...
Is there a way I can embed a .lib file in a dll? The .lib belongs to a different dll, not the one I'm embedding it in.
Thanks.
John
I have an MFC application using a splitter window. The right hand view is printable, while the left view has some controls. We're having a slight problem in that the print function does nothin...
I have a utility project that needs translation. Since this project is out of the scope of my main projects (and should not be 'aware' of them), I was wondering what the correct way of transl...
Hi,
I know these errors can be put down to bad pointers etc, but I've been through all my code and cannot for the life of me work out why this is happening.
I have an SDI MFC app (writte...
I've inherited some activeX controls that I have been endeavoring to extend. Much to my annoyance, the changes are becoming a career path. I will preface my question with the warning that th...
I have code attached, that sets a hook and gets the title bar of a few applications when they update. It works great. It also uses gettext to grab some text out of famfile.exe and parse it d...
Hi all,
I created a DLL in Visual 2008. in one of the methods of the DLL, a Cstring pointer is returned. When the program goes out of scope. it trys to delete this pointer and it throws a me...
I have an application written C/C++(windows) from my C++ part I call CreateThread to start a thread, socket calls and etc. When I am ready to shut down the application I would like to call int...
I'm looking into supporting popup information boxes that appear at the cursor. These boxes would need to handle the background image (no redraw).
Attached is an example of what I am after. ...
MFC 9.0 dialog application.
In InitDialog() I do this call:
int ret = SetWindowPos(HWND_TOP, 0, 0, 896, 712, SWP_SHOWWINDOW);
The windows does not change size. Same code on Windo...
Hello everyone,
I'm going to make a custom control which can be loaded on Toolbox to add in a MFC Application as a component. Before I tried creating a MFC ActiveX Control but it's an OCX a...
Hi,
Scenario:-
----------
I have a main window. The Main window has a modal child and a small modeless child window. Both the windows are launched. The modeless window has progress bar an...
Hello,
I have a problem with MFC dialogs. If I start a dialog in my app, I have to do some action.Currently I add this functions to the OnInitDialog call. But the problem here is, the dialo...