This document was generated from CDN thread
Created by: Camelia Suciu on 29-10-2009 03:28:37 PM
I'm using Visual Studio 2003 and the CTIOS 7.1 C++ SDK.
I'm getting a compile error: 'CSyncObject' class type redefinition in SyncObject.h.
The CSyncObject type is also defined in afxmt.h.
Any idea how to resolve this conflict?
Many thanks.
Subject: RE: New Message from Camelia Suciu in Computer Telephony Integration Object
Replied by: David Lender on 29-10-2009 06:14:26 PM
is your project configured to "Use MFC in a shared dll"?
Subject: RE: New Message from Camelia Suciu in Computer Telephony Integration Object
Replied by: Camelia Suciu on 30-10-2009 09:43:31 AM
Hi David,
My application is a Win32 dialog based application using MFC in a shared DLL.
The conflict is caused by including other header files in my projects that include afxmt.h, where CSyncObject type is also defined. I need to include those header files, so I guess I will have to find a work around.
I think it is really unfortunate for some of the Cisco types to have the same name as the MFC types, as surely developers are very likely to use MFC.
Any suggestions?
Thanks.