Does Delphi XE2 FireMonkey support Indy for cross-

2019-02-16 20:41发布

Looking at the new Delphi XE2 with Firemonkey. Considering that it compiles for Windows, Mac OSX and iOS, VCL components are useless in a FireMonkey application.

My question is: Is there/will there be an Indy Firemonkey Edition? Cause I seriously need the IdHTTP.Post();. If not, is there a way to do this in FireMonkey?

I have been googling for quite awhile now, not finding anything. :S

4条回答
乱世女痞
2楼-- · 2019-02-16 20:50

VCL means Visual Component Library. There's nothing about Indy that is "visual" (meaning "seen at runtime"), meaning that "VCL components are useless in a FireMonkey application" has no relevance to Indy.

You can create a new FireMonkey HD application in Delphi XE2, target OS X, and the Indy component pages are still available in the IDE, meaning that they are compatible with supported FireMonkey cross-platform targets. They're also available for FireMonkey HD Windows targets (32 and 64 bit).

查看更多
我命由我不由天
3楼-- · 2019-02-16 20:52

I made a client server example using tcp indy http://www.freelancecode.net/community/viewtopic.php?f=35&t=246

查看更多
Lonely孤独者°
4楼-- · 2019-02-16 21:09

Indy ships with the IDE (and has since D6) so there is nothing extra to buy if you already have XE2 installed. Also, Indy is open-source, so you can upgrade an Indy installation using source code from Indy's public access SVN server or mirror.

Regarding FireMonkey, Indy does work in FireMonkey. Indy uses whatever the native socket API is on a given platform (WinSock on Windows, Posix on Mac, libc on Kylix, etc).

The only known gotcha with Indy under FireMonkey at the moment is the TIdAntiFreeze component is not available at design-time. The IDE cannot resolve it correctly due to the non-standard way it is packaged (to be adressed in Indy 11). You can instantiate it programmably in code at run-time, though.

查看更多
倾城 Initia
5楼-- · 2019-02-16 21:11

The Components Not Used in iOS Apps DocWiki page for Delphi XE2 lists most of the Indy classes:

The following list is the set of components (along with the used units) that might be available in the Tool Palette for iOS applications, but are not supported for iOS applications.

查看更多
登录 后发表回答