CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Jan 2000
    Location
    Olen, Belgium
    Posts
    2,477

    Microsofts Script Control & VB5?

    Is it possible to use the Microsoft Script Control in VB5? I've looked but it isn't there. However, it is there in VB6. Is it possible to use this in VB5? If yes, what do I need to do to make it work. I know the control is c:\winnt\system32\msscript.ocx. But I have a hunch that I will need to register it (knowing Microsoft) on the VB5 machine (wich btw is a win95 machine) and my experience with regsvr32 aren't to good (never succeded, not even once).

    Tom Cannaerts
    [email protected]

    The best way to escape a problem, is to solve it.
    Tom Cannaerts
    email: [email protected]
    www.tom.be (dutch site)

  2. #2
    Join Date
    May 1999
    Posts
    3,332

    Re: Microsofts Script Control & VB5?

    I HAVE used it in VB 5 without any problems.
    What error messages do you get when calling regsvr32?


  3. #3
    Join Date
    Jan 2000
    Location
    Olen, Belgium
    Posts
    2,477

    Re: Microsofts Script Control & VB5?

    Loadlibrary("libname") failed.
    GetLastError returns 0x0000007e

    or something like that. I haven't tried it with the scrit control, but with some other controls (like winsock.ocx) it always happens.

    But besides that, is it nescessary to register the control, or can i just select it with project components?

    Tom Cannaerts
    [email protected]

    The best way to escape a problem, is to solve it.
    Tom Cannaerts
    email: [email protected]
    www.tom.be (dutch site)

  4. #4
    Join Date
    May 1999
    Posts
    3,332

    Re: Microsofts Script Control & VB5?

    >But besides that, is it nescessary to register the control, or can i just select it with project components?

    I think VB should register the component automatically if you add it via Project/Components/Browse


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

Featured