Connect to ActiveX Dll in VB-Script 
Author Message
 Connect to ActiveX Dll in VB-Script

Hi all,

I build an ActiveX Dll in Visual Basic 6.0 that is used as an wrapper for
other Dll's. I need this to access normal dll's from my VB-Script in an HTML
page.

Now my problem is that my script doesn't want to load the ActiveX Dll unless
it is running in debug mode in Visual Basic 6.0.

I have the following code in my HTML:

<OBJECT classid="clsid:69C7239B-5966-11D2-9315-006008BF5C76" id=safutil>
</OBJECT>

<script Language="VBScript" RUNAT SERVER>
<!--
....
    MyFormattedVar = safutil.AxFormat(MyVar, MyFormatMask)
....
-->
</script>

AxFormat is an function that formats a variable and returns a string.

My question is: How can I make this ActiveX Dll work while not having the
Dll run in the VB 6.0 de{*filter*}?

Thanks,
Radboud.



Mon, 19 Mar 2001 03:00:00 GMT  
 Connect to ActiveX Dll in VB-Script
The object tag is used for Client side objects/scripting. For server side
scripting use the Server.CreateObject function to instanciate your ActiveX
DLL class.

Myron.

'Example
Dim x
set x = server.CreateObject(mydll.myclass)

Quote:

>Hi all,

>I build an ActiveX Dll in Visual Basic 6.0 that is used as an wrapper for
>other Dll's. I need this to access normal dll's from my VB-Script in an
HTML
>page.

>Now my problem is that my script doesn't want to load the ActiveX Dll
unless
>it is running in debug mode in Visual Basic 6.0.

>I have the following code in my HTML:

><OBJECT classid="clsid:69C7239B-5966-11D2-9315-006008BF5C76" id=safutil>
></OBJECT>

><script Language="VBScript" RUNAT SERVER>
><!--
>....
>    MyFormattedVar = safutil.AxFormat(MyVar, MyFormatMask)
>....
>-->
></script>

>AxFormat is an function that formats a variable and returns a string.

>My question is: How can I make this ActiveX Dll work while not having the
>Dll run in the VB 6.0 de{*filter*}?

>Thanks,
>Radboud.



Fri, 23 Mar 2001 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Using complex data types from VB ActiveX dlls with server-side scripting

2. Using complex data types from VB ActiveX dlls with server-side scripting

3. Using complex data types from VB ActiveX dlls with server-side scripting

4. Connecting VBScript application to ATL/COM/DLL server component

5. HELP!! Connecting to URL in an ActiveX dll

6. HELP: ActiveX DLL ODBC connect problem

7. ADO connect made thru ActiveX Dll

8. VB Scripting Runtime DLL:scrrun.dll

9. Passing an object to an ActiveX dll from ASP script

10. Building ActiveX controls that will access activex.dll running on PWS

11. Problem with Windows Script Control and Timeout in an ActiveX Dll

12. Passing a Scripting.Dictionary to ActiveX DLL

 

 
Powered by phpBB® Forum Software