Configure user defined dll

Alles, was PHP betrifft, kann hier besprochen werden.

Configure user defined dll

Postby qazzaq » 03. January 2010 09:31

Hello All,

I want to use user defined dll in PHP.

I am create dll in VC++. I successfully used in Visual Basic 6.0. Now i want to use that dll in PHP. I am using XAMPP (Basis Package) version 1.7.2. I performed following steps.

1: copy that example1.dll in C:\xampp\php\ext
2: Edit php.ini and write extension=example1.dll
3: Restart the XAMPP service. (While restarting i got following waring:- PHP Startup: Invalid library (maybe not a PHP library) 'example1.dll' )

How can i resolve this problem ?

Please guide me.

Thanks in advance.
qazzaq
 
Posts: 2
Joined: 03. January 2010 09:21

Re: Configure user defined dll

Postby Wiedmann » 03. January 2010 09:38

How can i resolve this problem ?

You must rewrite your DLL as a PHP-Extension (or your must write write an extension which is a wrapper to your DLL):
http://de.php.net/manual/en/internals2.structure.php

(but sorry, that's beyond the scope of this forum)
Wiedmann
AF Moderator
 
Posts: 17102
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Re: Configure user defined dll

Postby qazzaq » 03. January 2010 10:50

Thanks. It will helpful me.
qazzaq
 
Posts: 2
Joined: 03. January 2010 09:21


Return to PHP

Who is online

Users browsing this forum: No registered users and 24 guests