欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  科技

How to run and use SWF To Image on x64 Windows

程序员文章站 2023-11-25 20:14:16
How to run and use SWF To Image on x64 Windows...
the swf to image activex library is made using managed windows 32-bit code so as a result library (dll) can not be loaded into 64-bit application.
solution is to build application for x86 platform so application will be operate in 32-bit mode (will work on both 32 and 64-bit os)

to apply this in visual studio 2005 and higher:

- open project in visual studio 2005
- open project settings by pressing alt+f7 (or via main menu: project | windows application 1 properties)
- select "build" tab
- change "platform target" to "x86" option
- re-build project

produced exe application will work ok with registration-free scenario on windows x64. to see how to add registration-free support into application see below:

for registration-free usage scenario for swf to image please use the following manifest file:

content of yourapplication.exe.manifest file:

<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestversion="1.0">

<file name="swftoimage.dll">
<typelib tlbid="{f52b2898-3cd9-4530-8f1e-2762a2783c33}" version="1.0" helpdir="c:\windows\system32\"/>
<comclass description="class_swftoimage" clsid="{479a1aac-c148-40bb-9868-a9773da66af9}" progid="swftoimage.swftoimageobject" threadingmodel="both" tlbid="{f52b2898-3cd9-4530-8f1e-2762a2783c33}" />
</file>
</assembly>

do not forget to put swftoimage.dll into the same folder where yourapplication.exe is located
相关标签: swf Image