C++ API works with unreal engine 3
Posted: 24 Jun 2014, 08:38
I have struggled several weeks to make C++ API DLL to work with unreal engine 3 source code.
Here are my modification to C++ API:
1. because UE3 uses customized new/delete operator, so transfer parameter using std::string causes crash. So, I changed all std::string parameter to ByReference or char *
2. because UE3 defines struct alignment to 4 bytes, so I have to modify client API also to be 4-byte alignment
Hope in later version, question 1 can be solved. question 2 really depends on different app settings, so it's not an issue.
Here are my modification to C++ API:
1. because UE3 uses customized new/delete operator, so transfer parameter using std::string causes crash. So, I changed all std::string parameter to ByReference or char *
2. because UE3 defines struct alignment to 4 bytes, so I have to modify client API also to be 4-byte alignment
Hope in later version, question 1 can be solved. question 2 really depends on different app settings, so it's not an issue.