Skip to search.
tlb2h · Discussion on the Comet library for C++ COM development.

Group Information

  • Members: 81
  • Founded: Dec 12, 2000
  • Language: English
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Message search is now enhanced, find messages faster. Take it for a spin.

Messages

  Messages Help
Advanced
Tlb2h changes galore   Message List  
Reply Message #659 of 1073 |
Guys, here is a version of tlb2h with some larg-ish changes



A brief justification for the -s/-x modifications and implementation:

We have a typlibrary that expands to 87290 lines for the client version

It has 491 coclasses and 726 interfaces and takes at least 5 minutes to
output the full client version,
and a similar time to compile the precompiled headers for it.

It makes use of inheritance, and given that it is a com interface to a
database - the interface stubbing is required, or once you ask for one
root interface, we would end up having to bring in all the interfaces as
there are very few isolated interfaces.


//.

-------------------------------


* Fixed up namespace mapping.

* Added symbol mapping. ( #imports rename() and rename_namespace()
functions )

* When using -s/-x (specify symbols to include/exclude),
- Only the specified interfaces & coclasses are output with full
information (as before)
- Any interfaces mentioned in the coclasses or the interface
methods are stubbed
(no method implementations - vtable fillers)
- Any interfaces / coclasses not mentioned are excluded (This is
the major addition)
- Add the ability ('*' prefix in the -s file) to output server
wrappers for individual interfaces.
- Don't output connection-point implementations of unexposed
symbols

* When outputting the server version:
- If there is a connection-point from a foreign type-library -
don't try and make interface entries
for the interface - it doesn't compile.

* When outputting the client version:
- Don't output connection-point implementations
- Output the server implementation instead for source
interfaces.

* Small things
- Changed the incompatible compile-time error message to
"This header was generated with a different version of
tlb2h. Please rebuild"
- Added '-F' option to exclude connection-point implementations
from foreign type-libraries.
- Cleaned up outputting of section header comments with no
elements in them
- Fixed the comment in the switch statement of dispatch
implementations.





Fri Sep 20, 2002 2:19 am

michaelrgeddes
Offline Offline
Send Email Send Email

Attachment
tlb2h.zip
Type:
application/x-zip-compressed
Message #659 of 1073 |
Expand Messages Author Sort by Date

Guys, here is a version of tlb2h with some larg-ish changes A brief justification for the -s/-x modifications and implementation: We have a typlibrary that...
Michael Geddes
michaelrgeddes Offline Send Email
Sep 20, 2002
2:19 am

I managed to slip in a bug in the get_value() of class Constant .. class Constant { string get_value() { return static_cast<const char*>(_bstr_t(mi_->Value)); ...
Michael Geddes
michaelrgeddes Offline Send Email
Sep 20, 2002
3:30 am
Advanced

Copyright © 2010 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines NEW - Help