Article View: borland.public.cppbuilder.internationalization
Article #200UNICODE and COM
From: user
Date: Thu, 19 Oct 2006 07:04
Date: Thu, 19 Oct 2006 07:04
26 lines
1546 bytes
1546 bytes
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
Technical Details
Message-ID:
<45372372@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx01.iad01.newshosting.com!newshosting.com!198.186.190.250.MISMATCH!transit3.readnews.com!news-out.readnews.com!newspeer1.nwr.nac.net!newsfeed.freenet.de!feeder.news-service.com!194.25.134.62.MISMATCH!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 10297d,a0e044d7e9c247ed,start X-Google-Attributes: gid10297d,public X-Google-Language: ENGLISH,ASCII-7-bit Date: Thu, 19 Oct 2006 17:04:18 +1000 From: user@domain.invalid User-Agent: Thunderbird 1.5.0.7 (Windows/20060909) MIME-Version: 1.0 Newsgroups: borland.public.cppbuilder.internationalization Subject: UNICODE and COM Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 202.164.198.171 Message-ID: <45372372@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1161241458 202.164.198.171 (19 Oct 2006 00:04:18 -0700) Lines: 30 Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx01.iad01.newshosting.com!newshosting.com!198.186.190.250.MISMATCH!transit3.readnews.com!news-out.readnews.com!newspeer1.nwr.nac.net!newsfeed.freenet.de!feeder.news-service.com!194.25.134.62.MISMATCH!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail