Click here to Skip to main content
Rate this: bad
Please Sign up or sign in to vote.
See more: Networking
Hi all
can any one tell me how i can return value or result from server back to client by using rpc.
thanks in advance.
Posted 18-Oct-11 20:34pm
SAKryukov at 19-Oct-11 2:13am
Nothing is tagged: platform, language, other relevant detail. How can you hope for useful answer?
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

sorry my mistake
i am using windows XP professional with visual studio 2010 professional
i am using vc++ for developing application.
this is IDL file i use
// File Example1.idl
   // A unique identifier that distinguishes this interface from other interfaces.
   // This is version 1.0 of this interface.
interface Example1 // The interface is named Example1
   // A function that takes a zero-terminated string.
   void Output(
      [in, string] const char* szOutput);
   void Output2([out,retval] char *ptrx);

i can not obtain return value in ptrx , any suggestion ?
Rate this: bad
Please Sign up or sign in to vote.

Solution 2

problem solved
here is new IDL with changes
void Output(
      [in, string] unsigned char* szOutput,[out,retval,size_is(100)] unsigned char *ptrx);
   void get_file(
        [in,out] long *total , [in,out] long *pack , [out,retval,size_is(5000)] unsigned char* data );

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 300
1 Peter Leow 180
2 ProgramFOX 145
3 DamithSL 140
4 Zoltán Zörgő 130
0 OriginalGriff 160
1 ProgramFOX 105
2 Sergey Alexandrovich Kryukov 60
3 Mehdi Gholam 50
4 DamithSL 50

Advertise | Privacy | Mobile
Web03 | 2.8.150224.1 | Last Updated 20 Oct 2011
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100