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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. ATL / WTL / STL
  4. 32bit client talking to a 64bit local server

32bit client talking to a 64bit local server

Scheduled Pinned Locked Moved ATL / WTL / STL
questionc++comsysadmin
10 Posts 2 Posters 1 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.
  • K Offline
    K Offline
    Kannan Ramanathan
    wrote on last edited by
    #1

    Is it possible to have a 32bit client initialize/invoke methods in a 64bit local COM server? If yes, how do I set up the Proxy/stub DLLs? The target OS I have in mind is Vista64 or Win7-64 (so the 32bit client will be running from with in WOW64). Also, can I go ahead with ATL 8 for implementing the above scenario? Any examples available online? Thanks.

    K S 2 Replies Last reply
    0
    • K Kannan Ramanathan

      Is it possible to have a 32bit client initialize/invoke methods in a 64bit local COM server? If yes, how do I set up the Proxy/stub DLLs? The target OS I have in mind is Vista64 or Win7-64 (so the 32bit client will be running from with in WOW64). Also, can I go ahead with ATL 8 for implementing the above scenario? Any examples available online? Thanks.

      K Offline
      K Offline
      Kannan Ramanathan
      wrote on last edited by
      #2

      One more req I have to worry abt: The 64bit local server should be able to implement connection points (32bit client being the sink)...is this possible? Thanks.

      1 Reply Last reply
      0
      • K Kannan Ramanathan

        Is it possible to have a 32bit client initialize/invoke methods in a 64bit local COM server? If yes, how do I set up the Proxy/stub DLLs? The target OS I have in mind is Vista64 or Win7-64 (so the 32bit client will be running from with in WOW64). Also, can I go ahead with ATL 8 for implementing the above scenario? Any examples available online? Thanks.

        S Offline
        S Offline
        Stuart Dootson
        wrote on last edited by
        #3

        This thread[^] documents the opposite scenario (64-bit client, 32-bit server) - does that enlighten the situation at all? And this thread[^] indicates that 32-bit client and 64-bit client should be OK.

        Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p

        K 1 Reply Last reply
        0
        • S Stuart Dootson

          This thread[^] documents the opposite scenario (64-bit client, 32-bit server) - does that enlighten the situation at all? And this thread[^] indicates that 32-bit client and 64-bit client should be OK.

          Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p

          K Offline
          K Offline
          Kannan Ramanathan
          wrote on last edited by
          #4

          Thanks Stuart for the pointers. Looks like all I need to do is to build/register both 32bit and 64bit proxy/stubs. Is that right? In this case, can I also make the 32bit code act as a sink? Thanks.

          S K 4 Replies Last reply
          0
          • K Kannan Ramanathan

            Thanks Stuart for the pointers. Looks like all I need to do is to build/register both 32bit and 64bit proxy/stubs. Is that right? In this case, can I also make the 32bit code act as a sink? Thanks.

            S Offline
            S Offline
            Stuart Dootson
            wrote on last edited by
            #5

            Ummmm - yes, no, maybe - I really don't know :-O

            Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p

            1 Reply Last reply
            0
            • K Kannan Ramanathan

              Thanks Stuart for the pointers. Looks like all I need to do is to build/register both 32bit and 64bit proxy/stubs. Is that right? In this case, can I also make the 32bit code act as a sink? Thanks.

              K Offline
              K Offline
              Kannan Ramanathan
              wrote on last edited by
              #6

              I did a quick check using ATLDUCK sample. Built the atlduck (local com server) in to 64bit, tried connecting to it from duck (32bit). CoCreateInstance worked perfectly, but when duck tried an Advise() to atlduck, it crashed with an error msg "runtime terminated the app" :sigh: ... trying out some more experiments, will update on the results.

              1 Reply Last reply
              0
              • K Kannan Ramanathan

                Thanks Stuart for the pointers. Looks like all I need to do is to build/register both 32bit and 64bit proxy/stubs. Is that right? In this case, can I also make the 32bit code act as a sink? Thanks.

                K Offline
                K Offline
                Kannan Ramanathan
                wrote on last edited by
                #7

                Pk, I am stuck with the error - "duck.exe - An application has requested the Runtime to terminate it in an unusual way". This error comes up whenever the client tries to do an Advise(). I remember seeing this issue in XP (during the VS.NET 2002 days) by installing an hotfix...but, my current testbed is Win7-64..any ideas why this error is coming? BTW, are there any samples available that do this kind of 32 => 64 => 32bit calls/event_triggers? I am not able to find any (or prob I miss the key words in my search! :( )...Thanks.

                1 Reply Last reply
                0
                • K Kannan Ramanathan

                  Thanks Stuart for the pointers. Looks like all I need to do is to build/register both 32bit and 64bit proxy/stubs. Is that right? In this case, can I also make the 32bit code act as a sink? Thanks.

                  K Offline
                  K Offline
                  Kannan Ramanathan
                  wrote on last edited by
                  #8

                  I have got it working. The error was because of me registering a 32bit server stub (my bad!!)...thanks. :)

                  S 1 Reply Last reply
                  0
                  • K Kannan Ramanathan

                    I have got it working. The error was because of me registering a 32bit server stub (my bad!!)...thanks. :)

                    S Offline
                    S Offline
                    Stuart Dootson
                    wrote on last edited by
                    #9

                    Nice, well done. Maybe a short article on the subject would be useful, to help out other people facing the same issue?

                    Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p

                    K 1 Reply Last reply
                    0
                    • S Stuart Dootson

                      Nice, well done. Maybe a short article on the subject would be useful, to help out other people facing the same issue?

                      Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p

                      K Offline
                      K Offline
                      Kannan Ramanathan
                      wrote on last edited by
                      #10

                      sure will do, once I am done with my current legacy => 64bit port. 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