Solved

sending char buffer from c dll to delphi

Posted on 1997-07-12
1
378 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

732 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