社区问答

欢迎来到 Audiokinetic 社区问答论坛。在此,Wwise 和 Strata 用户可互帮互助。如需我们团队直接提供协助,请前往技术支持申请单页面。若要报告问题,请在 Audiokinetic Launcher 中选择“报告错误”选项(注意,问答论坛并不会接收错误报告)。我们内部设有专门的错误报告系统,会有专人查看报告并设法解决问题。

要想尽快得到满意的解答,请在提问时注意以下几点:

  • 描述尽量具体:比如,想达到什么样的目的,或者具体哪里有问题。
  • 包含关键细节:比如,Wwise 和游戏引擎版本以及所用操作系统等等。
  • 阐明所做努力:阐明自己为了排除故障都采取了哪些措施。
  • 聚焦问题本身:聚焦于问题本身的相关技术细节,以便别人可以快速找到解决方案。

0 投票

Hey,
I've been following the Wwise up on Air and One minute videos on creating an Authoring plugin. I'm able to create the plugin using wp.py and build for debugging as well as premake for Authoring, but when building the Authoring plugin I get this error - 

C:\Wwise\SDK\include\AK\Wwise\Plugin\PluginMFCWindows.h(44,10): fatal error C1083: Cannot open include file: 'afxwin.h'
: No such file or directory (compiling source file TestGainPlugin.cpp) [C:\Users\Anantha\TestGain\WwisePlugin\TestGain_
Authoring_Windows_vc160.vcxproj]
C:\Wwise\SDK\include\AK\Wwise\Plugin\PluginMFCWindows.h(44,10): fatal error C1083: Cannot open include file: 'afxwin.h'
: No such file or directory (compiling source file Win32\TestGainPluginGUI.cpp) [C:\Users\Anantha\TestGain\WwisePlugin\
TestGain_Authoring_Windows_vc160.vcxproj]

 

Just for context, I'm on a virtual machine running windows11 (ARM) and using VS 2019 with Wwise 2022. Any ideas on what I need to be doing differently to not hit this error? 

Any help would be appreciated.

Thanks

分类:General Discussion | 用户: Anantha G. (200 分)
修改于 用户:Anantha G.

1个回答

+1 投票
afxwin.h is a header file part of the MFC library, which is why it is included by the PluginMFCWindows interface. You will need to install the MFC libraries from the Visual Studio installer to use it. You can also not use MFC and implement the WindowProc using the Win32 C API.

Fun side-story: according to the Wikipedia page, AFX (for Application Framework Extensions) was the original name of the MFC framework, but it was too late to change all the headers by the time they decided on the MFC name. This is also why the PCH (pre-compiled header) for MFC projects is called "stdafx.h"!
用户: Samuel L. (Audiokinetic) (23.6k 分)
修改于 用户:Samuel L. (Audiokinetic)
Awesome - able to build now, thanks Samuel!
...