x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

Cannot Use MFC in UE4 Project

There is a project written by VC++. I need to add it to my UE4 project.

Because VC++’s macros and variables are used in the VC++ project. So I included "afxwin.h" "afxcmn.h" two header files in the UE4 project. when I Compile the UE4 project then have the error.

C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\ATLMFC\INCLUDE\afx.h(24): fatal error C1189: #error: Building MFC application with /MD[d] (CRT dll version) requires MFC shared dll version. Please #define _AFXDLL or do not use /MD[d]

If my UE4 project is a MFC project,that can easy to solve this problem. Like this set Use MFC in a shared Dll. or C/C++ ->Code Generation ->Runtim Libray change to Multi-threaded(/MTd) alt text alt text

How to solve this error in UE4 project.

Product Version: UE 4.16
Tags:
111.png (102.9 kB)
more ▼

asked Mar 27 '18 at 08:33 AM in Using UE4

avatar image

chenxiao_3
1 1 1

avatar image chenxiao_3 Mar 28 '18 at 12:49 AM

Or how to change this MFC code into UE4 code.

In .h afx_msg HCURSOR OnQueryDragIcon(); afx_msg LRESULT OnSIPCallbackEvent(WPARAM WParam, LPARAM LParam); DECLARE_MESSAGE_MAP()

In .Cpp BEGIN_MESSAGE_MAP(CSIPSampleDlg, CDialog) ON_WM_SYSCOMMAND() ON_MESSAGE(WM_SIPEVENT, OnSIPCallbackEvent) ON_WM_PAINT() ON_WM_QUERYDRAGICON() END_MESSAGE_MAP()

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

0 answers: sort voted first
Be the first one to answer this question
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question