Mattias,
In the header file where the problem occurs, I have no <windows.h>
included, or any other header file for that matter. I do however, have the
following namespaces included...
using namespace System;
using namespace System::Threading;
using namespace System::ComponentModel;
using namespace System::Collections;
using namespace System::Windows::Forms;
using namespace System::Data;
using namespace System::Drawing;
using namespace System::IO;
using namespace System::Resources;
using namespace Microsoft::Win32;
using namespace System::Collections::Specialized;
-TGF
"Mattias Sjögren" <ma********************@mvps.org> wrote in message
news:uw**************@TK2MSFTNGP12.phx.gbl...
...Does anyone know why this happens,
Because GetObject is #defined to GetObjectA in WinGDI.h, so the
preprocessor replaces your call to ResourceManager::GetObject with
ResourceManager::GetObjectA.
and the way to correct it....
You can #undef the GetObject macro, or if possible avoid to #include
Windows.h altogether.
Mattias
--
Mattias Sjögren [MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/
Please reply only to the newsgroup.