🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.cppbuilder.database.multi-tier
1 messages
1 total messages Started by Alex Wed, 14 Jul 1999 00:00
Can't transfer array to server
#1645
Author: Alex
Date: Wed, 14 Jul 1999 00:00
40 lines
1818 bytes
Best wishes for All!

See such piece of code:
Variant varCodes = VarArrayCreate(OPENARRAY(int,(0,1)),varVariant);
  varCodes.PutElement("220510900",0);
  varCodes.PutElement("417",1);
.......
  HRESULT z =
itfNSIDisp.get_ByIndex(WideString("DELSTAKC"),WideString("KODTOV"),
WideString("ST_L,OPER"),VARIANT(varCodes),WideString("DELSTTOV"));

The problem is so:
when I recieve my varCodes on server it is not array!
It worked before, but now it refuses.

The type of parametre on server is TVariant(not Variant, it's the caprise of
TLB editor). Tvariant have no methods of Variant, so I need to transfer
varCodes like VARIANT(varCodes), and do on server
varCodevalues = VARIANT(avarCodes)
 or
 varCodevalues = avarCodes.GetBaseVariant();

Without such tricks I receive during translation a lot of "ambiguity between
TVariantT<...> Tvariant & ... and TVariantT<...> System::Variant  &".
Before installation of Update pack #1 I can do

Tvariant  a = VarArrayOf(varCodes,1);
now I can only
Variant a = VarArrayOf(varCodes,1) if I don't wish to receive "ambiguity
between";

Why exists Tvariant? I can manually change in _TLB.h, _TLB.cpp and impl
files TVariant to Variant and compiler admits it, but when I do any change
in TLB, it restores TVariant.

But with TVariant or Variant I can't receive array on server.

HELP!

Alex.
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads