Top "Mfc" questions

This tag should be used for questions concerning Microsoft Foundation Class Library (MFC), a C++ framework for Windows desktop GUI application programming.

Private and Protected Members : C++

Can someone enlighten me as to the difference between private and protected members in classes? I understand from best practice …

c++ class mfc
How do you convert CString and std::string std::wstring to each other?

CString is quite handy, while std::string is more compatible with STL container. I am using hash_map. However, hash_…

c++ mfc c-strings stdstring
LPCSTR, LPCTSTR and LPTSTR

What the difference between LPCSTR, LPCTSTR and LPTSTR? Why do we need to do this to convert a string into …

c++ windows visual-c++ mfc
Convert CString to const char*

How do I convert from CString to const char* in my Unicode MFC application?

c++ visual-studio visual-c++ unicode mfc
Convert MFC CString to integer

How to convert a CString object to integer in MFC.

visual-c++ mfc
How can I convert an Int to a CString?

I can convert a Double to a CString using _ecvt result_str=_ecvt(int,15,&decimal,&sign); So, is …

c++ visual-c++ mfc
How do I call a static method of another class

I have a class, lets say CAppPath which has a static method: public: static CString GetAppPath(); and in CAppPath.cpp …

c++ windows oop mfc static-methods
How to format date and time string in C++

Let's say I have time_t and tm structure. I can't use Boost but MFC. How can I make it …

c++ datetime mfc
error Please #define _AFXDLL or do not use /MD[d] occurs even after making changes in Project Properties

I am working on Win32 project in Visual Studio 2011. It is generating MFC error when I includes afx.h or …

visual-c++ dll mfc
How to convert std:string to CString in unicode project

I have a std::string. I need to convert this std:string to a Cstring. I try to use the .…

c++ string visual-studio mfc