Версия для печати темы

Нажмите сюда для просмотра этой темы в обычном формате

Форум «Всё о Паскале» _ Делфи _ Программы для Windows Mobile

Автор: kosyak 14.11.2008 3:03

Доброе всем время суток.

Хотел бы узнать можно ли на Delphi писать программы для Windows mobile для смартфонов?

Автор: volvo 14.11.2008 3:18

Можно, но для этого потребуется Дельфи не ниже 2005. Информация - http://dn.codegear.com/article/33507

Автор: kosyak 14.11.2008 12:12

Цитата(volvo @ 13.11.2008 23:18) *

Можно, но для этого потребуется Дельфи не ниже 2005. Информация - http://dn.codegear.com/article/33507


А нету на русском документации?
заранее спасибо...

Автор: volvo 14.11.2008 13:39

Нет, русскоязычной информации о разработке под WinMobile на Паскале/подобных языках я в сети не встречал. Единственное, что есть - это статья http://freepascal.ru/article//freepascal/20070830083000/, где рассматривается также и использование Lazarus-а, но этой статье уже почти полтора года, вполне возможно, что она устарела...

Автор: kosyak 14.11.2008 19:47

Понятно... спасибо, volvo

Автор: X 16.12.2008 18:36

1. Create a new WinForm application in Delphi 2006:
File -> New -> Windows Forms Application – Delphi for .NET

2. Add a button to its form

3. Click on the button and add an event handler, like:
MessageBox.Show('hello');

4. Change the project search path to refer to the CF assemblies:
Project -> Options, go to the Directories/Conditionals page,
replace the Search Path with "C:\Program Files\Borland\BDS\4.0\lib\cf"
(or similar, depending on your installation).

5. Build, and you'll get errors for the 6 lines of code with
properties/methods not supported by CF.
Delete those lines
(SuspendLayout, Name x 2, TabIndex, AutoScaleBaseSize, ResumeLayout).

6. Build again. Error in the project file on the threading model.
Delete the line with "[STAThread]".

7. Build again.

8. You can now copy the resulting executable file to your PocketPC device,
or move it to the shared folder of the emulator. It will work.

9. Add one line of code to the form constructor (Self.MinimizeBox := False;)
to close the application automatically, otherwise deploying a new version
will become complex, as you'll have to terminate the program from the PocketPC
Control Panel.