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. COM
  4. Com Exe server

Com Exe server

Scheduled Pinned Locked Moved COM
csharpvisual-studiocomsysadminhelp
5 Posts 3 Posters 5 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.
  • A Offline
    A Offline
    ashish8patil
    wrote on last edited by
    #1

    Hello All, I am very new to com and reading it from Internet. I was making Exe server and client (both are exe). I able to do that also in Visual studio 2008. If I call class function of exe server from client i am able to do it also. NOW My Problem is ,

    STDMETHODIMP CDcomClass::GetIntVal(LONG* val)
    {
    // TODO: Add your implementation code here

    LONG i=105;
    \*val=i;
    
    printf("\\n  HI I am from Exe Server  \\n");
    
    Beep(800,800);
    

    return S_OK;
    }

    In this code I get val in client ,Beep() also run,but printf("\n HI.... is not executed . Can You please explain me reason. Thank you.

    K A 2 Replies Last reply
    0
    • A ashish8patil

      Hello All, I am very new to com and reading it from Internet. I was making Exe server and client (both are exe). I able to do that also in Visual studio 2008. If I call class function of exe server from client i am able to do it also. NOW My Problem is ,

      STDMETHODIMP CDcomClass::GetIntVal(LONG* val)
      {
      // TODO: Add your implementation code here

      LONG i=105;
      \*val=i;
      
      printf("\\n  HI I am from Exe Server  \\n");
      
      Beep(800,800);
      

      return S_OK;
      }

      In this code I get val in client ,Beep() also run,but printf("\n HI.... is not executed . Can You please explain me reason. Thank you.

      K Offline
      K Offline
      KingsGambit
      wrote on last edited by
      #2

      Exe server is an out proc server. So, your client cannot see what is printed by the server exe.

      A 1 Reply Last reply
      0
      • K KingsGambit

        Exe server is an out proc server. So, your client cannot see what is printed by the server exe.

        A Offline
        A Offline
        ashish8patil
        wrote on last edited by
        #3

        Thanks ,But I want to show this msg to server what should I do

        K 1 Reply Last reply
        0
        • A ashish8patil

          Thanks ,But I want to show this msg to server what should I do

          K Offline
          K Offline
          KingsGambit
          wrote on last edited by
          #4

          May be you can check if a log file would work for you.

          1 Reply Last reply
          0
          • A ashish8patil

            Hello All, I am very new to com and reading it from Internet. I was making Exe server and client (both are exe). I able to do that also in Visual studio 2008. If I call class function of exe server from client i am able to do it also. NOW My Problem is ,

            STDMETHODIMP CDcomClass::GetIntVal(LONG* val)
            {
            // TODO: Add your implementation code here

            LONG i=105;
            \*val=i;
            
            printf("\\n  HI I am from Exe Server  \\n");
            
            Beep(800,800);
            

            return S_OK;
            }

            In this code I get val in client ,Beep() also run,but printf("\n HI.... is not executed . Can You please explain me reason. Thank you.

            A Offline
            A Offline
            Adam Roderick J
            wrote on last edited by
            #5

            If you want to print then change the signature of the function and out parameter as BSTR.

            Величие не Бога может быть недооценена.

            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