p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   Pro VB.NET 2002/2003 (http://p2p.wrox.com/forumdisplay.php?f=74)
-   -   Error in WScript.CreateObject (http://p2p.wrox.com/showthread.php?t=42852)

pankaj.talk May 22nd, 2006 05:07 AM

Error in WScript.CreateObject
 
Hi,

I have recently upgraded a VB6.0 ActiveX DLL to VB.NET. This DLL is basically used for playback of java and vb scripts.

I earlier used to register the VB6.0 DLL with REGSVR32.EXE so the generated scripts (java and VB) can use the COM objects.

However, now after upgrading to VB.NET, and installing the .NET framewrok also on my machine, I am getting the following error while playing the scripts.

Error:"Could not locate automation class named APRecPlay.TInput."
Source: WScript.CreateObject

I also tried registring the VB.NET DLL with regasm.exe. But that doesnt help either.

Any suggestions?

Pankaj






BrianWren June 5th, 2006 03:34 PM

If I remember right, there is a set of steps that you need to take to make a .NET assembly accessible to COM. (It needs a GUID, etc.) A .NET assembly usually is not available for that technology.

You should investigate that line of thought, and see if you can find a help topic on that.


All times are GMT -4. The time now is 11:03 PM.

Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.