AxShockwaveFlashObjects and ShockwaveFlashObjects from Flash ocx

风流意气都作罢 提交于 2019-12-02 16:59:52

问题


I'm trying to create:

AxShockwaveFlashObjects.dll and ShockwaveFlashObjects.dll

entering the following command:

aximp C:\WINDOWS\system32\Macromed\Flash\FlDbg10.ocx /nologo

but I get an E_ACCESSDENIED error.

What am I doing wrong? Thanks!


回答1:


Open your command prompt. Switch to the directory that contains the aximp.exe file. Typically; C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\Bin>

Enter the following command (you may need to change the name of your COX file to match your version.

aximp.exe -source "C:\WNDOWS\system32\Macromed\Flash\Flash10a.ocx"

Look in the C:\WNDOWS\system32\Macromed\Flash\ directory. Your files should be there.




回答2:


It's true that this error comes in Windows 7 or vista. You can simply run the command prompt as an administrator and then execute this command from the command prompt. It works this way without doing anything else.




回答3:


The access denied is likely a Vista/Win7 issue resulting from programs attempting to modify files in registered application directories within the Program Files or Windows top-level folders. The workaround (and it worked for me) is to copy AxImp.exe and your target .OCX file to some folder under your user area then just simply run the command "AxImp.exe Flash10c.ocx /source" from a command line in that folder. That will generate not only your two DLL files, but also the .CS source file (for inclusion in projects) and the .PDB file for debugger symbols. Enjoy!



来源:https://stackoverflow.com/questions/453654/axshockwaveflashobjects-and-shockwaveflashobjects-from-flash-ocx

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!