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


Answer this question

Failed to import ActiveX control

  • Joel Clipperton

    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


  • GinaK

    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


  • Andy Ho

    Try registering the control with regsvr32

  • genius13

    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..


  • sic0198

    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


  • vec7or

    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


  • jneilb

    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+


  • rodolfosp

    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


  • monkeycz

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

  • Luc Pettett

    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

  • wilbour

    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


  • xtw

    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



  • pdDallas

    I can't thankyou enough..

  • Trevor E Hilder

    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).



  • Failed to import ActiveX control