Click to See Complete Forum and Search --> : using an extension (.dll)


nunomira
12-29-2004, 12:43 PM
I'm running wampserver with php 4.3.8 on windows xp home.

I followed this:

INSTRUCTIONS:
for usage of the dwg to swf convertor:

1. copy 'php_dwgtoswf.dll' to your php extensions-folder '/php/extensions/'
2. add an entry to php.ini:
-> find the section in php.ini where the extensions are defined
-> add a line 'extension=php_dwgtoswf.dll'

AVAILABLE METHODS:

dwg_to_swf(
$infile, // dwg/dxf
$outfile, // swf
$width, // swf-width
$height, // swf-height
$layout, // selected 'dwg-layout' (int, 0-based)
$penwidths, // penwidths[255], array containing penwidths (twips).
$mode, // one of predefined constants (see below)
$R, $G, $B // RGB-colors (range 0 - 0xFF)
);

int dwg_num_layers($infile);
array dwg_get_layers($infile);
int dwg_num_layouts($infile);
array dwg_get_layouts($infile);

DWG_TO_SWF_COLOR
DWG_TO_SWF_MONOCHROME
DWG_TO_SWF_BACKGROUND_BLACK
DWG_TO_SWF_BACKGROUND_WHITE

But when I try to use dwg_to_swf (), I get the error:

Fatal error: Call to undefined function: dwg_to_swf() in...


Apart from this, I don't get another error.
How do I know if the .dll is installed correclty?

I changed the extension_dir in the php.ini to:

extension_dir = "C:\wamp\php4\extensions"

tsinka
01-02-2005, 05:32 AM
Hi,

where did you get that extension ?

Thomas

nunomira
01-02-2005, 06:56 AM
hi,

I was doing a friend a favor. He asked me to convert a file to a .swf, by uploading the file via a flahs interface and then loading the newly created .swf.

I know the extension comes from http://www.suite75.net/ - products - CAD2Flash.

I haven't been able to install it locally, by he installe it in his server after all, with the help from the extension's developer(s).
It also needs the ming extension.