Solved

sending char buffer from c dll to delphi

Posted on 1997-07-12
1
369 Views
Last Modified: 2010-08-05
Hi,
I am creating a BC 5. Dll (C file) that shuld get a char buffer from a Delphi program. 1)
Is it posible to transfer 'array of char' types and not only the PChar type ?
2) i am currently using DELPHI 1 and 16 bit DLL, what will be the diffrence when i'll
use DELPHI 2 and 32 bit DLL (something about protection of memory in WINnt ...) ?
0
Comment
Question by:gur
1 Comment
 
LVL 4

Accepted Solution

by:
erajoj earned 10 total points
ID: 1338661
Just declare it like this:

  function MyFunc(var Buffer; Size: Integer): Boolean; ...

or something. Then "Buffer" can be anything you want.
There should be no important difference between Win16 & Win32.
Not in this case anyway...

/// John

0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now