Log in

View Full Version : Newbie - COM DLL & PHP help


looknow12
02-10-2004, 01:42 PM
Newbie - COM DLL & PHP help I have been making use of a couple of COM dlls which were built internally in my company, which we have been using successfully in our previous asp & aspx based projects.

We have been trying to make use of these dlls for a new aspx website which will be making of VB forums for the forum interface. I have been faced with a peculiar problem of having the php Interpreter exe crashing each time the page loads and calls a couple of methods in the DLLs.

This is the code which I was trying to execute.

$inpin=$_GET["pin"];
$objpass=new COM("WebUtil.IcodeWeb");
$pass=new VARIANT();
$pass=$objpass->ADecrypt($inpin); <<<<<----- If i comment this line, then page loads without any errors.

The dll is registered on my machine using regsvr32 and I have not had any problems accessing it through asp pages.

From the method call, the return param is a string. I have even tried to removing the VARIANT declaration. Also I tried to call the "com_load" method call to pre-load the DLL.

What could be the problem with this piece of code..

Please help.. I am also a newbie in PHP.

Any help is appreciated.

NTLDR
02-10-2004, 01:44 PM
Please don't cross post. https://vborg.vbsupport.ru/showthread.php?t=61349