regarding [callback] attribute of MIDL that is used in RPC.
C / C++ / MFC
1
Posts
1
Posters
0
Views
1
Watching
-
Hello, [1]Using explict handle / local rpc(naclrpc) for rpc implementation. [2]Following function is declared in inferface ".idl" file. [callback] void DisplayString([in, string] unsigned char *psz); The function is declared on client side as void DisplayString( /* [in] */ handle_t IDL_handle, /* [string][in] */ unsigned char *psz ) { ::MessageBox(NULL, (char*)psz, (char*)psz, MB_OK); } [3]Problem is server is calling the callback function DisplayString() and the function is getting called on client side but the "psz" paramter is not showing the value that the server is passing while calling DisplayString() function. [4]Please put some light on the above issue. Thanks.