FreeMaster Development library

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

FreeMaster Development library

2,208 Views
Luca_Cml
Contributor I
Hi everyone!

I would like to build a Visual C++ application to interface a motor control board using the FreeMaster development library. In the Freemaster installation folder I have a subfolder named UserDev, containing two C header files (mcbcom.h and mcberr.h) and a static C library (mcbc12.lib).
I tried to build a simple Visual C++ console project, including the two headers, but it did not work. A lot of mistakes were found by the compiler in the mcbcom.h file.

Does anyone know how to make it working? (Did anyone try to do something like that?)

Thanks for helping!

Luca
Labels (1)
0 Kudos
5 Replies

557 Views
NLFSJ
Contributor III
Which part number are you using with the FreeMaster Development Library?
0 Kudos

557 Views
Luca_Cml
Contributor I
Ok.. I solved the problem.. I just had to include a couple of header files such as

#include <windows.h>
#include "atlbase.h"

because without them some definitions of type are missing.
Now it works fine.
Will it be useful to send a copy of the code as a project example? If anyone is interested..

Thanks anyway!

Luca

0 Kudos

557 Views
waltercolombo
Contributor II

Hi Luca,

I'm interessed to learn Freemaster/GUI,

I'd really like you to send me your codee for use as exemple.

Thanks!


Walter.

0 Kudos

557 Views
anderbernues
Contributor I

Hi Luca,

I´m very interested in develop a program with freemaster development library, As I´m not very skiled using c++ I would like you to send me a copy of the code as a project example.

Thanks.

0 Kudos

557 Views
anderbernues
Contributor I

What's wrong in this code?

LPCOLESTR connectString=L"RS232;COM1;speed=9600" ;
HMCBCOM* phCom = new HMCBCOM;

DWORD retVal= McbOpenComEx( phCom,  connectString);

// If failed we need to break
if (FAILED(retVal))
{

}

0 Kudos