Click here to Skip to main content
11,568,522 members (48,067 online)
Rate this: bad
good
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 19:34pm
Comments
SAKryukov at 19-Oct-11 2:13am
   
Nothing is tagged: platform, language, other relevant detail. How can you hope for useful answer?
--SA
Rate this: bad
good
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.
   uuid(00000001-EAF3-4A7A-A0F2-BCE4C30DA77E),
 
   // This is version 1.0 of this interface.
   version(1.0)
]
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 ?
  Permalink  
Rate this: bad
good
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 );
  Permalink  

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

  Print Answers RSS


Advertise | Privacy | Mobile
Web04 | 2.8.150624.2 | 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