locked
How to register 32bit ActiveX EXE in 64bit Win 7 OS.?

    Question

  • How to register a 32bit ActiveX "EXE" in 64bit Win 7 OS.? 

     

    thanks in Advance.,

    M.Mahesh.


    To Achive Success stay Relaxed, Not Stressed.
    Wednesday, September 7, 2011 4:37 AM

All replies

  • Mahesh.M wrote:

    How to register a 32bit ActiveX "EXE" in 64bit Win 7 OS.?

    The same way as in 32bit Win7 OS.

    If it implements self-registration, you can run it with /RegServer  option. Otherwise, you'll have to create appropriate registry entries  yourself.


    Igor Tandetnik

    Wednesday, September 7, 2011 12:30 PM
  • How to register a 32bit ActiveX "EXE" in 64bit Win 7 OS.? 

     

    thanks in Advance.,

    M.Mahesh.


    To Achive Success stay Relaxed, Not Stressed.

    You can also check with the following MSDN forum

    http://social.msdn.microsoft.com/Forums/en/vcgeneral/thread/4fb96971-53a1-4e25-bc75-b49cfaf4d574

     

    MS support

    http://support.microsoft.com/kb/249873


    Thanks and Regards Selvam http://www15.brinkster.com/selvamselvam/
    • Edited by Selvam Wednesday, September 7, 2011 1:11 PM
    Wednesday, September 7, 2011 1:04 PM

  • What's an ActiveX EXE?

    I think he means a DCOM executable.
    Wednesday, September 7, 2011 7:06 PM
  • I knw these are pretty old.. but it defines ActiveX exe..

    http://kandkconsulting.tripod.com/VB/Tutorials/activex_exe_tutorial.htm

    and

    http://msdn.microsoft.com/en-us/library/aa262306(v=vs.60).aspx

     

    I am trying out some samples to check feasibility of having an outof proc AcitveX ctrl..

    Thanks in Advance,

    Mahesh.M

     


    To Achive Success stay Relaxed, Not Stressed.
    Wednesday, September 7, 2011 8:04 PM
  • Registering an EXE server 32 bit under Windows 7 64 Bit with  /Regserver

    Background:  Migrating my solution from VS2008 to VS2010.  Some programs remain as 32 bit, some I am upgrading to 64 bit.  Purchased a new laptop with Windows 7 64 bit Service Pack 1 to do the migration so I would not corrupt my working VS2008 solution.

    Previous to W7 64Bit SP 1, all I had to do to register MyServer.exe was simply to execute:  MyServer.exe /Regserver

    Then I would set my DCOM server parameters with:  mmc comexp.msc /32

    But ... the server was not showing up in DComCnfg under the new platform.  MyServer.exe /Regserver was quietly failing its registration.

    To trace it down, I started the server in the debugger and found out it did not have the privilege to modify the registry even though I am the administrator.

    Now I had to do an extra step...

    1.  Go to the directory containing your component(s).  If you are like me, you keep all of your EXE components in a single directory that simulates the production environment.  I use Visual Studio to build them, not register them.

    2.  Right click on the server and select Properties.

    3.  Select the Compatibility tab.

    4.  Check the option:  Run as an administrator.

    5.  Apply and OK.

    Then do the registration command from the shell:  MyServer.exe /Regserver   (Still Windows will ask your permission to allow the program to modify your computer. )

    Verify the component is registered using:  mmc comexp.msc /32

    Finish configuring the DComCnfg parameters.

    I hope this helps anyone who has EXE components that are failing but used to work under previous Windows 32 bit OS's.

    Saturday, March 10, 2012 4:55 PM
  • Don't forget to uncheck that ax.exe's "run as administrator" box after following those steps, if you don't want to get an 800702E4 privileges error when trying to create an exe object at user level.


    • Edited by _stentor Sunday, December 16, 2012 1:15 AM
    Sunday, December 16, 2012 12:38 AM