Article View: borland.public.cppbuilder.database.multi-tier
Article #746How to transfer an array via Midas
From: Eric Favre
Date: Wed, 15 Nov 2000 00:00
Date: Wed, 15 Nov 2000 00:00
21 lines
1057 bytes
1057 bytes
Hello, I'm trying to develop a simple Midas function that returns an array of strings to the client. Using the TLB interface in the C++Builder 5, I've created a simple function prototyped like this: STDMETHODIMP MidasImpl::foo(TVariant *array /*out*/, int *array_size / *out*/); My questions are: - On the server side, how do I build a TVariant that countains an array of N strings (the value of N will be returned to the caller via the array_size parameter)? - Then, how do I recover the string array on the client side? I would prefer an help in C++ rather than in Delphi. Thanks for your help. Eric
Technical Details
Message-ID:
<8FED61B79ericfavredsivillegec@207.105.83.62>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fcd2b,f99b702419d704ac,start X-Google-Attributes: gidfcd2b,public From: eric.favre@dsi.ville-ge.ch (Eric Favre) Subject: How to transfer an array via Midas Date: 2000/11/15 Message-ID: <8FED61B79ericfavredsivillegec@207.105.83.62> X-Deja-AN: 693835269 Organization: DSI User-Agent: Xnews/03.08.28 Newsgroups: borland.public.cppbuilder.database.multi-tier