Solved

sending char buffer from c dll to delphi

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
proper way to parse url in delphi 2 160
Strange behavior when a form is closed 6 51
SUM 2 INTEGER ARRAYS INTO 1 10 93
I want to use librsync in my Delphi backup application. 3 27
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…
Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

911 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

16 Experts available now in Live!

Get 1:1 Help Now