joblemar
July 31st, 2003, 05:05 AM
Hello.
I'm a beginner in working with Managed C++ and I have a question.
I have read that it's possible to mix managed and unmanaged code in the same application, and I have been testing this.
I have created a simple Windows Form application and do some little things.
Then I have tryed to use a class that's its written in unmanaged C++ that make some things with CStrings.
After I have compiled this file ( I only added some includes to make it work ) I tried to use some functions of this class in my form file.
So when I added the include to this class, and build the application some error messages appear like this:
" error C2039: 'GetObjectA' : is not a member of 'System::Resources::ResourceManager'
stdafx.cpp(0) : see declaration of 'System::Resources::ResourceManager' "
In the error line the code that the Visual Studio wizard wrote it's this :
"this->imageList1->ImageStream = (__try_cast(resources->GetObject(S"imageList1.ImageStream")));"
As you can see there is not GetObjetA call, instead its GetObject.
Any idea ? Thanks.
I'm a beginner in working with Managed C++ and I have a question.
I have read that it's possible to mix managed and unmanaged code in the same application, and I have been testing this.
I have created a simple Windows Form application and do some little things.
Then I have tryed to use a class that's its written in unmanaged C++ that make some things with CStrings.
After I have compiled this file ( I only added some includes to make it work ) I tried to use some functions of this class in my form file.
So when I added the include to this class, and build the application some error messages appear like this:
" error C2039: 'GetObjectA' : is not a member of 'System::Resources::ResourceManager'
stdafx.cpp(0) : see declaration of 'System::Resources::ResourceManager' "
In the error line the code that the Visual Studio wizard wrote it's this :
"this->imageList1->ImageStream = (__try_cast(resources->GetObject(S"imageList1.ImageStream")));"
As you can see there is not GetObjetA call, instead its GetObject.
Any idea ? Thanks.