
microCOR Lab Examples
=====================

These are the examples to the proper API's of the microCOR Lab product.
You can find precompiled executables for 32 bit Windows in the bin/ directory.


C API Example
-------------

C API example is in the c/ directory. There is a Qt project file to easily build
the example with QMake. But it is not dependent to Qt to build. Only have
runtime dependency to Qt4 (QtCore4.dll). You can use any compiler which can link
the prebuilt library.

To build and run the C example with QMake:

    C:\<path-to-sdk>\examples\c> qmake c.pro
    C:\<path-to-sdk>\examples\c> nmake
    C:\<path-to-sdk>\examples\c> c



C++ API Example
---------------

C++ API is in the c++/ directory. This example have both build and runtime
dependency to Qt4 (QtCore4.dll and QtGui4.dll).

You can build and run the C++ example with QMake at the command line :

    C:\<path-to-sdk>\examples\cpp> qmake cpp.pro
    C:\<path-to-sdk>\examples\cpp> nmake
    C:\<path-to-sdk>\examples\cpp> cpp

Note :  You need to add proper QMake to your PATH. You can use this menu path to
        open a prepared command line at windows after install the Qt4.8.6 for
        Visual Studio 2010 :
            Start > Programs > Qt by Digia v4.8.6 (VS2010 OpenSource)
            > Qt 4.8.6 Command Prompt

To develop with Qt, we recommend Qt Creator which comes with latest Qt SDK.

Tip: You can build cleanly like this:

    C:\<path-to-sdk>\examples> mkdir build
    C:\<path-to-sdk>\examples> cd build
    C:\<path-to-sdk>\examples\build> qmake ..\examples.pro
    C:\<path-to-sdk>\examples\build> nmake



MATLAB GUI Example
------------------

MATLAB GUI Example is in the matlab/ directory. To build, only MATLAB is
sufficient. To run the example, it needs microCORLab and Qt4 shared libraries.
Added lib/win32 directory to PATH'e to run the example.

You can run the example with:
    >> cd <path-to-sdk>\examples\matlab
    >> run example
