VS 2003 COM Server and Delphi Client

  • Thread starter Thread starter glenn
  • Start date Start date
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
 
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.
 
Back
Top