Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GWindow 的CreateWindow名字会和windos api冲突 #19

Open
mingxxming opened this issue Jun 4, 2021 · 2 comments
Open

GWindow 的CreateWindow名字会和windos api冲突 #19

mingxxming opened this issue Jun 4, 2021 · 2 comments

Comments

@mingxxming
Copy link
Contributor

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

@xiaoguzhu
Copy link
Member

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

@mingxxming
Copy link
Contributor Author

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,不过改函数名是解决了。有知道的可以帮忙解释一下

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants