call .net class from vbscript

E

EP

I know a .net class can be registered for COM, but can a VB-script use
CreateObject or GetObject and use a non-registered file location to get the
object?

Basically, can you call .net from COM directly from the assembly file,
without registering with com
 
P

Phil Wilson

There has to be *something* because COM clients still need CLSID registry
entries (and ProgIDs if you're VBScript) that (typically) point to an
InprocServer32 entry. This will be mscoree.dll for .NET COM servers, and from
then on there's some flexibility, but none of the stuff the COM clients always
needed has gone away. You'll also need to stick to oleautomation parameters if
you've got VBScript clients.
 
S

S Gopikrishna

Hi There !

For invoking the .NET component from COM you need to
generate COM Callable Wrapper and Register it.

The following are the list of steps that needs to be done
for invoking .NET assembly from COM

1.Create a Type Library using Tlbexp.exe
2. Register the type library using Regasm.exe

The following link will be of help to you
http://www.vbdotnetheaven.com/Code/Jun2003/2074.asp

-Gopi
 
S

S Gopikrishna

Hi There !

For invoking the .NET component from COM you need to
generate COM Callable Wrapper and Register it.

The following are the list of steps that needs to be done
for invoking .NET assembly from COM component
1.Create a Type Library using Tlbexp.exe
2. Register the type library using Regasm.exe

The following link will be of help to you
http://www.vbdotnetheaven.com/Code/Jun2003/2074.asp

-Gopi
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top