How can I add TArray to my C++ project?

I created a new game module as a separate c++ project in Visual Studio 2013. This module handles SQL database access. I then hooked this up to UE4 and it is all working nicely so that I can access SQL from my blueprints.

I recently noticed that UE4 has a TArray template class. I would like to include TArray support into my separate game module project, but I am not sure what the best way to do it is. I found the Array.h file and tried to include it, but unfortunately it relies on Core.h, which then relies on a ton of other includes. I don’t want to have to include the entire UE4 source to my separate project just to be able to use TArray’s.

Any suggestions on how I could easily include TArray support in my separate project? I only want to use it for building TArrays and returning them to UE4.

Thanks!

TArray relies on various types declared in Core, so it would be best if you (1) add a private module dependency to “Core” in your project’s Build.cs file and (2) include “Core.h” in your module’s pre-compiled header file or the .cpp that needs TArray.

Rest assured that, by including Core you won’t be including the entire Engine. All of our non-Engine applications also include Core.

Thank you for your response. I think you may have inadvertently answered my question. Currently, the module I am loading doesn’t have a Build.cs file, because the module I am loading is just a blank VS 2013 DLL project. Based on your response I am thinking I need to create my project from within UE4 and go down the plugin route if I want to use some of the UE4 classes like TArray. Thanks! You guys at Epic are the best!