Advertisement

635 organizations, including eBay, Ericsson and Lockheed Martin, now work smarter with Corporate Accounts. Save up to 42%

 

Welcome! If you have any general questions about Experts Exchange, feel free to ask me.

 
Time Tested Windows MFC Solutions: 126 - 150 of 3999
 
I want to obtain a string value as an output parameter from a Stored procedure. It seems that i have to use SysAllocString with a variant_t. After lots of experiments, I got this piece of co...
I have a dialog based MFC application (Visual Studio 2005) which serves as a user interface for a piece of equipment.  Before any of the controls in the user interface are useful, the applicat...
Hello experts, This may be a very simple question, but I cannot figure it out. I'm trying to display a dialog in a non-modal fashion. The custom class is extending CDialog, is instantiate...
Hello, I have the following combobox & MFC related  prob/qs!: I have a combobox control with 3 values. the combobox control is called cmbSearch. THe code I have to add strings to the combo...
URGENT! I have created checkboxes in CListCtrl using LVS_EX_CHECKBOXES style. How to disable the checkboxes so that the user cannot select them? I need a FULL answer with code sample.
When I use the MFC Class Wizard (MS C++ 6.0) to set up OnChar and OnKeyDown, these functions never get control. I set a break point in them, but it's never hit. Is there some trick to imple...
Hello, It has become necessary to send a user defined message. I intend to do this using SendMessage(). I can obtain a handle to the CWnd I want to send the message to. In essence, I...
Hello all, My previous team has used MFC Sockets to create an application which is used as both server-client. ForMy Current application we are using  the above application. But Some times ...
Hi All! When I use the below code to access try to access the secure site: https://nois.navair.navy.mil/index.cfm, OpenRequest() gives back ERROR_INTERNET_SEC_CERT_REV_FAILED.  When I acces...
I trace into MFC, when CArray destruct cause this. How to find location of this error.
< NOTE : this a repost of a question that I posted earlier on 18/6; the first question got the status PAQ, but in fact it was not answered > I have written a CListBoxEx class, derived from ...
I'm trying to use the WebBrowser control in the following way.  I want to call Navigate or Navigate2 with a path to a directory.  This works fine.  The problem is that I want the navigation to...
How can I convert a CString variable to a binary string, so that I can write it to the XML file in binary form?
I have a "Options" dialog in my application and I am using CTreeCtrl to switch between categories. I have a single wide dialog so I can fit all the controls/categories in but what i want to do...
    In Win32 API, I get the path and filename the user select by sending the message CDM_GETFILEPATH:           SendMessage(hListbox, CDM_GETFILEPATH, iSize, (LPARAM) szFileName)  in ...
I have a MDI app which has two different menus.  One menu is shown on the CMainFrame when I first start the application, and the other menu is shown when I go to File->New.  Now the second men...
I created an ActiveX control that I would like to be able to distribute to other computers.  Most comuters have registered it with no problem, but one with no obvious difference will not regis...
I am designing a server for networked card games with MFC.  The server consists of a heirarchy of "servlets": each room will exist on a separate process, with a separate server socket, and an ...
Hi! I've an application that runs very well in W2K (not tested in prior versions) but when I try tu run it in WXP it just crash. I don't get any error, just crash. When debugging, I get th...
What are the basical steps to send and receive a buffer with UDP using MFC? I have simply a client and a server. Internet is full of TCP tutorials with MFC but I could'nt find much on UDP. Tha...
Hi...I have a dialog box with a tree control that has check-boxes in it.  What I need to do is, when any of the check-boxes in the tree control is checked, I need to do some processing, and fo...
Hi Experts, I want to associate icon to my ListView like the windows explorer. I written the code like this CImageList ImageList; ImageList.Create(16, 16, CLR_NONE, 0, 255); ImageList.A...
Hi, I have a window that has a progress bar that's supposed to show progress during a long calculation. It works fine except if you place another window over it then remove it - it never re...
Ah hello. This seems like it should have a simple solution, but I cannot find it.  I have a single TCHAR, obtained from CString::GetAt.  I need to convert it to an integer. I cannot use ...
Hello, I am trying to compile a WRAPI test program and am having MFC difficulties. Background:  I am working in C++ .NET 2003 and the program instructions assume Studio 6.0.  Reading thread...