I see this code in other forum threads:
TSharedPtr<GenericApplication> app = FSlateApplication::Get().GetPlatformApplication();
But when I try and do this (on windows) I get a link error?
2>WindowActivation.cpp.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) protected: static class TSharedPtr<class GenericApplication,1> FSlateApplicationBase::PlatformApplication" (__imp_?PlatformApplication@FSlateApplicationBase@@1V?$TSharedPtr@VGenericApplication@@$00@@A) referenced in function "public: class TSharedPtr<class GenericApplication,1> __cdecl FSlateApplicationBase::GetPlatformApplication(void)" (?GetPlatformApplication@FSlateApplicationBase@@QEAA?AV?$TSharedPtr@VGenericApplication@@$00@@XZ)
is there some dependency that I have to add besides these?
PublicDependencyModuleNames.AddRange(new string[] {
"Core",
"CoreUObject",
"Engine",
"InputCore",
"InputDevice",
"EnhancedInput",
"ApplicationCore",
"Slate",
});