Failed to import ActiveX control

I am using VB2005 express and VC#2005 express. With my old friend

VS2003, whenever i needed to add flash to my WInforms, all i needed to

do was to add the control as a com component and drag it on the stage

from the toolbar. Now, when i did the same in new express version,

althogh it is added in the toolbars and the references list, but still,

whenever i try to drag a shockwave flash instance on my win form, i get

the error:

Failed to import ActiveX control, please ensure it is properly registered.

does some one have any idea how to add flash comntrol as we used to do in earlier versions? Please reply this ASAP.

Thanks and regards.

Syed Mazhar Hasan

[677 byte] By [SyedMazharHasan] at [2007-12-23]
# 1
Try registering the control with regsvr32
KenTucker at 2007-8-30 > top of Msdn Tech,Visual Basic,Visual Basic General...
# 2

Hello, I also have the same problem in visual studio 2005 with flash control and other 3rd party components. Obviously VS 2005 has serious bug regarding the import of ActiveX components. Is there a workaround? Please help, and avoid obvious answers like the "use regsvr32". Its frustrating because things worked OK in VS2003 and now are broken.

Thanks :)

paketman

paketman at 2007-8-30 > top of Msdn Tech,Visual Basic,Visual Basic General...
# 3

Try downloading the latest flash player.

Additionally, you do not necessarily have the rights to distribute the flash activeX control, unless you have a license. Even so, to install the flash control, you will use the adobe installer to do so.

It's also possible the VS2005 i honoring any development licenses that may be required for the control (there's an extensive licensing form and e-mail registration required).

SJWhiteley at 2007-8-30 > top of Msdn Tech,Visual Basic,Visual Basic General...
# 4

regsvr32 does not solve the issue (at least for my case...). Please try the following workaround:

Drop the control inside your form and observe the error message happenig (ugh!)

Then go to AppFolder\Obj\Debug and delete the interop file that was created or even delete the entire contents (will be recreated). Then drop the control again. It should work now :)

Regards

paketman

paketman at 2007-8-30 > top of Msdn Tech,Visual Basic,Visual Basic General...
# 5
as you guys I am presenting the same trouble. Besides that I am not a windows user, but I have to work right now in a windows machine. For that I need more of your patience and help, I search for this AppFolder\Obj\Debug but I couldnt find neither the path nor the Debug folder. Where actually should be it?

Hope you can help me with this and make run this component soon!

Thanks in advance.

cais

cais at 2007-8-30 > top of Msdn Tech,Visual Basic,Visual Basic General...
# 6

On a typical WIndows XP or WIn Server 2003 Installation, you can find Flash.ocx file under this path:

c:\WINDOWS\system32\Macromed\Flash\

For Windows 2000, this would be:

c:\WINNT\system32\Macromed\Flash\

In both cases, C:\ is the drive where windows is installed

SyedMazharHasan at 2007-8-30 > top of Msdn Tech,Visual Basic,Visual Basic General...
# 7
ok, thank you Syed for your explanation. I found the path and the file you suggested me. But if I take away the Flash.ocx, the error message is even worse.

How can I activate the Schokwave Flash Object into VB2005? that is THE question. I am using Flash 8 with licence.

The solution of Packetman sounded simple and effective, but I never found that path to implemented :-( Did it work for you Syed? I hope you have it working already :-)

and can you help me to make work my connection please!!!

Thanks in advance.!

cais

cais at 2007-8-30 > top of Msdn Tech,Visual Basic,Visual Basic General...
# 8

Ok here is my Solution:

After you add it to ToolBox, Drag and Drop it in your Windows Form... The error will raise.. click Ok..

Rebuil Your Project (The DLL will be copied)

Re-Drag and Drop the component and now, it'll work.

a+

Grattier at 2007-8-30 > top of Msdn Tech,Visual Basic,Visual Basic General...
# 9

After installing the new Flash Player 9 (http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash) using axShockwaveFlash (C:\WINDOWS\system32\Macromed\Flash\Flash9.ocx) worked fine with me!
I am working with VS 2005 Pro.

Regards,
Moritz Pfennig

MoritzPfennig at 2007-8-30 > top of Msdn Tech,Visual Basic,Visual Basic General...
# 10

heh, that worked like a charm.. interesting none the less.. Thanks Grattier!


OK Adobe, where is your move to move this from a COM, to a .Net Assembly..?

serialc0der at 2007-8-30 > top of Msdn Tech,Visual Basic,Visual Basic General...
# 11

I have alwats the same problem , i 've tried to install the last flash player, he don't work on vs2005. error dispaly saying that activex can't install propertly.

Help

forstf at 2007-8-30 > top of Msdn Tech,Visual Basic,Visual Basic General...
# 12
forstf wrote:

I have always the same problem , i 've tried to install the last flash player, he don't work on vs2005. error dispaly saying that activex can't install propertly.

Help

forstf at 2007-8-30 > top of Msdn Tech,Visual Basic,Visual Basic General...
# 13
I can't thankyou enough..
GaryCanada at 2007-8-30 > top of Msdn Tech,Visual Basic,Visual Basic General...
# 14

Well I found that it is the wrapper for the activex control that .Net builds when you add the control.

Seems that the version of wrapper built in .Net 2003 works fine although 2005 has an issue.

The work around I found is to replace the auto generated DLL wrappers, with the versions from 2003.

The file names are : AxInterop.ShockwaveFlashObjects.dll and Interop.ShockwaveFlashObjects.dll

During Design mode they are located in the obj/Debug location.

If you cannot obtain a copy of these files, let me know and I will email them to ya.

I believe this has to do something with cross threads.. not sure though..

Pain in a$$ if you ask me..

serialc0der at 2007-8-30 > top of Msdn Tech,Visual Basic,Visual Basic General...