返回首页

您好

任何一个可以告诉我,我怎么可以从服务器返回值或结果通过使用RPC客户端。

感谢在前进。

回答

评论会员:Vivek_Mendse 时间:2012/02/06
对不起我的错

我使用Windows XP专业版与Visual Studio 2010专业
我使用VC开发应用。

这是我使用IDL文件

// 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);

 

}
我不能在ptrx获得返回值,任何建议
评论会员:游客 时间:2012/02/06
|问题解决了吗?Vivek_Mendse:这里是新的IDL变化{C}