Click here to Skip to main content
13,046,176 members (59,435 online)
Rate this:
Please Sign up or sign in to vote.
See more:
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 19:34pm
SAKryukov 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
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web01 | 2.8.170713.1 | Last Updated 20 Oct 2011
Copyright © CodeProject, 1999-2017
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