D
dbwNick
I have some classes written in C# that work fine from Managed C++ and
Visual Basic .NET in all areas except for operator overloading (+, -,
*). I fully understand that I need to offer a secondary method for
Visual Basic to use as it does not support operator overloading.
However I would expect it to work in C++
Instead I get the following error on compilation:
E:\C#>CL democpp.cpp /clr
Microsoft (R) C/C++ Standard Compiler Version 13.00.9466 for .NET
Framework
Copyright (C) Microsoft Corporation 1984-2001. All rights reserved.
democpp.cpp
democpp.cpp(21) : error C2296: '*' : illegal, left operand has type
'Modules::cModule_256K __gc *'
democpp.cpp(21) : error C2297: '*' : illegal, right operand has type
'Modules::cModule_256K __gc *'
I reference the C# DLLs with these lines:
#using <encModules.dll>
using namespace Modules;
Any help on this subject much appreciated!
Nick
Visual Basic .NET in all areas except for operator overloading (+, -,
*). I fully understand that I need to offer a secondary method for
Visual Basic to use as it does not support operator overloading.
However I would expect it to work in C++
Instead I get the following error on compilation:
E:\C#>CL democpp.cpp /clr
Microsoft (R) C/C++ Standard Compiler Version 13.00.9466 for .NET
Framework
Copyright (C) Microsoft Corporation 1984-2001. All rights reserved.
democpp.cpp
democpp.cpp(21) : error C2296: '*' : illegal, left operand has type
'Modules::cModule_256K __gc *'
democpp.cpp(21) : error C2297: '*' : illegal, right operand has type
'Modules::cModule_256K __gc *'
I reference the C# DLLs with these lines:
#using <encModules.dll>
using namespace Modules;
Any help on this subject much appreciated!
Nick