Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. regarding [callback] attribute of MIDL that is used in RPC.

regarding [callback] attribute of MIDL that is used in RPC.

Scheduled Pinned Locked Moved C / C++ / MFC
helpsysadmin
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Sameerkumar Namdeo
    wrote on last edited by
    #1

    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.

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups