nativelibs4java / JNAerator

JNAerator: native bindings generator for JNA / BridJ / Node.js
http://jnaerator.googlecode.com
510 stars 109 forks source link

Please add -scanSymbols support for .tlb and .exe files #40

Open ochafik opened 9 years ago

ochafik commented 9 years ago

From @bernard01 on December 31, 2012 22:57

Hi,

Hopefully some java source code can be generated from type libraries. These can be extracted from .tlb files, .dll files, .exe files and possibly others.

I used jacoZoom to generate from SketchUp.exe. http://www.sketchup.com has a free version. This was only partially successful because jacoZoom and others do not support UDT arrays in parameters. But there may be other .exe files that are easier to generate from.

DesignCad 3dMax http://www.imsidesign.com/Products/DesignCADSeries/DesignCAD3DMAXV22/tabid/1832/Default.aspx has a trial download. It contains Dcad22.tlb in its root program directory. jacoZoom generates good java files from it.

It would be really nice if jnaerator could be the reference starting point for interfacing with ANY native library because it seems that support for other java native open source projects and even some commercial products is no longer available.

Thanks.

Copied from original issue: ochafik/nativelibs4java#353

ochafik commented 9 years ago

Hi @bernard01 ,

Thanks a lot for your suggestion!

Such a feature would be very cool indeed, although I don't know how much work it would require yet. (note to self: see this thread for reference: https://groups.google.com/forum/?fromgroups=#!topic/jna-users/6jkl6I8H1hk )

Cheers