码迷,mamicode.com
首页 > Windows程序 > 详细

FreePascal Users guide 2.6 7.3.2 Missing calls / API incompatibilities

时间:2015-02-20 10:49:01      阅读:180      评论:0      收藏:0      [点我收藏+]

标签:

Delphi 和Windows紧密地结合在一起,所以它的API引入了很多Windows的概念(比如文件搜索,打开和加载库文件等等)。

FreePascal 被设计为可移植的,所以太贴近Windows的特性被舍弃了。下面是需要注意的要点:
 Widestrings. Widestring management is not automatic in Free Pascal, since various platforms
have different ways of dealing with widestring encodings and Multi-Byte Character Sets. FPC
supports Widestrings, but may not use the same encoding as on Windows.
Note that in order to have 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默认生成控制台应用程序。你需要在生成Windows GUI应用程序的时候显示启用这个特性:
{$APPTYPE GUI}
  • Windows 单元提供了访问大多数Win32 核心API的功能。其中的一些调用通过指针(就像C语言)而不是通过引用来传递参数(var关键字)。针对大多数的这类调用,FreePascal提供了重载版本。
  • 宽字符串。

FreePascal Users guide 2.6 7.3.2 Missing calls / API incompatibilities

标签:

原文地址:http://www.cnblogs.com/mopno1/p/4296436.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!