Download

FPlatformApplicationMisc::ClipboardCopy() fails to link

I’ve been taking care of all the deprecated warnings in my 4.18 code and changed “FGenericPlatformMisc::ClipboardCopy()” to “FPlatformApplicationMisc::ClipboardCopy()” as demanded by the compiler. It compiles fine, but refuses to link now. The error msg is:

error LNK2019: unresolved external symbol "__declspec(dllimport) public: static void __cdecl FWindowsPlatformApplicationMisc::ClipboardCopy(wchar_t const *)

As I understand it, this should be part of the core module which is included in the build. What’s going on here?

Looking at the source, it appears that the extra module you need is “ApplicationCore” (see GenericPlatformApplicationMisc.h)

That fixed it. Thanks.

When i use


FGenericPlatformApplicationMisc::ClipboardCopy(*MyString);

i can´t paste the string in another Texteditor with “STRG+V”. I guess i can only paste it inside Unreal with


FGenericPlatformApplicationMisc::ClipboardPaste()

. But i need the more globay way. Does somebody know how to manage this ? Thanks.