目前还没有实现,实在搞不懂为什么,大概代码如下:

//--------------------------------------------------------------------------------------
    FString filePath = FPaths::Combine(*FPaths::GameDir(), TEXT("MFCDLL/"),TEXT("OpenFile.dll"));
    typedef FCString(WINAPI *getPath)(void);
    FCString str;
    if (FPaths::FileExists(filePath))
    {
        void *DLLHandle;
        DLLHandle = FPlatformProcess::GetDllHandle(*filePath); // Retrieve the DLL.
        if (DLLHandle != NULL)
        {
            getPath getFilePath=NULL;
            FString procName = "getFilePath";
            getFilePath=(getPath)FPlatformProcess::GetDllExport(DLLHandle, *procName);
            str=getFilePath();
        }
    }
    //-----------------------------------------------------------------------------
View Code

相关文章:

  • 2022-02-23
  • 2021-11-26
  • 2021-09-03
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-02-09
  • 2021-07-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案