2

I am using Visual Studio 2012 Ultimate. I simply create a new Windows Application form, now when I move Shockwave Flash Object to my form I received the error Failed to create component 'AxHost'. I also download and install the Visual Basic 2010 and same thing is happening there.I also installed the latest .Net 4.5. What is missing in my PC or in my Project?

enter image description here

4

2 回答 2

1

要解决此问题,您应该手动注册 Flash ocx 组件。

要注册 ocx 组件,您应该使用 Regsvr32 ( ms support ):

Regsvr32 [/u] [/s] <OCX 文件名>

Flash ocx 文件路径通常为:

C:\Windows\System\Macromed\Flash (Windows 95, 98, WinME) C:\WinNT\System32\Macromed\Flash (Windows NT, 2000) C:\Windows\System32\Macromed\Flash (Windows XP, Vista, 7) C:\Windows\SysWOW64\Macromed\Flash (Vista, 7)

例子:

 regsvr32 C:\Windows\System32\Macromed\Flash\flash.ocx
于 2015-02-22T07:50:46.697 回答
0

我找到了解决方案。我只是将文件重命名Flash64_16_0_0_305.ocxFlash32_16_0_0_305.ocx,然后在 cmd 中运行这两个命令

regsvr32 C:\Windows\SysWOW64\Macromed\Flash\Flash32_16_0_0_305.ocx  
regsvr32 C:\Windows\System32\Macromed\Flash\Flash32_16_0_0_305.ocx

它工作正常。

于 2015-02-23T04:23:51.350 回答