5 messages in net.java.dev.jna.usersRe: [jna-users] How do I call a metho...
FromSent OnAttachments
chri...@rwe.comJun 19, 2008 11:29 pm 
Nikolas LotzJun 20, 2008 3:06 am 
Jay WaltersJun 20, 2008 5:41 am 
Nikolas LotzJun 20, 2008 7:17 am 
Timothy WallJun 21, 2008 4:08 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: [jna-users] How do I call a method of a C++ class?Actions...
From:Nikolas Lotz (nlo@nde.ag)
Date:Jun 20, 2008 3:06:07 am
List:net.java.dev.jna.users

I'm having big problems because I don't know how I should call a C++ class. At least I assume it's C++, because I have no documentation.

1. write a small C-library that deals with the C++ code 2. compile it as a DLL and call this library from JNA

All I can do is to look at the method I want to call from Excels object catalogue. This catalogue says that there is a DLL named FINDATECOMlib that is stored in the file FinDateCOM.dll . In it, there is the class TCExtraHolSchedule. From that class, I'd like to call the method DownLoadTCExtraHolSchedule. The whole documentation of this method therefore states: Function DownLoadTCExtraHolSchedule(TradingCenter As String, FileStrName As String) As Long Element von FINDATECOMLib.TCExtraHolSchedule method DownLoadTCExtraHolSchedule

to get more details on the functions exported by a DLL use this tool: http://www.dependencywalker.com

Does anybody have a clue? How do I call the constructor of that C++ class? Any help would be highly appreciated.

as stated above the only feasible way we found is to use C-wrappers.

Vorsitzende des Aufsichtsrates: Angelika Mozdzen Sitz und Registergericht: Hamburg, HRB 90934 Vorstand: Jens-U. Mozdzen USt-IdNr. DE 814 013 983