|
|
|
|
Forum
Please
Log In
to post a new message or reply to an existing one. If you are not registered, please
register.
NOTE: Some forums may be read-only if you are not currently subscribed to
our technical support services.
Subject |
Author |
Date |
|
matt brown
|
Jun 18, 2009 - 1:01 PM
|
Hi, I just added included Prof-UIS.h and now getting the above mentioned error message. Is CCommand a class used in Prof-uis? Thanks
|
|
matt brown
|
Jun 20, 2009 - 6:42 AM
|
Still getting: error C2872: ’CCommand’ : ambiguous symbol I tried another approach. I added a CCommand class to one of your sample projects class CCommand
{
public:
CCommand() {}
~CCommand() {}
};
static bool g_bSplashWndClassRegistered = false;
CSplashWnd::CSplashWnd(
CWnd * pWndParent,
UINT nBitmapID
)
: m_nMaxTextLines( -1 )
, m_nLineHeight( -1 )
, m_clrText( RGB(255,255,255) )
, m_rcText( 0, 0, 0, 0 )
{
CCommand c;
VERIFY( RegisterSplashWndClass() );
VERIFY( Create( pWndParent, nBitmapID ) );
} Got the error message: --------------------Configuration: ProfUIS_Controls - Win32 Unicode Debug--------------------
Compiling...
MainDlg.cpp
C:\Program Files\FOSS Software Inc\Prof-UIS trial\Samples\ProfUIS_Controls\MainDlg.cpp(47) : error C2872: ’CCommand’ : ambiguous symbol
Error executing cl.exe.
ProfUIS_Controls-ud.exe - 1 error(s), 0 warning(s) I’m using VC++ 6 / SP6
|
|
Technical Support
|
Jun 21, 2009 - 12:34 PM
|
The CCommand class is present in the OLE DB template library:
http://msdn.microsoft.com/en-us/library/yfte190h(VS.80).aspx
Prof-UIS has no classes with such name. If you are using Visual C++ 6.0 and some newer Platform SDK is installed, then the OLE DB templates are available and can be included into your project via other ATL/MFC header files.
In any case, only Microsoft allows itself to call classes using such simple names like CCommand . You should use something like CMyCommand .
|
|
matt brown
|
Jun 19, 2009 - 2:11 PM
|
OK, I’ll try that - thanks for info
|
|
Technical Support
|
Jun 19, 2009 - 2:10 PM
|
No, there is no such class in Prof-UIS. Besides, we have just compiled Prof-UIS with all the Visual C++ versions starting from 6.0 and up to 2010 and we have not encountered this conflict. Please check the include folders list in your Visual Studio settings. The standard includes must be at the top. Any newer Platform SDK and/or DirectX SDK must be at the bottom.
|
|