Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: Show id and help string of methods and properties #9

Open
ToniSimi opened this issue Sep 18, 2018 · 5 comments
Open

Comments

@ToniSimi
Copy link

For comprehensive inspection of objects if would be helpful to see the numerical id and the help string (usually contains comment/description of method if provided by the developer) of methods and properties.

@tyranid
Copy link
Owner

tyranid commented Sep 18, 2018

I could add the DISPID field as that's easily accessible from the converted type library, however the help string is not preserved as far as I can tell. At some point I'd like to implement a better type lib importer, which doesn't convert to assembly at all but that's some way off I'm afraid.

@ToniSimi
Copy link
Author

The object browser of Visual Basic 6 (yes, really old) shows the help strings, see the example below, the very last line. Microsoft's OleView also shows them. The browser of VB6 is the most convenient one I know because it has a very clear, tidy, and handy representation with selectable items, cute icons, and internal clickable links between libraries, interfaces, enums, ...

objectbrowser

@tyranid
Copy link
Owner

tyranid commented Sep 18, 2018

It's not a problem of getting the information out, it just doesn't match with how I implement the type lib viewing. I convert the type library to a .NET assembly using the TypeLibConverter class which preserves DISPIDs but not the help strings so atm there's no information I can extract out to display the strings. Pulling out the help strings would require a reference back to the original TLB or emitting the TLB directly which would require a fair amount of new code.

@ToniSimi
Copy link
Author

Ok, understood. Maybe you can use/modify/extend/... the TypeLibConverter from NET Core and include your desired improvements in the code instead of creating something new from scratch:
https://github.com/Microsoft/referencesource/blob/master/mscorlib/system/runtime/interopservices/typelibconverter.cs

Just an idea. :-)

@hakito
Copy link

hakito commented Feb 8, 2022

So could you at least implement showing the DISPIDs?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants