|
Application gets slower when having ~50 dialogs in memory. Hi, I have an MDI application. In view, I have created a property sheet. In one of the pages of this property sheet, I have to create ~50 different kinds of modeless dialogs, owned by property page. All these dialogs are needed in memory as long as the document is open in the session. I have created them at ... 14 May 2008 00:43
Deleting a file used by another process. I have been trying to delete files that is kept opened by another process. For this, I took the handle of the file, Duplicate it and the call the CloseHandle with that handle. It works fine for almost all files. But in some cases, even though I was able to close the handle, I coudn't delete it. I am able to re... 13 May 2008 23:11
How to place focus back after error message window closed? I have a form with 3 CEdit which are Year, Month and Day fields. If one of them is empty and user click OK or press Enter, an error message will displayed and the focus will back on where it was. I have tried this code but it won't focused back on where it was, it just back to the form but nothing is focused... 13 May 2008 22:41
How to move focus / active control using Enter key? I've ever seen an application that moves the active control using Tab or Enter key. So the application has a few Combo Boxes, CEdit, Checkboxes and to move from one control to another, we can use either Tab or Enter key. How to do that? I've tried to find it but I still haven't found any. Thank you ver... 13 May 2008 22:41
Using MFC dll from non-MFC application I have been struggling several weeks with this problem. I need to call an MFC dll from a non-MFC application. The MFC dll was originally a working MFC program that I conveted to a dll. The dll works fine except that it crashes when I exit. Can anyone provide me with some snippets of working code showing how ... 13 May 2008 21:39
Web Service always fails when called Hello, I'm trying to use a web service from my C++ app. For testing purposes, I created the simple web service in VS2005: [WebMethod] public int Sum(int num1, int num2) { return (num1+num2); } I tested it firstly using asp.net and it worked fine. To make this test, I created a web site in IIS so I... 13 May 2008 21:39
How do I use msiexec.exe with Visual C++ SP1 Redistributable? [cross-post from microsoft.public.windows.server.sbs] Forgive me if this is the wrong place to ask this, but I've never dealt with progamming code before and thought this might be a better place to ask this. ================================== I think I found a way to fix my "hang" problem during setup, but I ne... 13 May 2008 20:07
MFC App unable to run in Vista with UAC enabled Application Description: The Application is a MFC C++ unmanaged code application, which utilizes Visual Studio .Net 2003 to compile and InstallShield Version 12 to deploy. The application is intended to be installed on the following Operating Systems: Windows 2000 sp4; Windows XP sp2; and Windows Vista. Problem ... 13 May 2008 18:35
CWnd ON_WM_LBUTTONDBLCLK Hello: I have a standard Windows application that has a window derived from CWnd. I've tried to handle the ON_WM_LBUTTONDBLCLK message, but it never gets called when a double click in the window occurs. If I handle the left button down event, that gets called, but double clicking isn't handled. Cany an... 13 May 2008 16:01
How to capture toolbar button command Hi there, I am trying to capture the message that is sent when one of my toolbar buttons are pressed. I extended the CMFCToolBar class to : class CGraphToolBar : public CMFCToolBar I have message map set accordingly: BEGIN_MESSAGE_MAP(CGraphToolBar, CMFCToolBar) ON_WM_CREATE() O... 13 May 2008 13:56
problem while calling UpdateData(false) in a loop I have made a simple MFC(dialog based) program in which the dialog box has a CEdit box i have defined a DoDataExchange so my problem is whenever I do something like this for(i=0;;i++) { e=i; UpdateData(false); } where "e" is associated with the edit box Th... 13 May 2008 13:25 |