R
rodri rodri via DotNetMonster.com
I have done a program with windows forms in "Visual C++". I have implemented a function that returns two values. For example:
double functionExample(int parameter, [Out] double __gc* result2);
And in a header file, I have written this line:
using namespace System::Runtime::InteropServices;
This line is necessary for [Out] key word. But when compiling the project, I get this error:
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\WinBase.h(3140): error C2872: 'FILETIME' : ambiguous symbol could be 'C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\WinDef.h(354) : _FILETIME FILETIME' or 'stdafx.cpp(0) : System::Runtime::InteropServices::FILETIME'
How can I solve it? Thanks.
double functionExample(int parameter, [Out] double __gc* result2);
And in a header file, I have written this line:
using namespace System::Runtime::InteropServices;
This line is necessary for [Out] key word. But when compiling the project, I get this error:
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\WinBase.h(3140): error C2872: 'FILETIME' : ambiguous symbol could be 'C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\WinDef.h(354) : _FILETIME FILETIME' or 'stdafx.cpp(0) : System::Runtime::InteropServices::FILETIME'
How can I solve it? Thanks.