Compiler error from setting icon

T

TGF

Hello,

When I attempt to set the icon property on a Windows form (.NET), when I
go to compile, I get the following error....

e:\Projects\MyApp\AboutForm.h(108): error C2039: 'GetObjectA' : is not a
member of 'System::Resources::ResourceManager'

....Does anyone know why this happens, and the way to correct it....I looked
up the function member "GetObject", and it is a valid member function. Note
that this error occurs in the InitializeComponent() function where the VS
code generator says not to edit it. So what gives?
 
W

Wiktor Zychla

...Does anyone know why this happens, and the way to correct it....I
looked
up the function member "GetObject", and it is a valid member function. Note
that this error occurs in the InitializeComponent() function where the VS
code generator says not to edit it. So what gives?

although VS says to not to touch the code, it is sometimes inevitable to do
so.
regards, W.Z.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top