Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
how do i open dll file
Old 06-11-2005, 06:14 AM how do i open dll file
Novice Talker

Posts: 14
Trades: 0
please help me for how do i open dll file in php form
sulk is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 06-11-2005, 06:44 AM
mtishetsky's Avatar
King Spam Talker

Posts: 1,226
Name: Mike
Location: Mataro, Spain
Trades: 0
Explain more detailedly what do you want. If you need to execute dll's functions then it will only be possible on Windows server and not through PHP anyway.
__________________

Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE

And don't forget to give me talkupation!
mtishetsky is offline
Reply With Quote
View Public Profile Visit mtishetsky's homepage!
 
Old 06-11-2005, 08:42 AM
Novice Talker

Posts: 14
Trades: 0
i have a dll file that return some varaible ,and i want to use that variable in php.
i write this code
Create DLL:
In VB create a New Active X DLL Project. In the Class1 properties
change the name (ex: CUserChangePassword). Change the Project name
(ex: UserChangePassword). Paste the Visual Basic source code from
below into the empty class. Go to File and Make dll.
-----------------------------------
Register DLL:
Copy DLL to server, remember what directory you copy it into. At
server click Start, Run, cmd, OK. Change to the directory the dll is
in. regsvr32 dllname (ex: regsvr32 UserChangePassword.dll). You should
see a message saying registration succeeded.
-----------------------------------
Create your PHP page. Sample code below:

$obj = new COM("UserChangePassword.CUserChangePassword");
$result = $obj->UserChangePassword
($strLogin,$strDomain,$strPassword,$newPassword);
$obj = null;
unset($obj);





but it gives me error. please tell me it is possible or not possible in php
sulk is offline
Reply With Quote
View Public Profile
 
Old 06-11-2005, 08:43 AM
Novice Talker

Posts: 14
Trades: 0
error
Warning: Invalid ProgID, GUID string, or Moniker: Invalid syntax in c:\phpdev5\www\sulkprofile\dllregister3.php on line 3

Fatal error: Call to undefined function: () in c:\phpdev5\www\sulkprofile\dllregister3.php on line 7
sulk is offline
Reply With Quote
View Public Profile
 
Old 06-11-2005, 09:29 AM
mtishetsky's Avatar
King Spam Talker

Posts: 1,226
Name: Mike
Location: Mataro, Spain
Trades: 0
Show me lines 0-10 so I could see an error. You probably do everything correct, but placed $ before some function.
__________________

Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE

And don't forget to give me talkupation!
mtishetsky is offline
Reply With Quote
View Public Profile Visit mtishetsky's homepage!
 
Old 06-13-2005, 02:10 AM
Novice Talker

Posts: 14
Trades: 0
if u are able to create a dummy code and give me . if it's possible than this is very helpful for me
sulk is offline
Reply With Quote
View Public Profile
 
Old 06-13-2005, 02:25 AM
mtishetsky's Avatar
King Spam Talker

Posts: 1,226
Name: Mike
Location: Mataro, Spain
Trades: 0
Man, I never tried to execute DLLs from php, but I'm pretty sure that you just misspeled. The error description is too common and very familiar to me.
__________________

Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE

And don't forget to give me talkupation!
mtishetsky is offline
Reply With Quote
View Public Profile Visit mtishetsky's homepage!
 
Reply     « Reply to how do i open dll file
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.26938 seconds with 12 queries