MR Michael Robellard (5314 <[EMAIL PROTECTED]> writes:
>
> Try something like this
>
> # Create the wrapper in the comtypes.gen package, it will be named
> # AGCoreLib; the name is derived from the 'library ' statement
> # in the IDL file
> if not (hasattr(sys, "frozen") or "python25.zip" in __file__):
>     # pathname of the type library file
>     tlbfile = os.path.join(os.path.dirname(__file__), "lilw.tlb")
>     # if running as frozen app (dll or exe), the wrapper should be in
>     # the library archive, so we don't need to generate it.
>     comtypes.client.GetModule(tlbfile)
 
Thanks Michael. I suppose I need to change "lilw.tlb" to some other tlb file?
This is what I see in the generated module:
typelib_path = u'C:\\Program Files\\Common Files\\Autodesk 
Shared\\acax17enu.tlb'
So, I need copy file acax17enu.tlb into comtypes/gen directory and replace
"lilw.tlb" with "acax17enu.tlb"?
 
> # Import the wrapper
> from comtypes.gen import AGCoreLib
>
 
Where do I put this line? In the program I wrote? If so, where is AGCoreLib used
after being imported?


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
comtypes-users mailing list
comtypes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/comtypes-users

Reply via email to