Hi Chris,
I am not sure what you mean by modern way but if you use Delphi's Import Com
Library Wizard you'll get number of other options, type safe calls, compiler
checks etc.
A good place to read about COM with Delphi is Marco Cantu's Mastering Delphi
Book ( Any of them from Mastering Delphi 4 to 7 should be good for this ).
Also, Look up the documenation for the COM Object you are using, unless
somebody else has specifically worked with the same COM library you better
look up the COM Vendor's documentaion.
I assume you are in AU, join the ADUG mailing list, you get better response
there. (goto http://adug.org.au/Admin/mailing_list.htm )
HTH
Regards
Arjang
2008/6/3 Chris Stebbing <[EMAIL PROTECTED]>:
> Hi All,
>
> I need to write an application to communicate to a program via
> COM. I have fiddled somewhat and discovered that I can do this using
> the following code
> CreateOleObject('BettingAssistantCom.Application.ComClass');
>
> Is this the correct way of doing it? Is there a more "modern" or
> correct way of doing it?
>
> I don't have much information to go on... It took me quite a bit of
> time to "guess" the string required to get the CreateOleObject call
> to work, but it does seem to be working.
>
> Ta muchly,
> Chris.
>
> _______________________________________________
> Delphi mailing list -> [email protected]
> http://lists.elists.org/cgi-bin/mailman/listinfo/delphi
>
_______________________________________________
Delphi mailing list -> [email protected]
http://lists.elists.org/cgi-bin/mailman/listinfo/delphi