FreePascal Users Guide 2.6 7.3.2 Missing Calls/api incompatibilities

Source: Internet
Author: User

Delphi and windows are tightly coupled, so its API introduces a lot of Windows concepts (such as file searches, opening and loading library files, etc.).

FreePascal is designed to be portable, so features that are too close to windows are discarded. Here are the points to note:
Widestrings. Widestring management is isn't automatic in free Pascal, since various platforms
has different ways of dealing with widestring encodings and multi-byte Character sets. Ip
Supports widestrings, but could not use the same encoding as on Windows.
Note that in order to has correct widestring management, you need to include the cwstring
Unit on Unix/linux platforms:this unit initializes the Widestring manager with the necessary
Callbacks which use the C library to implement all needed widestring functionality.

    • FreePascal the console application is generated by default. You need to enable this feature when building a Windows GUI application:
{$APPTYPE GUI}
    • The Windows unit provides access to most of the Win32 core API features. Some of these calls pass parameters (the var keyword) through pointers (just like the C language) rather than by reference. For most of these types of calls, FreePascal provides an overloaded version.
    • A wide string.

FreePascal Users Guide 2.6 7.3.2 Missing Calls/api incompatibilities

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.