# UTexture::UpdateResource() overwrote by winbase.h #define

**URL:** <https://forums.unrealengine.com/t/utexture-updateresource-overwrote-by-winbase-h-define/399580>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine\
**Created:** [July 2, 2017, 9:07pm UTC](https://forums.unrealengine.com/t/utexture-updateresource-overwrote-by-winbase-h-define/399580 "2017-07-02T21:07:22Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![CrimsonHawk](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@CrimsonHawk](https://forums.unrealengine.com/u/CrimsonHawk)\
**Post date:** [August 12, 2024, 6:17am UTC](https://forums.unrealengine.com/t/utexture-updateresource-overwrote-by-winbase-h-define/399580/4 "2024-08-12T06:17:35Z")

</div>

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!

It works for any similar type of Windows-redefine-errors

---

_[View the full topic](https://forums.unrealengine.com/t/utexture-updateresource-overwrote-by-winbase-h-define/399580)._
