COM type library importer

John C johnch_atms at hotmail.com
Tue Apr 11 09:01:11 PDT 2006


Carlos Santander wrote:
> John C escribió:
> 
>>
>> Ensure you're initializing COM with CoInitialize. I usually do so in a 
>> static module ctor, like this:
>>
>>     module main;
>>
>>     import com;
>>
>>     static this() {
>>         CoInitialize(null);
>>     }
>>
>>     static ~this() {
>>         CoUninitialize();
>>     }
>>
> 
> A suggestion: wouldn't it be better to have those in your com module? I 
> mean, they're going to be needed anyway, so why not make things easier 
> for users?
> 

I agree. I'll make the change.



More information about the Digitalmars-d-announce mailing list