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. Problem in registering a 32 bit C++ COM/ATL Service on Windows7 64 bit

Problem in registering a 32 bit C++ COM/ATL Service on Windows7 64 bit

Scheduled Pinned Locked Moved C / C++ / MFC
c++helpquestioncomtools
3 Posts 2 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.
  • A Offline
    A Offline
    Aseem Sharma
    wrote on last edited by
    #1

    Hi friends, My product have a ATL/COM based C++ service (32 bit). It get registered and run fine on XP 32 bit and Vista 32 bit. But now I want to run the same on Windows7 64 bit also. I tried to register the service the following way: 1 I did Copy MyService.exe at C:\Windows\SysWOW64. 2 Then executing "C:\Windows\SysWOW64\MyService.exe" -RegServer from Start->Run 3 Then executing "C:\Windows\SysWOW64\MyService.exe" -Service from Start->Run But my service is not getting registered. While registering it, I don't get any error message. Also I didn't find any entry in event viewer (I saw event viewer first time. Don't know where to see the log about registration of my service). And I didn't find entry for my service at Control Panel\Administrative Tools\Services. Please advise me how can I register my service? Thanks in Advance Regards

    S 1 Reply Last reply
    0
    • A Aseem Sharma

      Hi friends, My product have a ATL/COM based C++ service (32 bit). It get registered and run fine on XP 32 bit and Vista 32 bit. But now I want to run the same on Windows7 64 bit also. I tried to register the service the following way: 1 I did Copy MyService.exe at C:\Windows\SysWOW64. 2 Then executing "C:\Windows\SysWOW64\MyService.exe" -RegServer from Start->Run 3 Then executing "C:\Windows\SysWOW64\MyService.exe" -Service from Start->Run But my service is not getting registered. While registering it, I don't get any error message. Also I didn't find any entry in event viewer (I saw event viewer first time. Don't know where to see the log about registration of my service). And I didn't find entry for my service at Control Panel\Administrative Tools\Services. Please advise me how can I register my service? Thanks in Advance Regards

      S Offline
      S Offline
      ShilpiP
      wrote on last edited by
      #2

      For 64 bit OS you must build a dll with x64. In Visual Studio 2005, Select programs->Microsoft Visual Studio 2005->Visual Studio tools->visual studio 2005 x64 cross tool command prompt. Open this command and type devenv. A new environment is open than select x64 in Solution platform and build your application. In Visual Studio 2008 and 2010 just build the application with x64 Solution platform. New exe is created in Release ->x64->.

      Yes U Can ...If U Can ,Dream it , U can do it ...ICAN

      A 1 Reply Last reply
      0
      • S ShilpiP

        For 64 bit OS you must build a dll with x64. In Visual Studio 2005, Select programs->Microsoft Visual Studio 2005->Visual Studio tools->visual studio 2005 x64 cross tool command prompt. Open this command and type devenv. A new environment is open than select x64 in Solution platform and build your application. In Visual Studio 2008 and 2010 just build the application with x64 Solution platform. New exe is created in Release ->x64->.

        Yes U Can ...If U Can ,Dream it , U can do it ...ICAN

        A Offline
        A Offline
        Aseem Sharma
        wrote on last edited by
        #3

        Thanks Shilpi. Actually I didn't get reply for some time so I did post in different forum. Sorry for that. The way you are saying, is making my service 64 bit itself. My application consists of 4 DLLs, one ATL service(an exe) and a main exe. And all these binaries are 32 bit. So I want my service to be 32 bit only. Any help you can provide? Thanks and Regards Aseem

        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