R
Rick
Error 2 error C2872: 'IDataObject' : ambiguous symbol C:\Archivos de
programa\Microsoft Visual Studio 8\VC\PlatformSDK\include\objidl.h 7408
this is the error i got by mix managed and unmanaged code
all i do to get this is this
#include "frmUsrPass.h" //this is managed code, no problem
#include "client.cpp" // this is unmanaged code
#include "\utils\utils.h" // this too
#pragma once
namespace SknrF {
using namespace System;
using namespace System::ComponentModel;
using namespace System::Collections;
using namespace System::Windows::Forms;
using namespace System:ata;
using namespace System:ata::SqlClient;
using namespace System:rawing;
using namespace System::Net;
using namespace System::Net::NetworkInformation;
.....
}
if i put between /* */ client and utils, i can compile the project, but if
not i got the error, i googled and find just this as possible solution
Move all 'using namespace XXXX' from .h to .cpp
http://www.daniweb.com/techtalkforums/showthread.php?p=152302
but it doesn't works, and this
Both the .NET Windows Forms and COM define an IDataObject interface that are
distinct. You should fully qualify this interface. If you mean to use the
...NET "version" of the IDataObject interface, use
System::Windows::Forms::IDataObject.
at http://www.dotnet247.com/247reference/msgs/43/218228.aspx
but how can i select just one IDataObject?? what setting is this??
Thanks!!!
programa\Microsoft Visual Studio 8\VC\PlatformSDK\include\objidl.h 7408
this is the error i got by mix managed and unmanaged code
all i do to get this is this
#include "frmUsrPass.h" //this is managed code, no problem
#include "client.cpp" // this is unmanaged code
#include "\utils\utils.h" // this too
#pragma once
namespace SknrF {
using namespace System;
using namespace System::ComponentModel;
using namespace System::Collections;
using namespace System::Windows::Forms;
using namespace System:ata;
using namespace System:ata::SqlClient;
using namespace System:rawing;
using namespace System::Net;
using namespace System::Net::NetworkInformation;
.....
}
if i put between /* */ client and utils, i can compile the project, but if
not i got the error, i googled and find just this as possible solution
Move all 'using namespace XXXX' from .h to .cpp
http://www.daniweb.com/techtalkforums/showthread.php?p=152302
but it doesn't works, and this
Both the .NET Windows Forms and COM define an IDataObject interface that are
distinct. You should fully qualify this interface. If you mean to use the
...NET "version" of the IDataObject interface, use
System::Windows::Forms::IDataObject.
at http://www.dotnet247.com/247reference/msgs/43/218228.aspx
but how can i select just one IDataObject?? what setting is this??
Thanks!!!