利来w66国际平台

  • 联系利来w66国际平台    Contact

    UE4调用VR外设WISEGLOVE数据手套的LIB和DLL开发库的方法

    2018/3/20      点击:

    利来w66国际平台 HENDUOXIAOHUOBANBUZHIDAORUHEZAIUE4LIJIVRWAISHEXIECHAJIAN,XIAMIANYIWONGLOVESHUJUSHOUTAOWEILI,JIGEWEIJIESHAOYIXIAUE4DIAOYONGWONGLOVESHUJUSHOUTAODELIB, DLLKAIFAKUDEFANGFA:

    利来w66国际平台 1.ZAIUE4ZHONGCHUANGJIANYIGEKONGDEblankCHAJIAN

    利来w66国际平台 2.DAKAICHAJIANDE.bluid.cs

    3.需要将wonglove.lib wonglove.dll文件和对应的include文件 wonglove.h利来w66国际平台考到指定目录中,通常为项目的Plugins/ThirdParty/Win64(可自定义)

    4.TIANJIADAOGONGCHENGZHONG DAIMARU 

    PublicAdditionalLibraries.Add(libMULU + libWENJIANMING);//JIAZAIDISANFANGJINGTAIKU.lib

     PublicIncludePaths.Add(lib头文件目录);

    SHIYONGSHIZAISHIYONGDEDAIMAZHONGZHIJIE#include TOUWENJIANJIKE (YOUDESHIHOUBIANYIHUIBAOLIANGGELIANJIECUOWU ZHONGXINBIANYIYIXIAJIUHAOLE)

    利来w66国际平台 5.SHIYONGdllKU, DAIMARUXIA

    利来w66国际平台 XUYAOXIANZAI.build.csZHONGPEIZHI

     PublicDelayLoadDLLs.Add(dll目录 + dll文件名);
     RuntimeDependencies.Add(new RuntimeDependency(dll目录 + dll文件名));

    RUGUOGAIdllYOUYILAIDEdll XUYAOJIANGYILAIDEdllFANGZAI binariesPath XIANGYINGDEPINGTAIXIA BINGDIAOYONGSHANGMIANDEDAIMAJIAZAIJINLAI

    利来w66国际平台 6.dllDIAOYONG

    利来w66国际平台 DIAOYONGDEFANGFARUXIA:

    LIRUHUOQUSHUJUSHOUTAOSHUJUDEdllHANSHUYUANXING bool GetData(unsigned short *data)

    ZEDIAOYONGDAIMAZHONG

    typedef int(*AddFunc)(unsigned short *data);
    AddFunc tempFunc;

    void* pDllHandler = FPlatformProcess::GetDllHandle(*dllLUJING);

    if (pDllHandler)
    {
    FString funcName = "GetData";
    tempFunc = (AddFunc)FPlatformProcess::GetDllExport(pDllHandler, *funcName);
    check(tempFunc);
    unsigned short tempdata[19];

    int c = tempFunc(tempdata);
    }

    ps:RUGUOpcSHANGYUNXINGZHENGCHANG DABAOCHULAIBUHAOYONG YUANYINSHICHAJIANDE.upluginZHONG typeSHUXING GAICHENGRuntimeJIUHAOLE KENGLEWOBANTIAN

    利来w66国际平台  ps: .SHIYONGdllSHIDELUJINGYUbuild.csZHONGDELUJINGBIXUXIANGTONG FOUZEeditorMOSHIXIAMEIWENTI FABUCHENGXUJIUHUIZHAOBUDAOdll