The Microsoft Foundation Class Library (MFC) is a C++ framework for Windows GUI programming.

learn more… | top users | synonyms

0
votes
1answer
26 views

CStatic not receiving WM_CTLCOLOR

I think I am missing something small here. I am trying to make a class which inherits from CStatic with a transparent background. I have managed create an instance of the class and it is displayed ...
0
votes
2answers
19 views

MFC Main thread only focus on Dialog, need to deal with the data received from server

My code will receive xml data from server, the data quite huge. after finishing receiving the xml data from sever, my code want to continue to parse the xml data, however, I have no idea why the ...
0
votes
1answer
17 views

MFC OnInitialUpdate never gets called

I have a CFormView that is dynamically created at runtime. However, something really weird is going on, because OnInitialUpdate never gets called for that view. I set a breakpoint in the function and ...
1
vote
2answers
40 views

MFC VC++ CStatic only receiving WM_NCHITTEST

I have created a small MFC Document View App in C++ and I am having some trouble receiving messages in a class that inherits from CStatic. I have managed to create the CStatic derivative and it is ...
0
votes
0answers
21 views

How to write list control data to xml file in MFC?

I have created one "list control" in my MFC application. I want to write list control data to a xml file. As I am new to MFC, So I have no idea about it, I have searched on internet too.But I am not ...
2
votes
2answers
40 views

OnPaint is updated too often

I have a problem with the OnPaint method of CFrameWnd, and I cant seem to figure out what is happening. OnPaint is called approx every 10 ms, which causes the computer to freeze. Checked CPU usage and ...
0
votes
2answers
22 views

Using #define constants in enumurated data types, syntax error

I am a bit puzzled by this error i get while trying to compile my MFC project. To simplify, i wish to enumerate something like this: enum Cars { Audi, Bmw, Ford }; Which works fine. but i get ...
0
votes
0answers
12 views

UDP socket communication

I am creating a socket communication using UDP protocol in MFC in Visual Studio. What I did is, I called following function : { recvaddr.sin_family = AF_INET; recvaddr.sin_port = htons(54021); ...
0
votes
0answers
17 views

how use libevent in mfc dialog project?

I make libevent libs with steps: vs2005 cmd line and enter libevent directory make /f Makefile.nmake and then create mfc dialog project, use the event_base_new,and event_dispatch()... Build the ...
-1
votes
0answers
13 views

how to import js package into cef3 in windows?

I am using a cef3 example, but when I improt js package into html page , the path is invalid. the example is http://www.magpcss.net/cef_downloads/index.php?file=cef_binary_3.1453.1255_windows.7z it ...
1
vote
1answer
67 views

what is windows programming from C++, C# and Java perspective? [on hold]

I am learning MFC right now. There is a term i have read in all the books :"windows programming". My point is what do they mean by this term "windows programming" ? The simple windows form application ...
2
votes
2answers
43 views

Hanlding time consuming Operations in MFC

I have one MFC based legacy application, in which I cannot do much modification as of now. There is one functionality which involves Reading/Writing data from/to INI file. It was written keeping in ...
-1
votes
0answers
23 views

Searching for good book or tutorials to use MFC library in C# [on hold]

I am new in UI coding. I have to do coding in UI for visual studio 2012.some suggestions of good book for doing this basically i have to use MFC library in C#. I Am searching for good book or ...
0
votes
1answer
23 views

What does it mean by “Get Handle” in MFC

In a book about MFC I found "The GetDC function retrieves a handle to a display device context (DC) for the client area of a specified window or for the entire screen. You can use the returned handle ...
1
vote
2answers
42 views

Prerequisites for learning MFC programming.

I know a bit of C++ and C and the project I am working with now is a whole lot of MFC programming. Can someone experienced tell me the prerequisites for learning MFC. Also, What the are best sources ...
-1
votes
0answers
37 views

MFC classes Add Member Variable error [on hold]

I were created MFC AppWizard[exe] . I added a new private member to the new class CBgWnd! But then the new class doesn't show in the classview area, it's disappear! Sometimes if I add windows message ...
0
votes
2answers
24 views

cannot convert parameter 1 from 'const char [6]' to 'const wchar_t *

I'm new to MFC and I don't know what to do with this error. ERROR error C2664: 'void ATL::CStringT::Format(const wchar_t *,...)' : cannot convert parameter 1 from 'const char [6]' to 'const ...
0
votes
0answers
16 views

dwMemoryLoad - Memory Status

I got this error when I compiled my program and since Im new to MFC, I really don't know what to do. ERROR: Debug Assertion Failed Expression: ((state==ST_NORMAL)||(state==ST_TYPE)) CODE int ...
0
votes
1answer
16 views

Populate combo box with Document/View separation (MFC)

I have an MFC SDI application with a series of views that I can switch at runtime based on the type of list item that is selected in another view. Because they are dynamically created, they require an ...
0
votes
0answers
34 views

MFC,How to add menu-bar and customise button to title bar?

Recently I found many app add menu-bar to title bar. For visualisation, the min, max and close button in title bar alse are overrided. like the following picture shows. I just know to process the ...
0
votes
1answer
17 views

The web link is loaded in WebBrowser and throws Script error while the link is displayed in IE smoothly

I have a MFC application with CWebBrowser embedded. Currently , I run into an issue : my browser fails to load some web pages(lack of object , error about JS stuff) and always throws script error ...
0
votes
1answer
49 views

Replace call to AfxGetInstanceHandle() by Windows API function(s)

SHELLEXECUTEINFO info; // Initializing struct info.cbSize = sizeof(info); info.fMask = SEE_MASK_NOCLOSEPROCESS | SEE_MASK_FLAG_NO_UI; info.hwnd = NULL; info.lpVerb = ...
0
votes
1answer
16 views

CList's AddTail() assertion error

I was trying to create a double-dimensional List in MFC in order to save and work with some int and CString data. So, I've tried something like this: #include "A.h" //A.cpp A::A() { } A::~A() { } ...
1
vote
0answers
31 views

what's the best way to show an image in opengl

up to know I have used glDrawPixels but since my image is a large geotiff one, I'm getting some horrible results for example: this is the code used for zoom extent: void ...
0
votes
1answer
27 views

Parent Window is NULL in CFormView (MFC)

I have a CFormView-derived class that has a button I am trying to call ShowWindow on. However, this call fails because the m_hWnd variable is null. Why is m_hWnd null? The dialog has the child style ...
-2
votes
0answers
37 views

How can I get pointer of the calling class in a dialog class?

I have this ActiveX. And I have this Ctrl class in it, pretty generic code! I am creating a dialog from this Ctrl class. Now, I want to call an event method of this Ctrl class on click on any button ...
0
votes
0answers
16 views

using openGL in an MFC dialog

to show openGL in an MFC class I used this class very good class but it's better for 3D geometries while my goal of showing opengl in MFC is for 2D high resolution geotiff images and I need more ...
0
votes
1answer
46 views

How to get the date and time from the internet using MFC

I am trying to build an application for tryout, and I need to download the date and time from the site time.windows.com, so the application will stop working after several days. I thought about ...
1
vote
0answers
26 views

Creating Graph in MFC

I am stuck in a problem. I am new to MFC so don't know what to do next. I am creating a graph with X and Y co ordinates specified along side the thin lines each separated from each other only by 10% ...
0
votes
1answer
42 views

From VS 2k3 to VS 2k8 - MFC Application not rendering properly in Release config

EDIT Problem solved, see below We had to migrate a MFC application from Visual Studio 2003 to 2008 a while back. It went OK for the most part, except for a huge flaw : the release build doesn't ...

1 2 3 4 5 189
15 30 50 per page