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