Autor Beitrag
Blazej
Hält's aus hier
Beiträge: 3

wnxp
delphi6
BeitragVerfasst: Do 18.12.03 12:20 
Hi,

I have a problem using a dll written i C++ invoking from Delphi6.
this do not work, how to pass pointer structures (type) to dll ?


Moderiert von user profile iconKlabautermann: Delphi- und Code-Tags hinzugefügt.


Zuletzt bearbeitet von Blazej am Do 01.04.04 11:07, insgesamt 1-mal bearbeitet
Christian S.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 20451
Erhaltene Danke: 2264

Win 10
C# (VS 2019)
BeitragVerfasst: Do 18.12.03 13:04 
Hi!

I'm not really familliar in using C++-DLLs in Delphi. But perhaps you can find the problem in the typedef:
In C++ you defined "lengt" as an unsigned int, which has 4 Bytes on common systems, I think. But in Delphi you defined "lent" as a word, which has only 2 Bytes. That could be the problem.

As I said, I'm neither familiar to C++-DLLs in Delphi, nor am I familiar to C++, too (I've been only learning it for the last few weeks).

Hope, that helps a bit!

Greetings
Peter

_________________
Zwei Worte werden Dir im Leben viele Türen öffnen - "ziehen" und "drücken".