VS 2003 COM Server and Delphi Client

G

glenn

I have a COM Server I wrote according to a book I have in C#, VS 2003. I
can call the object fine from a VB Script, however, if I try to import the
type library into Delphi 6 I get a "type not validated" error on Byte,
Double, and Single variable types when trying to compile the package.

It appears as though Delphi is just not seeing the exported functions for
the object. I can import type library into Delphi 2005 with no errors,
however, the same thing appears to be true. While I have the component
there are no functions within it that I can call.

Does anyone have any idea why this might not be working? Are there settings
within the VS 2003 project that I need to set in order for the COM Object to
work properly in unmanaged code?

Thanks,

glenn
 
M

Michael Moreno

I have a COM Server I wrote according to a book I have in C#, VS 2003. I
can call the object fine from a VB Script, however, if I try to import the
type library into Delphi 6 I get a "type not validated" error on Byte,
Double, and Single variable types when trying to compile the package.

Replace them by System.Byte, System.Double, etc.

It is a well known issue.
 

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