Thanks again. I have learned that I should register this assembly with regasm.exe rather than regsv32.exe because the assembly built by vb.net or C# are not actual ActiveX controls in the classical sense. These programs generate something that behaves like one, but really are only COM wrappers around a managed-code assembly that makes it look like that to the consumer.
My .dll is successfully registered via regasm.exe. But AB still cannot find it. Should it be able to? Thanks! ----- Original Message ----- From: "cstrader232" <[EMAIL PROTECTED]> To: <amibroker@yahoogroups.com> Sent: Sunday, September 10, 2006 8:30 PM Subject: [amibroker] Can't find active-x control > I've created an active-x control which I can read from other programs. > However, AB does not seem to find it. Is there any way to debug know what > the problem is? > > I've placed the .dll in both the amibroker and the plugins directory. My > code is: > > CS = CreateObject("ClassLibrary3.Application"); > > st = CS.CS_Tables; > > st.NewFunction(); > > The last line above creates: Error 18. Com object variable is not > initialized or has invalid type (valid COM object handle required). > > > > I have tried to make things completely parallel to: > > //AB = CreateObject("Broker.Application"); > > //st = AB.Stocks2; > > //st.Add(Ticker); > > which works fine. > > > > > > Please note that this group is for discussion between users only. > > To get support from AmiBroker please send an e-mail directly to > SUPPORT {at} amibroker.com > > For other support material please check also: > http://www.amibroker.com/support.html > > > Yahoo! Groups Links > > > > > > Please note that this group is for discussion between users only. To get support from AmiBroker please send an e-mail directly to SUPPORT {at} amibroker.com For other support material please check also: http://www.amibroker.com/support.html Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/amibroker/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/amibroker/join (Yahoo! ID required) <*> To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/