Click to See Complete Forum and Search --> : Microsofts Script Control & VB5?


Cakkie
February 22nd, 2000, 12:23 AM
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
slisse@planetinternet.be

The best way to escape a problem, is to solve it.

Lothar Haensler
February 22nd, 2000, 01:27 AM
I HAVE used it in VB 5 without any problems.
What error messages do you get when calling regsvr32?

Cakkie
February 22nd, 2000, 01:35 AM
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
slisse@planetinternet.be

The best way to escape a problem, is to solve it.

Lothar Haensler
February 22nd, 2000, 01:37 AM
>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