Re: Could not instantiate ActiveX control - WeOnlyDo Discussion board

Re: Could not instantiate ActiveX control (General questions)

by sucrerey, Wednesday, January 19, 2005, 21:59 (7246 days ago) @ wodSupport

ok,.. switched to COM but it now fails during InitializeComponent() on the following line:

((System.ComponentModel.ISupportInitialize)(this.axwodSFTP1)).EndInit();

I assume this is where I should use the OleInitialize but I've never done this before in .NET and I can't find anything useful in the MSDN can I get moved to the next step? Or possibly pointed to a useful article on how to do this with .NET?

Thanks In Advance,
Ben

I think first you should stop using wodSFTP.OCX, and switch to wodSFTP.DLL (COM Object) since you may have problem with licensing this way).

Anyway, what I think could solve your problem is to call OleInitialize API from within each new thread - this is a requirement I think.

BTW does this error have some error number? Which one is it?


Complete thread: