i cannot import "MediaSoundComponent.h" help me :(

Hi there :blush:. I have some problem.
I’m having a hard time solving a problem.
I tried to add and play “MediaSoundComponent.h” in cpp, but I received the following error code.

1>C:\Program Files\Epic Games\UE_5.0\Engine\Source\Runtime\AudioMixer\Public\Quartz\AudioMixerQuantizedCommands.h(31): error C2838: ‘PlaySoundW’: illegal qualified name in member declaration
1>C:\Program Files\Epic Games\UE_5.0\Engine\Source\Runtime\AudioMixer\Public\Quartz\AudioMixerQuantizedCommands.h(31): error C2440: ‘return’: cannot convert from ‘BOOL (__cdecl *) (LPCWSTR,HMODULE,DWORD)’ to ‘EQuartzCommandType’
1>C:\Program Files\Epic Games\UE_5.0\Engine\Source\Runtime\AudioMixer\Public\Quartz\AudioMixerQuantizedCommands.h(31): note: There is no context in which this conversion is possible

I’m doing my best to find the cause of the error, but it’s unclear what it’s conflicting with.
An external plugin is fetching the OPENCV-4.5.5 dll with CUDA added via CMAKE. Is this the problem?
Or is there any other solution? Help :joy:!

Have you included the MediaAssets module in the Build.cs ?

Yes I am already importing.

I noticed I didn’t share all the information in the question. I’m not sure that this workaround is a definitive solution. But it worked, so I applied it once.

For those who run into this error later, like I did:

You need to add #include "Windows/MinWindows.h" anywhere before the header that causes your errors!