Results 1 to 4 of 4

Thread: .net class in vbscript

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Jun 1999
    Location
    California, USA
    Posts
    662

    .net class in vbscript

    I'm trying to run a vbscript on my web server as a cgi. When the script executes, it's supposed to create an instance to an object I created in vb.net.

    CreateObject can't seem to create the object that I wrote in vb.net

    Is it possible to create an instance of a .net object in windows scripting host? If not, how would I turn it into an ActiveX object that windows scripting host CAN use?

    Note that this is NOT asp... the files end with .vbs, not .asp.

  2. #2
    VBA Nutter visualAd's Avatar
    Join Date
    Apr 2002
    Location
    Ickenham, UK
    Posts
    4,906

    Re: .net class in vbscript

    You will need to have the object registered on your system. This should happen automatically if you have created an ActiveX DLL or ActiveX component.
    PHP || MySql || Apache || Get Firefox || OpenOffice.org || Click || Slap ILMV || 1337 c0d || GotoMyPc For FREE! Part 1, Part 2

    | PHP Session --> Database Handler * Custom Error Handler * Installing PHP * HTML Form Handler * PHP 5 OOP * Using XML * Ajax * Xslt | VB6 Winsock - HTTP POST / GET * Winsock - HTTP File Upload

    Latest quote: crptcblade - VB6 executables can't be decompiled, only disassembled. And the disassembled code is even less useful than I am.

    Random VisualAd: Blog - Latest Post: When the Internet becomes Electricity!!


    Spread happiness and joy. Rate good posts.

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Jun 1999
    Location
    California, USA
    Posts
    662

    Re: .net class in vbscript

    How do I register a .net object for use in vbscript? I've compiled it and accessed it from another .net project so I know it's working.

    I think the problem is that .net object != ActiveX object.

  4. #4
    VBA Nutter visualAd's Avatar
    Join Date
    Apr 2002
    Location
    Ickenham, UK
    Posts
    4,906

    Re: .net class in vbscript

    Quote Originally Posted by agent
    How do I register a .net object for use in vbscript? I've compiled it and accessed it from another .net project so I know it's working.

    I think the problem is that .net object != ActiveX object.
    That is the problem. You need to compile it as either an Actix Component or an Active X DLL
    PHP || MySql || Apache || Get Firefox || OpenOffice.org || Click || Slap ILMV || 1337 c0d || GotoMyPc For FREE! Part 1, Part 2

    | PHP Session --> Database Handler * Custom Error Handler * Installing PHP * HTML Form Handler * PHP 5 OOP * Using XML * Ajax * Xslt | VB6 Winsock - HTTP POST / GET * Winsock - HTTP File Upload

    Latest quote: crptcblade - VB6 executables can't be decompiled, only disassembled. And the disassembled code is even less useful than I am.

    Random VisualAd: Blog - Latest Post: When the Internet becomes Electricity!!


    Spread happiness and joy. Rate good posts.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width