コミュニティQ&A

Audiokineticのコミュニティ主導のQ&Aフォーラムへようこそ。ここはWwiseとStrataのユーザのみなさまがお互いに協力し合う場です。弊社チームによる直接のサポートをご希望の場合はサポートチケットページをご利用ください。バグを報告するには、Audiokinetic LauncherのBug Reportオプションをご利用ください。(Q&AフォーラムではBug Reportを受け付けておりませんのでご注意ください。専用のBug Reportシステムをご利用いただくことで、バグの報告が適切な担当部門に届き、修正される可能性が高まります。)

最適な回答を迅速に得られるよう、ご質問を投稿される際は以下のヒントをご参考ください。

  • 具体的に示す:何を達成したいのか、またはどんな問題に直面しているのかを具体的に示してください。
  • 重要な詳細情報を含める:Wwiseとゲームエンジンのバージョンやご利用のOSなど詳細情報を記載してください。
  • 試したことを説明する:すでに試してみたトラブルシューティングの手順を教えてください。
  • 事実に焦点を当てる:問題の技術的な事実を記載してください。問題に焦点を当てることで、ほかのユーザのみなさまが解決策を迅速に見つけやすくなります。

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

Anantha G. (200 ポイント) General Discussion
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!
...