List:MySQL++« Previous MessageNext Message »
From:Efstratios Gavves Date:August 30 2007 6:20am
Subject:Windows Form Application - MySQL problem
View as plain text  
Hi.

I tried to develop a Windows Form Application using mysql++. At first,  
there was no problem. I followed the instructions as described in the  
Readme files and it did compiled at the start. There was no error.  
Suddenly, after having three different forms, it produced multiple  
errors.

These errors where:

C:\Program Files\Microsoft Visual Studio  
8\VC\PlatformSDK\include\objidl.h(7408) : error C2872: 'IDataObject' :  
ambiguous symbol
1>        could be 'C:\Program Files\Microsoft Visual Studio  
8\VC\PlatformSDK\include\objidl.h(246) :  
System::Windows::Forms::IDataObject IDataObject'
1>        or  
'c:\windows\microsoft.net\framework\v2.0.50727\system.windows.forms.dll :  
System::Windows::Forms::IDataObject'
1>C:\Program Files\Microsoft Visual Studio  
8\VC\PlatformSDK\include\objidl.h(7408) : error C3699: '*' : cannot  
use this indirection on type 'IDataObject'
1>        compiler replacing '*' with '^' to continue parsing
1>C:\Program Files\Microsoft Visual Studio  
8\VC\PlatformSDK\include\objidl.h(7422) : error C2371: 'IDataObject' :  
redefinition; different basic types
1>        C:\Program Files\Microsoft Visual Studio  
8\VC\PlatformSDK\include\objidl.h(246) : see declaration of  
'IDataObject'
1>C:\Program Files\Microsoft Visual Studio  
8\VC\PlatformSDK\include\objidl.h(7583) : error C2872: 'IDataObject' :  
ambiguous symbol
1>        could be 'C:\Program Files\Microsoft Visual Studio  
8\VC\PlatformSDK\include\objidl.h(7422) : IDataObject'
1>        or  
'c:\windows\microsoft.net\framework\v2.0.50727\system.windows.forms.dll :  
System::Windows::Forms::IDataObject'
1>C:\Program Files\Microsoft Visual Studio  
8\VC\PlatformSDK\include\objidl.h(7596) : error C2872: 'IDataObject' :  
ambiguous symbol
1>        could be 'C:\Program Files\Microsoft Visual Studio  
8\VC\PlatformSDK\include\objidl.h(7422) : IDataObject'
1>        or  
'c:\windows\microsoft.net\framework\v2.0.50727\system.windows.forms.dll :  
System::Windows::Forms::IDataObject'
1>C:\Program Files\Microsoft Visual Studio  
8\VC\PlatformSDK\include\objidl.h(7609) : error C2872: 'IDataObject' :  
ambiguous symbol
1>        could be 'C:\Program Files\Microsoft Visual Studio  
8\VC\PlatformSDK\include\objidl.h(7422) : IDataObject'
1>        or  
'c:\windows\microsoft.net\framework\v2.0.50727\system.windows.forms.dll :  
System::Windows::Forms::IDataObject'
1>C:\Program Files\Microsoft Visual Studio  
8\VC\PlatformSDK\include\objidl.h(7621) : error C2872: 'IDataObject' :  
ambiguous symbol
1>        could be 'C:\Program Files\Microsoft Visual Studio  
8\VC\PlatformSDK\include\objidl.h(7422) : IDataObject'
1>        or  
'c:\windows\microsoft.net\framework\v2.0.50727\system.windows.forms.dll :  
System::Windows::Forms::IDataObject'
1>C:\Program Files\Microsoft Visual Studio  
8\VC\PlatformSDK\include\objidl.h(7634) : error C2872: 'IDataObject' :  
ambiguous symbol
1>        could be 'C:\Program Files\Microsoft Visual Studio  
8\VC\PlatformSDK\include\objidl.h(7422) : IDataObject'
1>        or  
'c:\windows\microsoft.net\framework\v2.0.50727\system.windows.forms.dll :  
System::Windows::Forms::IDataObject'
1>C:\Program Files\Microsoft Visual Studio  
8\VC\PlatformSDK\include\objidl.h(7648) : error C2872: 'IDataObject' :  
ambiguous symbol
1>        could be 'C:\Program Files\Microsoft Visual Studio  
8\VC\PlatformSDK\include\objidl.h(7422) : IDataObject'
1>        or  
'c:\windows\microsoft.net\framework\v2.0.50727\system.windows.forms.dll :  
System::Windows::Forms::IDataObject'
1>C:\Program Files\Microsoft Visual Studio  
8\VC\PlatformSDK\include\objidl.h(7661) : error C2872: 'IDataObject' :  
ambiguous symbol
1>        could be 'C:\Program Files\Microsoft Visual Studio  
8\VC\PlatformSDK\include\objidl.h(7422) : IDataObject'
1>        or  
'c:\windows\microsoft.net\framework\v2.0.50727\system.windows.forms.dll :  
System::Windows::Forms::IDataObject'
1>C:\Program Files\Microsoft Visual Studio  
8\VC\PlatformSDK\include\objidl.h(7676) : error C2872: 'IDataObject' :  
ambiguous symbol
1>        could be 'C:\Program Files\Microsoft Visual Studio  
8\VC\PlatformSDK\include\objidl.h(7422) : IDataObject'
1>        or  
'c:\windows\microsoft.net\framework\v2.0.50727\system.windows.forms.dll :  
System::Windows::Forms::IDataObject'
1>C:\Program Files\Microsoft Visual Studio  
8\VC\PlatformSDK\include\objidl.h(7688) : error C2872: 'IDataObject' :  
ambiguous symbol
1>        could be 'C:\Program Files\Microsoft Visual Studio  
8\VC\PlatformSDK\include\objidl.h(7422) : IDataObject'
1>        or  
'c:\windows\microsoft.net\framework\v2.0.50727\system.windows.forms.dll :  
System::Windows::Forms::IDataObject'
1>C:\Program Files\Microsoft Visual Studio  
8\VC\PlatformSDK\include\objidl.h(7721) : error C2872: 'IDataObject' :  
ambiguous symbol
1>        could be 'C:\Program Files\Microsoft Visual Studio  
8\VC\PlatformSDK\include\objidl.h(7422) : IDataObject'
1>        or  
'c:\windows\microsoft.net\framework\v2.0.50727\system.windows.forms.dll :  
System::Windows::Forms::IDataObject'
1>C:\Program Files\Microsoft Visual Studio  
8\VC\PlatformSDK\include\objidl.h(7734) : error C2872: 'IDataObject' :  
ambiguous symbol
1>        could be 'C:\Program Files\Microsoft Visual Studio  
8\VC\PlatformSDK\include\objidl.h(7422) : IDataObject'
1>        or  
'c:\windows\microsoft.net\framework\v2.0.50727\system.windows.forms.dll :  
System::Windows::Forms::IDataObject'
1>C:\Program Files\Microsoft Visual Studio  
8\VC\PlatformSDK\include\objidl.h(7823) : error C2872: 'IDataObject' :  
ambiguous symbol
1>        could be 'C:\Program Files\Microsoft Visual Studio  
8\VC\PlatformSDK\include\objidl.h(7422) : IDataObject'
1>        or  
'c:\windows\microsoft.net\framework\v2.0.50727\system.windows.forms.dll :  
System::Windows::Forms::IDataObject'
1>C:\Program Files\Microsoft Visual Studio  
8\VC\PlatformSDK\include\objidl.h(7863) : error C2872: 'IDataObject' :  
ambiguous symbol
1>        could be 'C:\Program Files\Microsoft Visual Studio  
8\VC\PlatformSDK\include\objidl.h(7422) : IDataObject'
1>        or  
'c:\windows\microsoft.net\framework\v2.0.50727\system.windows.forms.dll :  
System::Windows::Forms::IDataObject'
1>C:\Program Files\Microsoft Visual Studio  
8\VC\PlatformSDK\include\objidl.h(7885) : error C2872:  
'IMessageFilter' : ambiguous symbol
1>        could be 'C:\Program Files\Microsoft Visual Studio  
8\VC\PlatformSDK\include\objidl.h(258) :  
System::Windows::Forms::IMessageFilter IMessageFilter'
1>        or  
'c:\windows\microsoft.net\framework\v2.0.50727\system.windows.forms.dll :  
System::Windows::Forms::IMessageFilter'
1>C:\Program Files\Microsoft Visual Studio  
8\VC\PlatformSDK\include\objidl.h(7885) : error C3699: '*' : cannot  
use this indirection on type 'IMessageFilter'
1>        compiler replacing '*' with '^' to continue parsing
1>C:\Program Files\Microsoft Visual Studio  
8\VC\PlatformSDK\include\objidl.h(7931) : error C2371:  
'IMessageFilter' : redefinition; different basic types
1>        C:\Program Files\Microsoft Visual Studio  
8\VC\PlatformSDK\include\objidl.h(258) : see declaration of  
'IMessageFilter'
1>C:\Program Files\Microsoft Visual Studio  
8\VC\PlatformSDK\include\objidl.h(8028) : error C2872:  
'IMessageFilter' : ambiguous symbol
1>        could be 'C:\Program Files\Microsoft Visual Studio  
8\VC\PlatformSDK\include\objidl.h(7931) : IMessageFilter'
1>        or  
'c:\windows\microsoft.net\framework\v2.0.50727\system.windows.forms.dll :  
System::Windows::Forms::IMessageFilter'
1>C:\Program Files\Microsoft Visual Studio  
8\VC\PlatformSDK\include\objidl.h(8043) : error C2872:  
'IMessageFilter' : ambiguous symbol
1>        could be 'C:\Program Files\Microsoft Visual Studio  
8\VC\PlatformSDK\include\objidl.h(7931) : IMessageFilter'
1>        or  
'c:\windows\microsoft.net\framework\v2.0.50727\system.windows.forms.dll :  
System::Windows::Forms::IMessageFilter'
1>C:\Program Files\Microsoft Visual Studio  
8\VC\PlatformSDK\include\objidl.h(8057) : error C2872:  
'IMessageFilter' : ambiguous symbol
1>        could be 'C:\Program Files\Microsoft Visual Studio  
8\VC\PlatformSDK\include\objidl.h(7931) : IMessageFilter'
1>        or  
'c:\windows\microsoft.net\framework\v2.0.50727\system.windows.forms.dll :  
System::Windows::Forms::IMessageFilter'
1>C:\Program Files\Microsoft Visual Studio  
8\VC\PlatformSDK\include\objidl.h(16030) : error C2872: 'IDataObject'  
: ambiguous symbol
1>        could be 'C:\Program Files\Microsoft Visual Studio  
8\VC\PlatformSDK\include\objidl.h(7422) : IDataObject'
1>        or  
'c:\windows\microsoft.net\framework\v2.0.50727\system.windows.forms.dll :  
System::Windows::Forms::IDataObject'
1>C:\Program Files\Microsoft Visual Studio  
8\VC\PlatformSDK\include\objidl.h(16036) : error C2872: 'IDataObject'  
: ambiguous symbol
1>        could be 'C:\Program Files\Microsoft Visual Studio  
8\VC\PlatformSDK\include\objidl.h(7422) : IDataObject'
1>        or  
'c:\windows\microsoft.net\framework\v2.0.50727\system.windows.forms.dll :  
System::Windows::Forms::IDataObject'
1>C:\Program Files\Microsoft Visual Studio  
8\VC\PlatformSDK\include\objidl.h(16041) : error C2872: 'IDataObject'  
: ambiguous symbol
1>        could be 'C:\Program Files\Microsoft Visual Studio  
8\VC\PlatformSDK\include\objidl.h(7422) : IDataObject'
1>        or  
'c:\windows\microsoft.net\framework\v2.0.50727\system.windows.forms.dll :  
System::Windows::Forms::IDataObject'
1>C:\Program Files\Microsoft Visual Studio  
8\VC\PlatformSDK\include\objidl.h(16047) : error C2872: 'IDataObject'  
: ambiguous symbol
1>        could be 'C:\Program Files\Microsoft Visual Studio  
8\VC\PlatformSDK\include\objidl.h(7422) : IDataObject'
1>        or  
'c:\windows\microsoft.net\framework\v2.0.50727\system.windows.forms.dll :  
System::Windows::Forms::IDataObject'
1>C:\Program Files\Microsoft Visual Studio  
8\VC\PlatformSDK\include\objidl.h(16052) : error C2872: 'IDataObject'  
: ambiguous symbol
1>        could be 'C:\Program Files\Microsoft Visual Studio  
8\VC\PlatformSDK\include\objidl.h(7422) : IDataObject'
1>        or  
'c:\windows\microsoft.net\framework\v2.0.50727\system.windows.forms.dll :  
System::Windows::Forms::IDataObject'
1>C:\Program Files\Microsoft Visual Studio  
8\VC\PlatformSDK\include\objidl.h(16059) : error C2872: 'IDataObject'  
: ambiguous symbol
1>        could be 'C:\Program Files\Microsoft Visual Studio  
8\VC\PlatformSDK\include\objidl.h(7422) : IDataObject'
1>        or  
'c:\windows\microsoft.net\framework\v2.0.50727\system.windows.forms.dll :  
System::Windows::Forms::IDataObject'
1>c:\program files\microsoft visual studio  
8\vc\platformsdk\include\oleidl.h(435) : error C2872: 'IDataObject' :  
ambiguous symbol
1>        could be 'C:\Program Files\Microsoft Visual Studio  
8\VC\PlatformSDK\include\objidl.h(7422) : IDataObject'
1>        or  
'c:\windows\microsoft.net\framework\v2.0.50727\system.windows.forms.dll :  
System::Windows::Forms::IDataObject'
1>c:\program files\microsoft visual studio  
8\vc\platformsdk\include\oleidl.h(570) : error C2872: 'IDataObject' :  
ambiguous symbol
1>        could be 'C:\Program Files\Microsoft Visual Studio  
8\VC\PlatformSDK\include\objidl.h(7422) : IDataObject'
1>        or  
'c:\windows\microsoft.net\framework\v2.0.50727\system.windows.forms.dll :  
System::Windows::Forms::IDataObject'
1>c:\program files\microsoft visual studio  
8\vc\platformsdk\include\oleidl.h(1416) : error C2872: 'IDataObject' :  
ambiguous symbol
1>        could be 'C:\Program Files\Microsoft Visual Studio  
8\VC\PlatformSDK\include\objidl.h(7422) : IDataObject'
1>        or  
'c:\windows\microsoft.net\framework\v2.0.50727\system.windows.forms.dll :  
System::Windows::Forms::IDataObject'
1>c:\program files\microsoft visual studio  
8\vc\platformsdk\include\oleidl.h(1422) : error C2872: 'IDataObject' :  
ambiguous symbol
1>        could be 'C:\Program Files\Microsoft Visual Studio  
8\VC\PlatformSDK\include\objidl.h(7422) : IDataObject'
1>        or  
'c:\windows\microsoft.net\framework\v2.0.50727\system.windows.forms.dll :  
System::Windows::Forms::IDataObject'
1>c:\program files\microsoft visual studio  
8\vc\platformsdk\include\oleidl.h(1760) : error C2872: 'IDataObject' :  
ambiguous symbol
1>        could be 'C:\Program Files\Microsoft Visual Studio  
8\VC\PlatformSDK\include\objidl.h(7422) : IDataObject'
1>        or  
'c:\windows\microsoft.net\framework\v2.0.50727\system.windows.forms.dll :  
System::Windows::Forms::IDataObject'
1>c:\program files\microsoft visual studio  
8\vc\platformsdk\include\oleidl.h(1775) : error C2872: 'IDataObject' :  
ambiguous symbol
1>        could be 'C:\Program Files\Microsoft Visual Studio  
8\VC\PlatformSDK\include\objidl.h(7422) : IDataObject'
1>        or  
'c:\windows\microsoft.net\framework\v2.0.50727\system.windows.forms.dll :  
System::Windows::Forms::IDataObject'
1>c:\program files\microsoft visual studio  
8\vc\platformsdk\include\oleidl.h(4408) : error C2872: 'IDropTarget' :  
ambiguous symbol
1>        could be 'c:\program files\microsoft visual studio  
8\vc\platformsdk\include\oleidl.h(168) :  
System::Windows::Forms::IDropTarget IDropTarget'
1>        or  
'c:\windows\microsoft.net\framework\v2.0.50727\system.windows.forms.dll :  
System::Windows::Forms::IDropTarget'
1>c:\program files\microsoft visual studio  
8\vc\platformsdk\include\oleidl.h(4408) : error C3699: '*' : cannot  
use this indirection on type 'IDropTarget'
1>        compiler replacing '*' with '^' to continue parsing
1>c:\program files\microsoft visual studio  
8\vc\platformsdk\include\oleidl.h(4448) : error C2371: 'IDropTarget' :  
redefinition; different basic types
1>        c:\program files\microsoft visual studio  
8\vc\platformsdk\include\oleidl.h(168) : see declaration of  
'IDropTarget'
1>c:\program files\microsoft visual studio  
8\vc\platformsdk\include\oleidl.h(4452) : error C2872: 'IDataObject' :  
ambiguous symbol
1>        could be 'C:\Program Files\Microsoft Visual Studio  
8\VC\PlatformSDK\include\objidl.h(7422) : IDataObject'
1>        or  
'c:\windows\microsoft.net\framework\v2.0.50727\system.windows.forms.dll :  
System::Windows::Forms::IDataObject'
1>c:\program files\microsoft visual studio  
8\vc\platformsdk\include\oleidl.h(4465) : error C2872: 'IDataObject' :  
ambiguous symbol
1>        could be 'C:\Program Files\Microsoft Visual Studio  
8\VC\PlatformSDK\include\objidl.h(7422) : IDataObject'
1>        or  
'c:\windows\microsoft.net\framework\v2.0.50727\system.windows.forms.dll :  
System::Windows::Forms::IDataObject'
1>c:\program files\microsoft visual studio  
8\vc\platformsdk\include\oleidl.h(4555) : error C2872: 'IDropTarget' :  
ambiguous symbol
1>        could be 'c:\program files\microsoft visual studio  
8\vc\platformsdk\include\oleidl.h(4448) : IDropTarget'
1>        or  
'c:\windows\microsoft.net\framework\v2.0.50727\system.windows.forms.dll :  
System::Windows::Forms::IDropTarget'
1>c:\program files\microsoft visual studio  
8\vc\platformsdk\include\oleidl.h(4556) : error C2872: 'IDataObject' :  
ambiguous symbol
1>        could be 'C:\Program Files\Microsoft Visual Studio  
8\VC\PlatformSDK\include\objidl.h(7422) : IDataObject'
1>        or  
'c:\windows\microsoft.net\framework\v2.0.50727\system.windows.forms.dll :  
System::Windows::Forms::IDataObject'
1>c:\program files\microsoft visual studio  
8\vc\platformsdk\include\oleidl.h(4570) : error C2872: 'IDropTarget' :  
ambiguous symbol
1>        could be 'c:\program files\microsoft visual studio  
8\vc\platformsdk\include\oleidl.h(4448) : IDropTarget'
1>        or  
'c:\windows\microsoft.net\framework\v2.0.50727\system.windows.forms.dll :  
System::Windows::Forms::IDropTarget'
1>c:\program files\microsoft visual studio  
8\vc\platformsdk\include\oleidl.h(4584) : error C2872: 'IDropTarget' :  
ambiguous symbol
1>        could be 'c:\program files\microsoft visual studio  
8\vc\platformsdk\include\oleidl.h(4448) : IDropTarget'
1>        or  
'c:\windows\microsoft.net\framework\v2.0.50727\system.windows.forms.dll :  
System::Windows::Forms::IDropTarget'
1>c:\program files\microsoft visual studio  
8\vc\platformsdk\include\oleidl.h(4595) : error C2872: 'IDropTarget' :  
ambiguous symbol
1>        could be 'c:\program files\microsoft visual studio  
8\vc\platformsdk\include\oleidl.h(4448) : IDropTarget'
1>        or  
'c:\windows\microsoft.net\framework\v2.0.50727\system.windows.forms.dll :  
System::Windows::Forms::IDropTarget'
1>c:\program files\microsoft visual studio  
8\vc\platformsdk\include\oleidl.h(4596) : error C2872: 'IDataObject' :  
ambiguous symbol
1>        could be 'C:\Program Files\Microsoft Visual Studio  
8\VC\PlatformSDK\include\objidl.h(7422) : IDataObject'
1>        or  
'c:\windows\microsoft.net\framework\v2.0.50727\system.windows.forms.dll :  
System::Windows::Forms::IDataObject'
1>c:\program files\microsoft visual studio  
8\vc\platformsdk\include\servprov.h(93) : error C2872:  
'IServiceProvider' : ambiguous symbol
1>        could be 'c:\program files\microsoft visual studio  
8\vc\platformsdk\include\servprov.h(48) : System::IServiceProvider  
IServiceProvider'
1>        or  
'c:\windows\microsoft.net\framework\v2.0.50727\mscorlib.dll :  
System::IServiceProvider'
1>c:\program files\microsoft visual studio  
8\vc\platformsdk\include\servprov.h(93) : error C3699: '*' : cannot  
use this indirection on type 'IServiceProvider'
1>        compiler replacing '*' with '^' to continue parsing
1>c:\program files\microsoft visual studio  
8\vc\platformsdk\include\servprov.h(100) : error C2371:  
'IServiceProvider' : redefinition; different basic types
1>        c:\program files\microsoft visual studio  
8\vc\platformsdk\include\servprov.h(48) : see declaration of  
'IServiceProvider'
1>c:\program files\microsoft visual studio  
8\vc\platformsdk\include\servprov.h(117) : error C2872:  
'IServiceProvider' : ambiguous symbol
1>        could be 'c:\program files\microsoft visual studio  
8\vc\platformsdk\include\servprov.h(100) : IServiceProvider'
1>        or  
'c:\windows\microsoft.net\framework\v2.0.50727\mscorlib.dll :  
System::IServiceProvider'
1>c:\program files\microsoft visual studio  
8\vc\platformsdk\include\servprov.h(231) : error C2872:  
'IServiceProvider' : ambiguous symbol
1>        could be 'c:\program files\microsoft visual studio  
8\vc\platformsdk\include\servprov.h(100) : IServiceProvider'
1>        or  
'c:\windows\microsoft.net\framework\v2.0.50727\mscorlib.dll :  
System::IServiceProvider'
1>c:\program files\microsoft visual studio  
8\vc\platformsdk\include\servprov.h(238) : error C2872:  
'IServiceProvider' : ambiguous symbol
1>        could be 'c:\program files\microsoft visual studio  
8\vc\platformsdk\include\servprov.h(100) : IServiceProvider'
1>        or  
'c:\windows\microsoft.net\framework\v2.0.50727\mscorlib.dll :  
System::IServiceProvider'
1>C:\Program Files\Microsoft Visual Studio  
8\VC\PlatformSDK\include\urlmon.h(5174) : error C2872:  
'IServiceProvider' : ambiguous symbol
1>        could be 'c:\program files\microsoft visual studio  
8\vc\platformsdk\include\servprov.h(100) : IServiceProvider'
1>        or  
'c:\windows\microsoft.net\framework\v2.0.50727\mscorlib.dll :  
System::IServiceProvider'
1>C:\Program Files\Microsoft Visual Studio  
8\VC\PlatformSDK\include\urlmon.h(5176) : error C2872:  
'IServiceProvider' : ambiguous symbol
1>        could be 'c:\program files\microsoft visual studio  
8\vc\platformsdk\include\servprov.h(100) : IServiceProvider'
1>        or  
'c:\windows\microsoft.net\framework\v2.0.50727\mscorlib.dll :  
System::IServiceProvider'





Do you know whats going on?
Stratis


Thread
Windows Form Application - MySQL problemEfstratios Gavves30 Aug
  • Re: Windows Form Application - MySQL problemWarren Young30 Aug
    • Re: Windows Form Application - MySQL problemEfstratios Gavves31 Aug
      • Re: Windows Form Application - MySQL problemWarren Young4 Sep
        • Re: Windows Form Application - MySQL problemEfstratios Gavves4 Sep