I have implemented my custom drag&drop by deriving from COleDataSource and COleDropTarget. Everythings work fine but I have an scenario that makes the application crashes.
That happens when the dialog where the drag&drop controls are placed is destroyed while the user is in the middle of a drag&drop operation.
This is not usual because ...
Some classic Windows/C++ applications can't easily be moved to managed C++.net, due to use of external libraries. Is it feasible to use newer GUI libraries like winforms (or even WPF) with such applications, 'dropping in' new controls to replace stale-looking MFC?
Or is it not really worth it, and would take a lot of time?
...
Hi all,
I am working on an application suite comprising of multiple Automation servers written using MFC and this is legacy code. These apps inter communicate via COM interfaces and other events. Most of these apps provide multiple form views with various input controls to capture information. I was wondering what would be the best way ...
I have a _bstr_t variable bstrErr and I am having a CString variable csError. How do I set the value which come in bstrErr to csError?
...
Once a user types something in to my CComboBox (within a CDialog subclass) and presses Enter, I would like to add what they've written to the list of options, and do some other handling. How do you do that in MFC?
...
Hi,
i have created an MFC DLL for windows mobile..
i have exposed only a function in MFC DLL... if i try to load DLL in c#,in debug mode it is telling Remote connection lost message box appears and app quits
i have kept the DLL at .exe level only.. how to load ?
Steps i have taken to make project.
1)create smart device MFC DLL 2)cho...
Is it possible to set the DPI of an application programmatically or the DPI only possible to set through the system preference?
Note: My application's GUI is coded in MFC and .NET forms.
Update:
After some research I have found no way of doing this so I have to agree with the only answer here; it cannot be done.
...
In MFC, I can edit the text of items in the list control but only for the first column by setting the Edit Labels to true. Now when I click the first column item to change its text, I'm able to change its text but when I hit Enter, its text isn't updated, why and how do I edit text for other columns?
...
I want to copy a binary master file in a new binary file. This file contain nothing but have a predefined size (20000 lines).
Here what i'm doing:
FILE *A_Lire;
FILE *A_Creer;
A_Lire = fopen(MASTERPath,"rb");
A_Creer = fopen(PARTPRGPath, "wb");
fseek(A_Lire,0,SEEK_END);
int end = ftell(A_Lire);
char* buf = (char*)malloc(en...
I am using the following code:
CAtlNavigateData navData;
CStringA m_strForm = "name=+++&priv=1&password=";
navData.SetPostData((BYTE*)(LPSTR)(LPCSTR)m_strForm, m_strForm.GetLength(), QHTTP_FORM_URLENCODE);
special symbols such as :"+++" need to do url-encoding, without url-encoding, +++ will turned into space.
I need a converer.
CSt...
I have a CListCtrl class and at the moment when a user selects one of the sub items I am displaying a CComboBox over the subitem which the user can then make a selection from.
However I have a problem. When the user has made a selection i need the combo box to disappear (ie intercept CBN_SELCHANGE). The problem is that I need to make ...
Is there any way to add folders to the sidebar in an MFC CFileDialog? (You know, the bar with shortcuts to "Recent Documents", "My Documents", etc. on the left side of the dialog.) Note that I do not mean that I want the user to have to hack the registry or something to permanently add folders to the sidebar system-wide, I'm talking abou...
I need to implement a custom search in a grid and I would like to find some user interface guidelines that explain the standard way to implement it.
I mean this kind of search that is initiated by the user using the keyboard. The focus on the grid must move to the first row that match the pressed key.
I would like to find a good algori...
Hi, I have create a simple MFC appwizard dialog project. I used the Class Wizard to create a new class called CMyDlg based on CDialog. Then I went to the Message Map screen and doubleclicked on the WM_INITDIALOG entry to automatically create a CMyDlg::OnInitDialog() handler.
The problem I have is that CMyDlg::OnInitDialog() will not cal...
Hey there!
I have exactly the problem described here (i'm getting those linker errors when trying to add MFC to my project):
http://support.microsoft.com/?scid=kb%3Ben-us%3B148652&x=8&y=9
however - if I follow the solution and enter
nafxcwd.lib; libcmtd.lib
into 'ignore libraries' as well as 'additional dependencies', then i'll...
I want to conver a tchar* to char * is this possible . if yes how to do it. I use unicode setting
...
I want to get the file name in a given path is there any apis available . My programming environment is vc++ mfc
...
I working in MFC and get the following code in html :
&&++%%
actually it is &&++%%
here is a table of specialcharacters, is there any API's to convert this special character string into normal ones?
http://www.degraeve.com/reference/specialcharacters.php
Writting such code myself seems not safe enough. I thinks ther...
I have a numerical library coded in C++.
I am going to make a UI for the library. I know some MFC. So one solution is to use MFC and make a native application.
The alternative is C#. I know nothing about C#. But I think it should be easy to learn.
Some tutorial for mixed programming of C++ and C# would be very helpful to me.
Thanks...
I am trying to use the Microsoft Hierarchical FlexGrid (MSHFlexGrid) in a Visual C++ (VS 2005). I have the grid shown, and I can manually add data to the individual cells. However, according to online documentation I've read, I should be able to show the hierarchical nature of the data (hence MSHFlexGrid instead of MSFlexGrid) by defin...