Click here to Skip to main content
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 20: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
0 Sergey Alexandrovich Kryukov 485
1 BillWoodruff 330
2 OriginalGriff 310
3 Shweta N Mishra 244
4 Mathew Soji 225
0 OriginalGriff 6,153
1 Sergey Alexandrovich Kryukov 5,758
2 DamithSL 4,958
3 Manas Bhardwaj 4,539
4 Maciej Los 3,735


Advertise | Privacy | Mobile
Web04 | 2.8.1411019.1 | Last Updated 20 Oct 2011
Copyright © CodeProject, 1999-2014
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