A COM object method I have returns a type "object" according to the C# auto-
fill prompts, but returns a type "Experiment" according to the VB6 auto-
fill prompts.  If I declare the variable intended to receive the object as
an "object" type, then there are no errors, but that (Experiment) object's
methods and properties are not visible, and create errors if used.  If I
declare the receiving variable as type Experiment (interface), then the
(Experiment) object's methods and properties are visible, but the creation
of the Experiment gives an error saying that I cannot implicity convert
from Object to ExperimentClass.

If I load the .dll into OLE/COM object viewer, I get the following
error:  "IMoniker::BindToObject" failed on the file moniker created from
(<dll path>).  Bad extension for file MK_E_INVALIDEXTENSION ($800401E6).

What is going on here?  Is there some way to force the object conversion or
get this to work?

You can read messages from the DOTNET archive, unsubscribe from DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.

Reply via email to