Re: use VB DLL (COM object) with php
| From: | Luis Ferro | Date: | Mon, 26 Aug 2002 18:38:04 +0000 |
| Subject: | Re: use VB DLL (COM object) with php | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-15537@lists.php.net to get a copy of this message | ||
The ScriptingContext may only exist in Visual Studio languages as it is a very special way to program in the IIS with VB (and a way that i can't recommend at all due to speed, readability and portability problems).
I personnaly would place all the business logic inside the VB Component and would leave for the PHP/ASP the task of making the presentation of all the data.
A much cleaner design, and you can split the development of the things between two programmers of diferent background... if needed...
Cheers,
Luis Ferro
TelaDigital
P.S.- You will find out that it is easier to debug manually then thru the iis/vb/asp(or php in this case) layer... because when things get wrong, the error it will return will probably be error #ffffffffffffff.... without any more info...
Franky wrote:
I try to use a simple COM write in VB ... ====================================================== Option Explicit Dim sc As ScriptingContext Sub OnStartPage(AspSC As ScriptingContext) Set sc = AspSC End Sub Public Function ecrire() sc.Response.Write "Voici mon super texte" End Function ======================================================= ...but it doesn't work! Is run in ASP put when i try in php the parameter is not good. I supose is the ScriptingContext variable but I don't know is value?! Somebody can help me Please? Franky f.boucher@jepca.com--- [This E-mail scanned for viruses by Declude Virus]