Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.clipper.visual-objects > #9386 > unrolled thread
| Started by | Alexander Schmitt <alexander.schmitt@paidosoft.de> |
|---|---|
| First post | 2016-05-31 03:52 -0700 |
| Last post | 2016-06-20 12:35 +0200 |
| Articles | 3 on this page of 23 — 5 participants |
Back to article view | Back to comp.lang.clipper.visual-objects
How to integrate C DLL into VO and generate interface code Alexander Schmitt <alexander.schmitt@paidosoft.de> - 2016-05-31 03:52 -0700
Re: How to integrate C DLL into VO and generate interface code "Wolfgang Riedmann" <wriedmann@gmail.com> - 2016-05-31 16:11 +0200
Re: How to integrate C DLL into VO and generate interface code "Karl-Heinz" <invalid@invalid.invalid> - 2016-05-31 16:07 +0200
Re: How to integrate C DLL into VO and generate interface code alexander.schmitt@paidosoft.de - 2016-06-01 02:13 -0700
Re: How to integrate C DLL into VO and generate interface code "Wolfgang Riedmann" <wriedmann@gmail.com> - 2016-06-01 12:36 +0200
Re: How to integrate C DLL into VO and generate interface code "Karl-Heinz" <invalid@invalid.invalid> - 2016-06-01 12:37 +0200
Re: How to integrate C DLL into VO and generate interface code alexander.schmitt@paidosoft.de - 2016-06-14 14:05 -0700
Re: How to integrate C DLL into VO and generate interface code "Wolfgang Riedmann" <wriedmann@gmail.com> - 2016-06-15 08:59 +0200
Re: How to integrate C DLL into VO and generate interface code "Karl-Heinz" <invalid@invalid.invalid> - 2016-06-15 09:40 +0200
Re: How to integrate C DLL into VO and generate interface code "Gerhard Bunzel" <g.bunzel@domonet.de> - 2016-06-15 14:34 +0200
Re: How to integrate C DLL into VO and generate interface code alexander.schmitt@paidosoft.de - 2016-06-15 14:06 -0700
Re: How to integrate C DLL into VO and generate interface code "Wolfgang Riedmann" <wriedmann@gmail.com> - 2016-06-16 05:56 +0200
Re: How to integrate C DLL into VO and generate interface code "Wolfgang Riedmann" <wriedmann@gmail.com> - 2016-06-16 06:03 +0200
Re: How to integrate C DLL into VO and generate interface code alexander.schmitt@paidosoft.de - 2016-06-16 14:28 -0700
Re: How to integrate C DLL into VO and generate interface code alexander.schmitt@paidosoft.de - 2016-06-19 13:23 -0700
Re: How to integrate C DLL into VO and generate interface code "Wolfgang Riedmann" <wriedmann@gmail.com> - 2016-06-20 07:29 +0200
Re: How to integrate C DLL into VO and generate interface code "Wolfgang Riedmann" <wriedmann@gmail.com> - 2016-06-21 06:21 +0200
Re: How to integrate C DLL into VO and generate interface code alexander.schmitt@paidosoft.de - 2016-06-22 12:37 -0700
Re: How to integrate C DLL into VO and generate interface code "Wolfgang Riedmann" <wriedmann@gmail.com> - 2016-06-23 04:05 +0200
Re: How to integrate C DLL into VO and generate interface code alexander.schmitt@paidosoft.de - 2016-07-03 13:53 -0700
Re: How to integrate C DLL into VO and generate interface code "Karl-Heinz" <invalid@invalid.invalid> - 2016-07-05 21:19 +0200
Re: How to integrate C DLL into VO and generate interface code "Wolfgang Riedmann" <wriedmann@gmail.com> - 2016-06-20 09:16 +0200
Re: How to integrate C DLL into VO and generate interface code "Karl-Heinz" <invalid@invalid.invalid> - 2016-06-20 12:35 +0200
Page 2 of 2 — ← Prev page 1 [2]
| From | "Karl-Heinz" <invalid@invalid.invalid> |
|---|---|
| Date | 2016-07-05 21:19 +0200 |
| Message-ID | <du2fsnF62hoU1@mid.individual.net> |
| In reply to | #9498 |
Hi Alex,
honestly spoken: I never faced such a strange, weird DLL .....
>
> I translated "bool" in most of my attempts with VO-type "logic"
>
Of course a "LOGIC" is not a "BYTE" ! So i´m wondering why the interface
claims a "Bool" and not a "Byte" ? You can easily check the size:
? sizeof ( LOGIC )
? sizeof ( BYTE )
How does your final VO structure declaration look like ?
> calling the C++ function explicitely by reference: function(@struct)
> instead of function(struct). That also caused abort
again, it´s hard to understand the reason why ?
You have two options:
either:
--------------
local structInfo is TRPINFO
FuncTest ( @structInfo )
--------------
or :
-----------
local structInfo as TRPINFO
structInfo := memalloc ( _sizeof ( TRPINFO ) )
FuncTest ( structInfo )
memfree ( structInfo )
-----------
_DLL FuncTest ( strucInfo as TRPINFO ) ....
-----------
Regards
Karl-Heinz
[toc] | [prev] | [next] | [standalone]
| From | "Wolfgang Riedmann" <wriedmann@gmail.com> |
|---|---|
| Date | 2016-06-20 09:16 +0200 |
| Message-ID | <dspji9Fk3q8U1@mid.individual.net> |
| In reply to | #9386 |
Hi Alex, I have looked shortly at your interface. I have my doubts that this definition is the right one: _dll FUNCTION rfidOpenReader() as int PASCAL:EASYCHECK.?OpenReader@@YAHXZ IMHO the right one should be _dll function rfidOpenReader() as int pascal:easycheck.OpenReader I'll try to implement it as send you my findings. Wolfgang Alexander Schmitt wrote: > Hi there, > > I want to integrate a DLL (written in C) from a hardware supplier > into my VO 2.8 code and could not find relevant information in the > group. Or did not know where to search. > > I have a C-header file that provides information about the functions > plus the DLL. > > The DLL is obviously not an automation server, so Automation Server > interface generation from VO would not work. > > If I take a look into e.g. lib zip from Fabrice Foray, there is an > interface defined, e.g. _DLL FUNCTION GetZipDllVersion() AS DWORD > PASCAL:ZIPDLL.GetZipDllVersion > > Is there a way to automatically generate such interface code in VO? > Or would I rather guess and write manually? > > Best, > Alex --
[toc] | [prev] | [next] | [standalone]
| From | "Karl-Heinz" <invalid@invalid.invalid> |
|---|---|
| Date | 2016-06-20 12:35 +0200 |
| Message-ID | <dspv7vFmdvpU1@mid.individual.net> |
| In reply to | #9454 |
Hi Wolfgang, >I have my doubts that this definition is the right one: > >_dll FUNCTION rfidOpenReader() as int >PASCAL:EASYCHECK.?OpenReader@@YAHXZ i was wondering too at first sight. Seems to me that the DLL creation needs to be modified. Here´s a link that explains the "Export-Naming" behaviour we are facing. http://stackoverflow.com/questions/1467144/how-do-i-stop-name-mangling-of-my-dlls-exported-function Do you know the vendor of the DLL ? regards Karl-Heinz
[toc] | [prev] | [standalone]
Page 2 of 2 — ← Prev page 1 [2]
Back to top | Article view | comp.lang.clipper.visual-objects
csiph-web