473,508 Members | 2,233 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

how to create type libraries for py2exe?

I have a working COM object that registers and I can 'dispatch' correctly. I
need register a type library for this project to integrate with my
application- Crystal Reports.

I understand I need to compose an IDL file, then process that with MIDL.exe
to produce a .tlb file. That can then be add as a resource to the .dll that
py2exe creates.

HOWEVER- IDL is pretty intimidating if you don't know C++. Is there a way to
automatically generate the IDL I need? I am under urgent time pressure, so I
would prefer expediency over correctness.
Jul 18 '05 #1
1 1898
jw**********@ramprecision.com wrote:
I have a working COM object that registers and I can 'dispatch' correctly.
I need register a type library for this project to integrate with my
application- Crystal Reports.

I understand I need to compose an IDL file, then process that with
MIDL.exe to produce a .tlb file. That can then be add as a resource to the
.dll that py2exe creates.

HOWEVER- IDL is pretty intimidating if you don't know C++. Is there a way
to automatically generate the IDL I need? I am under urgent time pressure,
so I would prefer expediency over correctness.


Sure, many languages are set up for such "expediency over correctness"
automatic generation of type libraries (and MS Visual Studio -- and, I
believe, MS's freely downloadable and huge SDK too -- come with tools to
reverse-compile typelibraries into IDL sources, too). For example,
Visual Basic 6 does it (I believe it also embeds the typelib in the
resources of the DLL or EXE, but you can extract it with the kind of
tools I just mentioned). I believe (never tried) that some CORBA
tools, such as ORBit, may also be capable of generating MS typelibs
automatically (from the info THEY have about your interface, of course,
so you may still need to write CORBA IDL for all I know)...
Alex

Jul 18 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1976
by: Steven Bell | last post by:
I am trying to build an executable from a python script. Using python 2.3, SOAPpy 0.10.3, Py2exe 0.4.2. Build command: python setup.py py2exe -w --includes xml.sax.drivers2.drv_py I get the...
9
1775
by: codecraig | last post by:
Hi, Is there a way to create one .exe using py2exe (or some other extension/utility that can do it)? Basically i want to generate one .exe that contains everything my python app needs to run...
0
1517
by: Jimmy Retzlaff | last post by:
py2exe 0.6.4 released ===================== py2exe is a Python distutils extension which converts Python scripts into executable Windows programs, able to run without requiring a Python...
0
1503
by: Jimmy Retzlaff | last post by:
py2exe 0.6.5 released ===================== py2exe is a Python distutils extension which converts Python scripts into executable Windows programs, able to run without requiring a Python...
0
1711
by: Jimmy Retzlaff | last post by:
py2exe 0.6.6 released ===================== py2exe is a Python distutils extension which converts Python scripts into executable Windows programs, able to run without requiring a Python...
1
7626
by: DierkErdmann | last post by:
Hi ! I am trying to create an exe file using pyinstaller. Running the created exe-File gives the error message "" Traceback (most recent call last): File "<string>", line 8, in <module> File...
5
2561
by: Laszlo Nagy | last post by:
Hi, I want py2exe not to create library.zip. My reason is that the installed program will be a self updating program, and it must be able to download changes (newer python source files) from the...
0
1133
by: vedrandekovic | last post by:
Hello, Is there any example how can I create executable from executable with py2exe.For example if I create main executable with some TextEntry ( wxpython ) and then when i write this code into...
1
2965
by: Jimmy Retzlaff | last post by:
py2exe 0.6.8 released ===================== py2exe is a Python distutils extension which converts Python scripts into executable Windows programs, able to run without requiring a Python...
0
7225
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7123
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7326
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7383
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7498
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5627
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
3194
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1557
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
766
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.