简体   繁体   中英

Can't call functions from Vfw.h inside Unreal Engine

Sorry in advance if this question is too specific to Unreal Engine, but after 6 months of working, this is the last piece that I need to complete, and I have become desperate.

After creating an Unreal Engine C++ base project, added some .h and .cpp files with VS class wizard, I can't use functions like AVIFileInit and other similar ones, even though I have included Vfw.h and put it inside AllowWindowsPlatformTypes.h and HideWindowsPlatformTypes.h. All I get is error LNK2019: unresolved external symbol AVIFileInit referenced . What I want to do is experiment in Unreal Engine based on the article Various methods for capturing the screen .

I have tried to put all the code into a separate VS project and building it as a static library, and then linking it to the Unreal Engine project. All is fine, but when I try to build the project, it generates a list of LNK2001 errors, all of which involve functions like AVIFileInit , AVIFileExit , ...

Note: I am using version 4.6.1

Any help and tip would be much appreciated.

您应该从项目属性 -> 链接器 -> 输入 -> 其他依赖项将Vfw32.lib添加到项目中。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM