Board index » cppbuilder » Error in sysvari.h (Part II)

Error in sysvari.h (Part II)

Hello everyone,

I've posted a message some days ago concerning an error compiling
sysvari.h.

After some 'research' I've located the problem and I want to let others
give there comments ;-)

The error I get is a result from the following code :

  AnsiString intemplate="offertetemplate.doc";
  ....
  app=CreateOleObject("Word.Application");
  app.OleProcedure("ChangeFileDirectory",offertedir);
  ....

The message is :
[C++ Error] sysvari.h(1227): E2451 Undefined symbol 'TAutoArgs'.
[C++ Error] sysvari.h(1227): E2451 Undefined symbol 'args'.
[C++ Error] sysvari.h(1229): E2285 Could not find a match for
'Variant::OleProcedure(const AnsiString,undefined)'.

This code compiled without problems with BCB3 by the way.....

When I change the code to :

  AnsiString intemplate="offertetemplate.doc";
  ....
  app=CreateOleObject("Word.Application");
  app.Exec(Procedure("ChangeFileDirectory") << offertedir);
  ....
I get no errors ......

It seems that using the Variant.OleProcedure, Variant.OleFunction,
Variant.OleGetProperty and Variant.OleSetProperty with parameters
generates the compiler error.

Is this a bug (in the sysvari.h file ) ?????

Please comment on this. If it is a bug I can report this to Inprise...

I'm running in NT4.0 (spack5) with BCB 4 (with the two patches)....

Thanks in advance....

Edwin Dirkzwager
CIP

 

Re:Error in sysvari.h (Part II)


: Edwin Dirkzwager <I...@CIPSoft.nl> wrote:

Quote
>Is this a bug (in the sysvari.h file ) ?????

Did you #include <utilcls.h> instead of sysvari.h?

Quote
>Please comment on this.

I did, but no reply from you.

--
General information:
  * Post to the right group - http://www.borland.com/newsgroups/
    * Do not cross- or multipost
      * Research at http://www.mers.com/searchsite.html

Stefan Hoffmeister - http://www.econos.de/
(TeamB - http://www.teamb.com/)

Re:Error in sysvari.h (Part II)


Hello Stefan

Quote
> Did you #include <utilcls.h> instead of sysvari.h?

I've just tried it... every works fine now ;-D

Quote
> I did, but no reply from you.

I'm sorry.... can you forgive me ?

I'm working under some time pressure right now... this has to work by
friday.....

Thanks to you the problem is solved ... THANKS !

Edwin Dirkzwager
CIP

Quote
"Stefan Hoffmeister (TeamB)" wrote:

> : Edwin Dirkzwager <I...@CIPSoft.nl> wrote:

> >Is this a bug (in the sysvari.h file ) ?????

> Did you #include <utilcls.h> instead of sysvari.h?

> >Please comment on this.

> I did, but no reply from you.

> --
> General information:
>   * Post to the right group - http://www.borland.com/newsgroups/
>     * Do not cross- or multipost
>       * Research at http://www.mers.com/searchsite.html

> Stefan Hoffmeister - http://www.econos.de/
> (TeamB - http://www.teamb.com/)

Other Threads