• Advertisement
Sign in to follow this  

[.net] System::Resources::ResourceManager::GetObject

This topic is 4742 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I've just started writing an editor in MC++ in Visual Studio .Net 2005 (based on the Windows Forms Application), and I've got a little problem. The app compiles perfectly until I include windows.h (which is needed by my engine). The compiler stops recognizing the System::Resources::ResourceManager::GetObject method as soon as I include windows.h and gives the following error :- error C2039: 'GetObjectW' : is not a member of 'System::Resources::ResourceManager' stdafx.cpp : see declaration of 'System::Resources::ResourceManager' But most of the other (if not all) methods are recognized. It's quite strange. Is there any way I can rectify this? Thanks in advance.

Share this post


Link to post
Share on other sites
Advertisement
OK, I found the solution. I just have to use "#undef GetObject" after "#include <windows.h>".

Share this post


Link to post
Share on other sites
Quote:
Original post by poly-gone
OK, I found the solution. I just have to use "#undef GetObject" after "#include <windows.h>".

Macros are nice, are they not? ;)

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement