Code change from version 4.7 - 4.10

Does anyone know if Unreal Engine developers made some changes in the C++ code that would make some syntax obsolete? I am using version 4.10 and I recently bought a book called Building an RPG with Unreal. Even though I am following both what’s in the book and what’s in the files included exactly, it still is flagging errors. For example while I know I can use a third person template, just to make sure I wasn’t missing anything I did try to code a controllable character and one of the errors I got was Error C:\ParageofAge\Source\ParageofAge\ControllableCharacter.h(9) : error C2079: ‘UControllableCharacter’ uses undefined class 'ParageofAge_API’c:\parageofage\source\parageofage\ControllableCharacter.h(9): error C2079: ‘UControllableCharacter’ uses undefined class ‘ParageofAge_API’

And here’s what I have in the code class ParageofAge_API UControllableCharacter : public UInterface

The only thing that’s different than what’s in the book is the ParageofAge_API which is the project name.

Any help on this would certainly be appreciated and if it is obsolete now, any recommendations on combat engines would be helpful, because by first glimpse the majority of the other chapters are blueprints and I shouldn’t have any problems with the difference on blueprints. Please note that going back to version 4.7 is not an option because I bought several stuff from the marketplace that 4.7 wont support.

Thanks

Those API macros are autogenerated, and always in all caps as far as I know. So see if PARAGEOFAGE_API works instead.

Note: the MYPROJECT_API macro is basically equivalent to __declspec(“dllexport”), and you shouldn’t normally need it unless you are writing code that needs to be callable from another module. If you find that the code compiles without the export declaration you may as well remove it to keep things simple.

I did need the API in there because it was flagging errors without it and once I changed it to PARAGEOFAGE_API everything started working like a charm again. Thanks so much because this definitely saves me a lot of time and money on having to find another combat engine.