Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

UNICODE and COM

5 views
Skip to first unread message

us...@domain.invalid

unread,
Oct 19, 2006, 3:04:18 AM10/19/06
to
Hello,

I'm using C++ BCB 6 and also BDS 2006 and trying to make a Unicode COM
object.

File New Application
Properties, Define _UNICODE
File New COM Object
Save everything

When I compile I get error "Cannot convert char* to const wchar_t*" at
these lines in the ...Impl.h file.

DECLARE_PROGID("UniCom.UniCom");
DECLARE_DESCRIPTION("");

I've tried making the text long
DECLARE_PROGID(L"UniCom.UniCom");
but then it fails in UpdateRegistry(BOOL bRegister).

Any ideas?


thanks

Roland


0 new messages