I am trying to load an image in OpenCV using the MFC open file dialog:
CString filename;
CFileDialog dlg(TRUE, _T("*.bmp"), NULL, OFN_FILEMUSTEXIST|OFN_PATHMUSTEXIST|OFN_HIDEREADONLY,
_T...
I have a dialog box where the user enters a string for a directory name.
I need to check to see if the string is valid for a windows directory before it is created, such as it is not past the...
This Security update for SQL Server 2005 Service Pack 2 will not update. In the system event log it is error 0x80070643 and event ID 20. There is also a Security update for >NET Framework 2.0 ...
When I programmatically check a radio button as described here:
http://www.experts-exchange.com/Programming/System/Windows__Programming/MFC/Q_23119601.html
It crashes in Debug mode but n...
Hi Expers:
I have a program with a Class "class COpenGLView : public CView" this is running well in SDI if click with the mouse I am entering to COpenGLView::OnLButtonDblClk(U...
Is it possible to capture the message when the application loses focus and regains focus ?
Please attach a snippet of the calls if possible.
Thanks
HIya
I have an application, using MFC, which is generating memory leaks. There is a lot of dynamic memory allocation but I belive I have dealt with deleting these at the end of the applicat...
Hi Experts,
I am writing small VC++/MFC application,
Application has edit box controls for Username, Password, and Path of Folder.
Now i wants to check whether USER i have given , has the ...
If I have a local variable of type CString and then assign to it using the concatenation operator, things work fine:
CString StringFunction1()
{
CString one;
one = "ONE";
return o...
How do use MFC to check if the current user has write access to a directory?
I write a simple MFC program , with Dialog only.
How to hide dialog Immediately After program start ?
This work can be done with OnTimer and ShowWindow(SW_HIDE) after X seconds.
But this ...
Hi Experts,
How can I fix this ? I'm using Visual Studio 2008 C++ with MFC.....
Thank you!
Mike
I am trying to develop an application using Visual Studio 2008. I am writing it in C++, and I chose a Windows Forms solution to develop it. Windows Forms apps use managed code, so I am unable ...
Hi,
I would lik to change my tab control tilte font color from default to any other color. If you give me sample program it will be helpful.
I am using javascript invoker, where I am passing safe array to the following JS:
<SCRIPT LANGUAGE="JScript">
function GetStrFromArray(strArray)
{
var a = new Array(strArray);
alert(a...
I am currently using GetPixel, SetPixel for Saving my Bitmap for Image which is very slow in my application.
I learnt that I can use GetDIbits, GetDIBitsection. Can anyone please attach a sn...
If I try to use SetFont on a combobox member variable the control is re-sized correctly (or it appears to) but the font size of the items inside it is not changing. This is a DROPDOWNLIST cont...
I've created an Owner-Draw CComboBox and derived a class from it. This works and my owner-draw processing works correctly (basically just displaying an abbreviated version of the text of each ...
I'm interested in learning if there is an MFC API for sending SMTP email messages from inside a C/C++ program.
I don't want to use external (3rd party) libraries, as it would be inefficient...
I am trying to add support for custom features to a piece of software. The code for these features is using a sdk from a third party driver (wacom driver for tablet devices). The software I am...
Hi,
I have a CStatic memner in my dialog
How do I draw it white?
I tried the following but the control still have it's default color
How do I add a checkbox next to a menu item in MFC? I tried to use the Checked field but it doesn't work quite like expected.
I need to put an icon on a button I have in a dialog, however the icon happens to be part of a toolbar already and I can't seem to find a way to load it from the toolbar. Is there a way to do ...
Hello
I have a VS6 MFC project that i wrote some time ago.
I would like to upgrade it to VS2008 MFC to take advantage of the new visual effects.
When I open my old project in VS2008 I...
I often declare/define an Empty() member function for my classes, to make sure it's in a known
state with all held resources released.
I call this Empty() member in my constructors and des...