Solved

sending char buffer from c dll to delphi

Posted on 1997-07-12
1
379 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
This is a high-level webinar that covers the history of enterprise open source database use. It addresses both the advantages companies see in using open source database technologies, as well as the fears and reservations they might have. In this…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…

729 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