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

**URL:** <https://forums.unrealengine.com/t/i-cannot-import-mediasoundcomponent-h-help-me/762657>\
**Category:** C++\
**Tags:** UE-5, unreal-engine, CPP, question\
**Created:** [February 3, 2023, 5:55am UTC](https://forums.unrealengine.com/t/i-cannot-import-mediasoundcomponent-h-help-me/762657 "2023-02-03T05:55:13Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![WheelletBurger](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@WheelletBurger](https://forums.unrealengine.com/u/WheelletBurger)\
**Post date:** [February 7, 2023, 12:06am UTC](https://forums.unrealengine.com/t/i-cannot-import-mediasoundcomponent-h-help-me/762657/4 "2023-02-07T00:06:20Z")

</div>

> [@UTexture::UpdateResource() overwrote by winbase.h #define](https://forums.unrealengine.com/t/utexture-updateresource-overwrote-by-winbase-h-define/399580):
>
> There’s lots of nasty things in winbase that uses the preprocessor to define a reference to either the W (wide character) or A (ASCII character) version of windows functions, based on whether you have the wide character compilation flag raised. I’ve not come across this exact issue, but if you simply need a resolution, include winbase.h in your precompiled header file, then #undef UpdateResource.

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.

---

_[View the full topic](https://forums.unrealengine.com/t/i-cannot-import-mediasoundcomponent-h-help-me/762657)._
