Questions et réponses de la communauté

Bienvenue sur le forum de questions et réponses d'Audiokinetic, propulsé par la communauté. C'est l'endroit où les utilisateurs de Wwise et Strata s'entraident. Pour obtenir une aide directe de notre équipe, veuillez utiliser la page « Tickets de soutien ». Pour signaler un bug, utilisez l'option Bug Report dans l'Audiokinetic Launcher. (Veuillez noter que les rapports de bug soumis au forum questions-réponses seront rejetés. L'utilisation de notre système de rapport de bug dédié garantit que votre rapport est vu par les bonnes personnes et a les meilleures chances d'être corrigé.)

Pour obtenir rapidement les meilleures réponses, suivez ces conseils lorsque vous posez une question :

  • Soyez précis : qu'essayez-vous de réaliser ou quel est le problème spécifique que vous rencontrez ?
  • Pensez à inclure les détails importants : incluez des détails tels que les versions de Wwise et du moteur de jeu, le système d'exploitation, etc.
  • Expliquez ce que vous avez essayé de faire : indiquez aux autres les mesures que vous avez déjà prises pour essayer de résoudre le problème.
  • Concentrez-vous sur les faits : décrivez les aspects techniques de votre problème. Se concentrer sur le problème aide les autres personnes à trouver rapidement une solution.

0 votes

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

dans General Discussion par Anantha G. (200 points)
edité par Anantha G.

1 Réponse

+1 vote
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"!
par Samuel L. (Audiokinetic) (23.6k points)
edité par Samuel L. (Audiokinetic)
Awesome - able to build now, thanks Samuel!
...