Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

sending char buffer from c dll to delphi

Posted on 1997-07-12
1
Medium Priority
?
381 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 20 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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

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…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…
Suggested Courses

604 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