Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
Exchange
2000.active.directory
2000.admin
2000.announcements
2000.app.conversion
2000.applications
2000.clients
2000.clustering
2000.connectivity
2000.development
2000.documentation
2000.general
2000.information.store
2000.interop
2000.kms
2000.misc
2000.protocols
2000.realtime.collabo.
2000.setup
2000.transport
2000.win2000
admin
application.conversion
applications
clients
clustering
connectivity
design
development
misc
mobility
setup
tools
  
 
date: Thu, 23 Feb 2006 16:38:27 +0100,    group: microsoft.public.exchange2000.development        back       


CPlusPlus Event Sink and cdoex.dll import problem with wchar_t as built-in   
Hi All!

I am trying to compile under VC++ (VS 2003) the event sink which imports:
#import "dll\cdoex.dll" no_namespace rename("Folder","CDOFolder"), named_guids

I have to enable wchar_t as built-in type for my UNICODE project compilation.

The cdoex.tlh which is generated by compiler contains all cdo declarations in 
this way:
....
const BSTR cdoBusy = (unsigned short*) L"Busy";
const BSTR cdoFree = (unsigned short*) L"Free";
....

This is the reason I get this error message on every const declaration:
error C2440: 'initializing' : cannot convert from 'unsigned short *' to
'const BSTR'
I can't import from cdoex.dll for UNICODE. How to resolve it?
How to use cdoex.dll in import for UNICODE project with wchar_t ?
date: Thu, 23 Feb 2006 16:38:27 +0100   author:   tester er

Re: CPlusPlus Event Sink and cdoex.dll import problem with wchar_t as built-in   
Hi, I have the exact same proble but with fxscomex.dll it gives me line
const BSTR bstrGROUPNAME_ALLDEVICES = (unsigned short*) L"<All
Devices>";
I read that if you remove the compiling directory (debug or release)
and you recompile it should resolve the problem but it didn't work for
me.

did you find the answer ?
Michel St-Louis
tester wrote:
> Hi All!
>
> I am trying to compile under VC++ (VS 2003) the event sink which imports:
> #import "dll\cdoex.dll" no_namespace rename("Folder","CDOFolder"), named_guids
>
> I have to enable wchar_t as built-in type for my UNICODE project compilation.
>
> The cdoex.tlh which is generated by compiler contains all cdo declarations in
> this way:
> ...
> const BSTR cdoBusy = (unsigned short*) L"Busy";
> const BSTR cdoFree = (unsigned short*) L"Free";
> ...
>
> This is the reason I get this error message on every const declaration:
> error C2440: 'initializing' : cannot convert from 'unsigned short *' to
> 'const BSTR'
> I can't import from cdoex.dll for UNICODE. How to resolve it?
> How to use cdoex.dll in import for UNICODE project with wchar_t ?
date: 28 Feb 2006 05:44:02 -0800   author:   michelst

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us