Log in

View Full Version : modify COM .tlb file


NaZAf
January 5th, 2008, 00:39
How can I modify a compiled .TLB file? Is there a tool or something?

JMI
January 5th, 2008, 02:49
As the FAQ and the note under your signature state, first tell US what YOU have done to attempt to find the answer to your question, besides posting it here.

Regards,

NaZAf
January 5th, 2008, 20:55
I searched RCE Tool Library and the all over the WEB, I found some tools like ComViewer but it does not generate header files (.h)

My idea is to get the IDL source from a Type Library, change some properties and then compile again using midl.exe.

The OLE/COM Object Viewer (oleview.exe) generates the IDL but fails at generating the file.

bedrock
January 6th, 2008, 09:12
I don't think this will be possible (at least not easily) getting the IDL itself is not a problem, but that only describes the interface (it does not contain the code to implement the interface) so recompiling the modified idl is not going to generate a new implementation of the interface you have changed

--
bedrock

NaZAf
January 7th, 2008, 17:10
I know. But at least you can remove properties like hidden or noncreatable. This is what I am looking for.