🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.migration
Article #221

Re: EOleSysError Exception with Invalid Argument Type

#221
From: Stew
Date: Tue, 20 Nov 2007 15:51
15 lines
1369 bytes
Fritz wrote:
> Hello,
> 
> I'm just migrating from BCB5 to BCB6. When I compile and run 
> applications that use OLE automization (MS Word or MS Excel), I get an 
> EOleSysError Exception when opening a document or a worksheet, telling 
> that an invalid argument type is used. In both cases, the arguments are 
> AnsiStrings

Use a WideString instead;

WideString slDocument = 
"e:\\Programme\\Borland\\CBuilder5\\Projects\\worda\\tweaksnq.doc";

Stewart
Technical Details
Message-ID: <47430283$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.germany.com!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <474018c1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 110f51,c92abc47d500c713
X-Google-Attributes: gid110f51,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
Date: Tue, 20 Nov 2007 15:51:32 +0000
From: Stew <big_stew@talk21.com>
User-Agent: Thunderbird 1.5.0.13 (Windows/20070809)
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.migration
Subject: Re: EOleSysError Exception with Invalid Argument Type
References: <474018c1@newsgroups.borland.com>
In-Reply-To: <474018c1@newsgroups.borland.com>
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 193.238.164.245
Message-ID: <47430283$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1195573891 193.238.164.245 (20 Nov 2007 07:51:31 -0700)
Lines: 16
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.germany.com!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail