Reputation: 7055
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?
Upvotes: 2
Views: 12382
Reputation: 7055
I found it's solution. I just rename the file Flash64_16_0_0_305.ocx
to Flash32_16_0_0_305.ocx
and then run both command in 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
and it's works fine.
Upvotes: 0
Reputation: 19296
To resolve this problem you should manualy register Flash ocx component.
To register ocx component you should use Regsvr32 (ms support):
Regsvr32 [/u] [/s] <OCX File Name>
Flash ocx file path is typically:
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)
Example:
regsvr32 C:\Windows\System32\Macromed\Flash\flash.ocx
Upvotes: 1