Professional UI Solutions
Site Map   /  Register
 
 

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.

Forums » Prof-UIS Tech Support » occimpl.h(35) : error C2011: 'IDataSourceListener' Collapse All
Subject Author Date
Brian Horn Feb 21, 2007 - 2:40 PM



We are getting a following error. did any one know why is this coming?

Automatically linking with Prof-UIS library: ProfUIS262u.lib
(Professional User Interface Suite)
Prof-UIS native unicode character type support:
disabled (symbol __EXT_MFC_ENABLE_TEMPLATED_CHARS is not defined)
c:\Program_Files\Microsoft_Visual_Studio_.NET_2003\Vc7\atlmfc\src\mfc\occimpl.h(35) : error C2011: ’IDataSourceListener’ : ’struct’ type redefinition
c:\Program_Files\Microsoft_Visual_Studio_.NET_2003\Vc7\atlmfc\src\mfc\occimpl.h(35) : see declaration of ’IDataSourceListener’
c:\Program_Files\Microsoft_Visual_Studio_.NET_2003\Vc7\atlmfc\src\mfc\occimpl.h(43) : error C2011: ’IDataSource’ : ’struct’ type redefinition
c:\Program_Files\Microsoft_Visual_Studio_.NET_2003\Vc7\atlmfc\src\mfc\occimpl.h(43) : see declaration of ’IDataSource’
c:\Program_Files\Microsoft_Visual_Studio_.NET_2003\Vc7\atlmfc\src\mfc\occimpl.h(59) : error C2011: ’CDataSourceControl’ : ’class’ type redefinition
c:\Program_Files\Microsoft_Visual_Studio_.NET_2003\Vc7\atlmfc\src\mfc\occimpl.h(59) : see declaration of ’CDataSourceControl’
c:\Program_Files\Microsoft_Visual_Studio_.NET_2003\Vc7\atlmfc\src\mfc\occimpl.h(111) : error C2011: ’CDataBoundProperty’ : ’class’ type redefinition
c:\Program_Files\Microsoft_Visual_Studio_.NET_2003\Vc7\atlmfc\src\mfc\occimpl.h(111) : see declaration of ’CDataBoundProperty’
f:\seelan\Prof-UIS\Include\ExtColorDlg.h(86) : fatal error C1903: unable to recover from previous error(s); stopping compilation

Brian Horn Mar 12, 2007 - 7:25 PM


here is my StdAfx.h


// stdafx.h : include file for standard system include files,
// or project specific include files that are used frequently, but
// are changed infrequently
//

#if !defined(AFX_STDAFX_H__117DAA7D_792C_11D2_A69F_0008C7B2F515__INCLUDED_)
#define AFX_STDAFX_H__117DAA7D_792C_11D2_A69F_0008C7B2F515__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#define VC_EXTRALEAN        // Exclude rarely-used stuff from Windows headers

#include <afxwin.h> // MFC core and standard components
#include <afxext.h> // MFC extensions

//RIBBONBAR SN - ONLY BELOW LINE
#ifdef PROF_UIS
    #include <prof-uis.h>
    #include <../ProfSkin/ProfSkin.h>
#endif

#include <afxole.h> // MFC OLE classes
#include <afxodlgs.h> // MFC OLE dialog classes
#include <afxdisp.h> // MFC Automation classes
#include <afxctl.h>            // MFC OLE Control Support
#include <afxdocob.h>

#ifndef _AFX_NO_DB_SUPPORT
#include <afxdb.h>            // MFC ODBC database classes
#endif // _AFX_NO_DB_SUPPORT

#ifndef _AFX_NO_DAO_SUPPORT
#include <afxdao.h>            // MFC DAO database classes
#endif // _AFX_NO_DAO_SUPPORT

#include <afxdtctl.h>        // MFC support for Internet Explorer 4 Common Controls
#ifndef _AFX_NO_AFXCMN_SUPPORT
#include <afxcmn.h>            // MFC support for Windows Common Controls
#endif // _AFX_NO_AFXCMN_SUPPORT

#include <afxsock.h>        // MFC socket extensions

#include "toolkit/secall.h"
#include "toolkit/ActvHost/constants.h"

#define _ATL_APARTMENT_THREADED
#include <atlbase.h>
//You may derive a class from CComModule and use it if you want to override
//something, but do not change the name of _Module
class CMAppModule : public CComModule
{
public:
    LONG Unlock();
    LONG Lock();
    DWORD dwThreadID;
};
extern CMAppModule _Module;
#include <atlcom.h>
#include <comdef.h>


#ifdef RB_INITGUID
    #include <initguid.h>        // Have to be included, for DEFINE_GUID mechanism to work
#endif


// Setting/resetting of resource handle
#ifdef MODULE_INSTANCE
    #undef MODULE_INSTANCE
#endif
#define MODULE_INSTANCE AfxGetInstanceHandle( ) // Instance handle of the application
#include "CommonMacros.h"

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#define TBD(name) AfxMessageBox (_T(#name))

#endif // !defined(AFX_STDAFX_H__117DAA7D_792C_11D2_A69F_0008C7B2F515__INCLUDED_)

Technical Support Mar 13, 2007 - 8:14 AM

It is of little help to have the content of StdAfx.h here. Haven’t you checked if a newer SDK and/or DDK is installed as we suggested?

Technical Support Feb 22, 2007 - 10:48 AM

Please also check if a newer SDK and/or DDK is installed on your computer. Please check the Include folder list in your Visual Studio settings. Make sure that the Platform SDK paths are at the bottom of the list and default Visual C++ folders are above them. If this does not help, let us take a look at the content of your StdAfx.h file.

Suhai Gyorgy Feb 22, 2007 - 2:52 AM

Just a guess, which might not be what you need: There’s an article Compatibility with Built-In Unicode Character Type. It’s a quite long article, it tells a lot of things, but also this: both ProfUIS lib and your application has to have the same project setting for "Treat w_char as Built-in type". So check this in your case.