Hello World!

This Tutorial shows you how to build an own component for ACF. For implementation and build you have to prepare the development environment.

The application in the end will look like:

First of all we have to talk about the definition of a component and package. In ACF black-box components are used. The black-box component is a sealed object where no statements to the internal build-up and thier functionality can be made. The component can only be accessed through the C++ interfaces. In gerneral a component looks like:

A package is a container where the components are placed and normally composed together in a functional umbrella term.

We recomend ACF standard directory structure to work with ACF directory structure.

For our example it could be:

HelloWorld

Config

Full.xpc

Impl

HelloWorldPck

VC9

HelloWorldPck.vcproj

HelloWorldPck.h
HelloWorldPck.cpp

Includes

helloworld

VC9

helloworld.vcproj

CHelloWorldComp.h
CHelloWorldComp.cpp
CHelloWorldComp.ui
CHelloWorldComp.moc

Bin

DebugVC9
ReleaseVC9

Lib

DebugVC9
ReleaseVC9

Now let us implement a simple GUI component,which shows "Hello World" text.

Following steps must be done:

  1. Make a GUI with Qt Designer
  2. Implement the component class
  3. Register the component in the package

CHelloWorldGuiComp.png (4.2 kB) Anonymous, 11/28/2011 04:28 pm

componentuml.png (12.6 kB) Anonymous, 12/08/2011 12:10 pm

Chelloworldguicomp Componentuml