fairygui / FairyGUI-unreal

A flexible UI framework for Unreal Engine

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GWindow 的CreateWindow名字会和windos api冲突

mingxxming opened this issue · comments

static UGWindow* CreateWindow(const FString& PackageName, const FString& ResourceName, UObject* WorldContextObject);
这个函数。
如果在引用了一些用到winapi的库(我用到的是raknet),这个函数会导致编译错误。我将其改名CreateGWindow可以解决

commented

CreateWindow不是全局的,它的用法是UGWindow::CreateWindow,这都冲突?

1>C:\Projects\evh\UE\Plugins\FairyGUI\Source\FairyGUI\Public\UI/GWindow.h(24): error C4003: 类函数宏的调用“CreateWindowW”参数不足
1>C:\Projects\evh\UE\Plugins\FairyGUI\Source\FairyGUI\Public\UI/GWindow.h(24): error C2059: 语法错误:“常数”

我也没弄明白,这是编译错误,报错的名称还是CreateWindowW,不过改函数名是解决了。有知道的可以帮忙解释一下