|Subject:||Continuing problems with using 3rd party COM|
|Posted by:||William Meyer (meyer.w…@gmail.com)|
|Date:||31 Jul 2007|
I am continuing to struggle with a 3rd party supplier's COM interface
to their hardware. This morning, I was sent the following code snippet
as a possible solution to my problem:
//create and initialize encoder
VendorComApi.CreateEncoderMngrObj(out encoder, 0, out result);
if (result < 0) throw new VendorException(result);
//typecast encoder control as property interface
IVendorProperty property = (IVendorProperty)encoder;
The basic problem here is that when I convert this to Delphi, the
compiler complains when I attempt the cast. It appears to be one of
those times when strong typing may not be my friend.
Any insights would be appreciated.