> I wouldn't do it quite the same way as Ehsan, unless of course the
> above is a class dcalred and defined local to main?

Nope, it's a global defined in a .cpp module.

If it's local to main( ), then the same problem Jason noticed would happen
in main( ).  It must be a global, so that in every part of the program, the
COM library remains initialized.

-------------
Ehsan Akhgari

Farda Technology (www.farda-tech.com)

List Owner: [EMAIL PROTECTED]

[ Email: [EMAIL PROTECTED] ]
[ WWW: http://www.beginthread.com/Ehsan ]

To talk about oneself a great deal can also be a means of concealing
oneself.
-Beyond Good And Evil, F. W. Nietzsche





Reply via email to