menu
 

在 Audiokinetic 社区问答论坛上,用户可对 Wwise 和 Strata 相关问题进行提问和解答。如需从 Audiokinetic 技术支持团队获取答复,请务必使用技术支持申请单页面。

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!
...