Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 494533
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T05:30:19+00:00 2026-05-13T05:30:19+00:00

Task: Application written in Delphi accepts a structure ( record in terms of Delphi)

  • 0

Task:

Application written in Delphi accepts a structure (record in terms of Delphi) of three fields. I can send the pointer of this structure using SendMessage (Win32 API) function.

So a question is:

How to maintain certain structure representation in memory for Delphi in terms of Delphi?

It has type

PWPModPostData = ^ TWPModPostData;
TWPModPostData = record
   DataType: Integer;
   Data: PChar;
   Next: PWPModPostData;
end;

How to define it in C? I mean, is there any hidden or service fields in Delphi structures?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T05:30:19+00:00Added an answer on May 13, 2026 at 5:30 am

    No, there are no hidden fields, and Delphi records and C structs can be mapped to each other 1:1, with a few caveats:

    • Don’t use any data type C doesn’t
      understand. This includes objects,
      dynamic arrays, and Delphi strings.

    • C and Delphi sometimes have different
      ideas about how to byte-align fields.
      Test your records and verify that
      they work on the C side. If they
      don’t, try using packed record
      instead of record.

    • When passing a pointer to a record
      from C to Delphi or vice versa, make
      sure that the side receiving it
      doesn’t try to free or reallocate the
      memory. It belongs to the memory
      manager that created it.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have written an application (using Delphi 2009) that allows a user to select
my java application has a loading task which requires two server calls which can
I'm using DRb within a Rails application to offload an expensive task outside the
Forgive me for probably using the wrong term for this application mode. Our application
How can a Windows console application written in C# determine whether it is invoked
A legacy web application written using PHP and utilizing MySql database needs to be
Always when I run java application it will display in Windows Task Manager is
I am to take up the task of porting a C++ networking application code
What is the preferred way to create a background task for a Rails application?
I have a WinForms application written in C# for .NET 3.5 that needs to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.