32-bit COM object in the HTML page/javascript for a metro app in the windows 8 preview edition RRS feed

  • Question

  • If you need to use 32-bit COM object in the HTML page/javascript for a metro app in the windows 8 preview edition, how can you do it?? It appears that the "new ActiveXObject(progID) for the 32-bit com object can't be created.

    The following thread is relevant too,and i followed the directions in http://blogs.msdn.com/b/helloworld/archive/2007/12/12/activex-component-can-t-create-object-when-creating-a-32-com-object-in-a-64-bit-machine.aspx

    If i use cscript, i can do it if i run from the windows\syswow64\cscript (which is 32 bit) but i am trying to impose a similar choice for the metro app/web page.

    Thursday, January 12, 2012 12:20 PM


All replies

  • Hi V,

    ActiveX controls in general are not supported in Metro style apps (nor in the Metro style browser, as described here, though they do work in the desktop IE). The few that are allowed are built into Windows and are listed here.

    See this thread for more info: http://social.msdn.microsoft.com/Forums/en-US/winappswithhtml5/thread/590555be-5deb-4d87-af23-c28de7602b97


    Jeff Sanders (MSFT)
    Thursday, January 12, 2012 1:07 PM
  • Wait a minute. So if i have a desktop App that exposes its services through a COM API/SDK, i can't use it/call it from the javascript in the metro app?? What do i need to do to get this working? Do i need to design a whole new interface just for this purpose using WinRT or whatever?
    Sounds like a bad issue.
    Thursday, January 12, 2012 8:25 PM
  • Hi Vxxxxx,

    See your other post for a more complete answer.



    Jeff Sanders (MSFT)
    Friday, January 13, 2012 1:50 PM
  • I just replied to that to make myself clear,take a look please.
    Friday, January 13, 2012 3:15 PM