Whammy
(Whammy)
May 20, 2018, 3:03pm
1
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?
TheJamsh
(TheJamsh)
May 20, 2018, 3:36pm
2
Looking at the source, it appears that the extra module you need is “ApplicationCore” (see GenericPlatformApplicationMisc.h)
2 Likes
Seim2k
(Seim2k)
December 15, 2020, 11:37am
4
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.
SaphiGoat
(SaphiGoat)
September 30, 2021, 5:26pm
5
Hello,
i ran into the seame problem, but What do I need to do, to get this compiling?
fpwong
(fpwong)
February 4, 2023, 5:38am
6
A bit late but I was looking into this today:
In the file where you call FPlatformApplicationMisc::ClipboardPaste
, you need to include #include "HAL/PlatformApplicationMisc.h"
.
Then in your Build.cs
, you will need to add "ApplicationCore"
1 Like