Make A Windows Application In Dev C++fairpotent

  1. The App Store will support Strong Customer Authentication. We recommend that you verify your app’s implementation of StoreKit to make sure purchases are handled correctly. Now you can offer in‑app purchases directly in your watchOS apps, so users can access premium content, all right from their wrist.
  2. I'm involved into the development of Open IV, this is the biggest and the greatest project we ever did. For the system software development I prefer to use that programming language which is more suitable for the task, so most of my code is written on C/C and Delphi.

A desktop application in C++ is a native application that can access the full set of Windows APIs and either runs in a window or in the system console. Desktop applications in C++ can run on Windows XP through Windows 10 (although Windows XP is no longer officially supported and there are many Windows APIs that have been introduced since then).

A desktop application is distinct from a Universal Windows Platform (UWP) app, which can run on PCs running Windows 10, and also on XBox, Windows Phone, Surface Hub, and other devices. For more information about desktop vs. UWP applications, see Choose your technology.

Desktop Bridge

In DevCpp go FILE then NEW then Project, select Windows Application, give it a name (eg. Ball) click OK, the make a directory somewhere and save. DevCpp comes up with a template, delete that and cut and paste this code into the editor page.

In Windows 10 you can package your existing desktop application or COM object as a UWP app and add UWP features such as touch, or call APIs from the modern Windows API set. You can also add a UWP app to a desktop solution in Visual Studio, and package them together in a single package and use Windows APIs to communicate between them.

In Visual Studio 2017 version 15.4 and later, you can create a Windows Application Package Project to greatly simplify the work of packaging your existing desktop application. A few restrictions apply with respect to what registry calls or APIs your desktop application uses, but in many cases you can create alternate code paths to achieve similar functionality while running in an app package. For more information, see Desktop Bridge.


  • A Win32 application is a Windows desktop application in C++ that can make use of native Windows C APIs and/or COM APIs CRT and Standard Library APIs, and 3rd party libraries. A Win32 application that runs in a window requires the developer to work explicitly with Windows messages inside a Windows procedure function. Despite the name, a Win32 application can be compiled as a 32-bit (x86) or 64-bit (x64) binary. In the Visual Studio IDE, the terms x86 and Win32 are synonymous.

  • The Component Object Model (COM) is a specification that enables programs written in different languages to communicate with one another. Many Windows components are implemented as COM objects and follow standard COM rules for object creation, interface discovery and object destruction. Using COM objects from C++ desktop applications is relatively straightforward, but writing your own COM object is more advanced. The Active Template Library (ATL) provides macros and helper functions that simplify COM development.

  • Stud stablesamerican meadow's equestrian center facebook. An MFC application is a Windows desktop application that use the Microsoft Foundation Classes to create the user interface. An MFC application can also use COM components as well as CRT and Standard Library APIs. MFC provides a thin C++ object-oriented wrapper over the window message loop and Windows APIs. MFC is the default choice for applications—especially enterprise-type applications—that have lots of user interface controls or custom user controls. MFC provides convenient helper classes for window management, serialization, text manipulation, printing, and modern user interface elements such as the ribbon. To be effective with MFC you should be familiar with Win32.

  • A C++/CLI application or component uses extensions to C++ syntax (as allowed by the C++ Standard) to enable interaction between .NET and native C++code. A C++/CLI application can have parts that run natively and parts that run on the .NET Framework with access to the .NET Base Class Library. C++/CLI is the preferred option when you have native C++ code that needs to work with code written in C# or Visual Basic. It is intended for use in .NET DLLs rather than in user interface code. For more information, see .NET Programming with C++/CLI (Visual C++).

Any desktop application in C++ can use C Runtime (CRT) and Standard Library classes and functions, COM objects, and the public Windows functions, which collectively are known as the Windows API. For an introduction to Windows desktop applications in C++, see Get Started with Win32 and C++.

In this section

Windows Console Applications in C++Contains information about console apps. A Win32 (or Win64) console application has no window of its own and no message loop. It runs in the console window, and input and output are handled through the command line.
Walkthrough: Creating Windows Desktop Applications (C++)Create a simple Windows desktop application.
Creating an Empty Windows Desktop ApplicationHow to create a Windows desktop project that has no default files.
Adding Files to an Empty Win32 ApplicationsHow to add files to an empty project.
Working with Resource FilesHow to add images, icons, string tables, and other resources to a desktop application.
Resources for Creating a Game Using DirectX (C++)Links to content for creating games in C++.
Walkthrough: Creating and Using a Static LibraryHow to create a .lib binary file.
How to: Use the Windows 10 SDK in a Windows Desktop ApplicationContains steps for setting up your project to build using the Windows 10 SDK.

Related Articles

Windows DevelopmentContains information about the Windows API and COM. (Some Windows APIs and third-party DLLs are implemented as COM objects.)
Hilo: Developing C++ Applications for Windows 7Describes how to create a rich-client Windows desktop application that uses Windows Animation and Direct2D to create a carousel-based user interface. This tutorial has not been updated since Windows 7 but it still provides a thorough introduction to Win32 programming.
Overview of Windows Programming in C++Describes key features of Windows desktop programming in C++.

See also

English (en)español (es)русский (ru)

This article applies to Android only.

See also: Multiplatform Programming Guide

  • 1Windows
  • 2Linux

This is a quick tutorial on how to create android apps with Lazarus.

In this tutorial assume used versions JDK 1.6u45 + SDK 22.2.1 + ndk-r9 + Laz4Android1.1-41139-FPC2.7.1

Prepare folder

Create on C: a folder called 'Android'

Install JDK

1.6u45 (i have installed jdk-6u45-windows-x64.exe)arm-linux-androideabi/binhttp://www.oracle.com/technetwork/java/javasebusiness/downloads/java-archive-downloads-javase6-419409.html#jdk-6u45-oth-JPR

It will be installed in to C:Program FilesJava.

Install SDK

Go to http://developer.android.com/sdk/index.html


installer_r22.2.1-windows.exe (Recommended)

Install sdk (installer_r22.2.1-windows) into C:Androidandroid-sdk

Copy at 'C:Androidandroid-sdktools' the file 'apkbuilder.bat' (can be found here

https://github.com/ACSOP/android_sdk/raw/master/apkbuilder/etc/apkbuilder.bat )

Now update the SDK [WIN START > SDK Manager ]

add android 4.0 (API 14)

add android 2.2 (API 8]

Install packages.

Install NDK

Download only the file android-ndk-r9-windows-x86.zip

Unzip android-ndk-r9-windows-x86.zip into C:Androidandroid-ndk-r9

Make a windows application in dev c fair potent potion

Install Laz4Android

Download it from https://skydrive.live.com/?cid=89ae6b50650182c6&id=89AE6B50650182C6!149

New version can download from here:[1]

Unzip Laz4Android1.1-41139-FPC2.7.1.7z into C:Androidlaz4android





Edit the file C:Androidlaz4androidbuild.bat like this :

Run build.bat (doubleclick) -> It will compile & build lazarus.

Rebuild Laz4Android IDE

Run C:Androidlaz4androidlazarus.exe

Select 'Start IDE'

select 'Package' 'Install/Uninstall Packages'

select customdrawn 0.0 > install selection and hit save and rebuild IDE , continue

Compile the demo 'androidlcl'

Copy C:Androidlaz4androidexamplesandroidlcl at C:AndroidProjectsandroidlcl

Run 'C:Androidlaz4androidlazarus.exe'

File > open 'C:AndroidProjectsandroidlclandroidlcltest.lpr'

Project > project options

Compiler options > select 'Release TAndroid'

Paths >

Libraries -Ll :C:Androidandroid-ndk-r9platformsandroid-8arch-armusrlib;C:Androidandroid-ndk-r9toolchainsarm-linux-androideabi-4.6prebuiltwindowslibgccarm-linux-androideabi4.6

Target file name :androidlibsarmeabiliblclapp.so

Code generation

Linking :

Other : -dANDROID -Xd -CpARMV6 -FLlibdl.so

Ide macro values :macro name : LCLWidgetTypemacro value : customdrawn

NowRun > Compile this will generate this library :C:AndroidProjectsandroidlclandroidlibsarmeabiliblclapp.so [5.073 kb]


  • Edit with a text editor


Modify the first 6 lines like this :

Make A Windows Application In Dev C++fairpotent

Run 'generate_debug_key.bat'

Use as password : 'senhas'

This will produce the file :


  • Edit with a text editor


Modify the first 6 lines like this :

I had to change mine to this on sdk version 22:

run 'build_debug_apk.bat' answer at the questions and give the password 'senhas' when asked

This will generate

C:AndroidProjectsandroidlclandroidbinlcltest.apk [1.549 kb]

  • Create an Android Virtual Device

START > AVD Manager

New > AVD name > give a name

Device 5.1 WVGA

Target Android 4 API 14

Hit OK

Once created select the virtual device and hit 'start' > 'Launch' wait a couple of minutes.

  • Edit with a text editor


Modify like this :

Run 'adb_install.bat' . This will install the 'LCL Test' into your Virtual device

  • Debugging

Edit with a text editor the file


like this :

By running this you will get a debug file here :


Enjoy !


Note: Work in progress..

This is a quick tutorial on how to create android apps with Lazarus.

In this tutorial assume used versions are Ubuntu 13.10, OpenJDK 1.7.0_51, SDK 22.2.1, ndk-r9, Laz4Android1.1-41139-FPC2.7.1

Prepare folder

Create directory ~Android

Install OpenJDK

Make A Windows Application In Dev C Fair Potent Vitamin C Powder

Install SDK

Go to http://developer.android.com/sdk/index.html


android-sdk_r22.6.2-linux.tgz (Recommended)

Extract SDK () into ~Androidandroid-sdk

Now update the SDK (Start ~Androidandroid-sdktoolsandroid)

Make A Windows Application In Dev C++fairpotent

add android 4.0 (API 14)

add android 2.2 (API 8]

Install packages.

Install NDK

Download only the file android-ndk-r9d-linux-x86.tar.bz2

Extract android-ndk-r9d-linux-x86.tar.bz2 into ~Androidandroid-ndk-r9

Build FPC 2.7.1

Install latest FPC distribution package:

Download latest FPC trunk from SVN:

Build FPC trunk for ARM to ~/Android/fpc:

Rebuild Lazarus IDE

Run ~Androidlazarus

Select 'Start IDE'

select 'Package' 'Install/Uninstall Packages'

Make A Windows Application In Dev C Fair Potent Active

select customdrawn 0.0 > install selection and hit save and rebuild IDE , continue


Make A Windows Application In Dev C Fair Potent Weapon

Retrieved from 'https://wiki.lazarus.freepascal.org/index.php?title=Android_tutorial&oldid=99249'