I had a com dll return a structure and the structure definition is like below:
class DeviceInfo(Structure): _recordinfo_ = ('{70577167-ED71-4977-B719-2C40C6DD8E1D}', 1, 2, 0L, '{6C7A25CB-7938-4BE0-A285-12C616717FDD}') DeviceInfo._fields_ = [ ('Special', VARIANT), ('Name', BSTR), ('Value', c_int), ('Flags', c_ulong), ('Type', c_ulong), ('ID', c_ulong), ('LocId', c_ulong), ('SerialNumber', BSTR), ('Description', BSTR), ('ftHandle', c_ulong), ] I can access the Value, Flags, ID, Type. But the SerialNumber, Name and Description all return None. Is the comtypes.BSTR working? I am sure my com dll is working because it can works under vb, c# and c++. Regards, Shin Guey ------------------------------------------------------------------------------ SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada. The future of the web can't happen without you. Join us at MIX09 to help pave the way to the Next Web now. Learn more and register at http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/ _______________________________________________ comtypes-users mailing list comtypes-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/comtypes-users