G
Guest
Hi,
I need define a global COM object in a VC++8 project. But when I compile it,
I get a error message:
error C3145:'ComLibC1': global or static variable may not have managed type
MYCOMLib::Class1^ (MYCOMLib is a COM Wrapper built in VC++6).
My code looks like this:
namespace MyApp
{
(some global variables)
MYCOMLib::Class1^ ComLibC1;
...
public ref class MainForm : public System::Windows::Forms::Form
{
public:
MainForm(void)
{
...
Anybody can help me to solve this problem?
Thanks,
Minfu
I need define a global COM object in a VC++8 project. But when I compile it,
I get a error message:
error C3145:'ComLibC1': global or static variable may not have managed type
MYCOMLib::Class1^ (MYCOMLib is a COM Wrapper built in VC++6).
My code looks like this:
namespace MyApp
{
(some global variables)
MYCOMLib::Class1^ ComLibC1;
...
public ref class MainForm : public System::Windows::Forms::Form
{
public:
MainForm(void)
{
...
Anybody can help me to solve this problem?
Thanks,
Minfu