Winsock2 and ImageList?!?!

  • Thread starter Thread starter Steffo
  • Start date Start date
S

Steffo

Hi I seem to experience a problem when including "Winsock2.h" in my Windows
Forms application. I can't insert any images to an imagelist. I get the
following error:

: error C2039: 'GetObjectA' : is not a member of
'System::Resources::ResourceManager'
stdafx.cpp(0) : see declaration of 'System::Resources::ResourceManager'

and the line it complains at looks like this:
this->imageList1->ImageStream =
(__try_cast<System::Windows::Forms::ImageListStreamer *
(resources->GetObject(S"imageList1.ImageStream")));

If I remove the "Winsock2.h" it works fine.

Steffo
 
Steffo said:
Hi I seem to experience a problem when including "Winsock2.h" in my
Windows Forms application. I can't insert any images to an imagelist.
I get the following error:

: error C2039: 'GetObjectA' : is not a member of
'System::Resources::ResourceManager'
stdafx.cpp(0) : see declaration of
'System::Resources::ResourceManager'


add the following after the include file:

#undef GetObject


--
Greetings
Jochen

Do you need a memory-leak finder ?
http://www.codeproject.com/tools/leakfinder.asp
 
Back
Top