CodeChargeUser
|
| Posted: 04/26/2002, 2:02 PM |
|
We are using Code Charge 2.0 with ASP and Templates.
In our project we would like to call a custom function to perform a specific task. This function is developed in Visual Basic 6.0 and compiled as a .dll file e.g. specialfunction.dll
This dll file is already registered in our IIS 4.0 server and OS is NT40 SP6a
Whenever a user opens an ASP page like displaylist.asp, we would like to trigger/execute this custom dll file too
What is the bast way to call this dll file? Can we put it as a global function or call it saperately in every asp page. Is it possible in CodeCharge? if yes... could somebody tell me how to call this function????
i.e. a sample script to call the function would be wonderful...
Appreciate all your help.
|
|
|
 |
Andrew B
|
| Posted: 04/26/2002, 6:43 PM |
|
Is it a COM object? If not it will be difficult, if not impossible, to call it directly from ASP. If it is a com object, talk to the developer and find out what it is called or it's CLSID. Once you have it's name, you can create an instance of it. If you dont have that, you can use it's GUID (in the {1919-...-09192929219} form) in the place.
then, in the open even of the page
dim oMyObj
set oMyObj = Server.CreateObject("MyObject.MyClassName")
oMyObj.Method()
oMyObj.property = aValue
set oMyObj = nothing
|
|
|
 |
|