FreeMaster Development library

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

FreeMaster Development library

3,329 次查看
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
标签 (1)
0 项奖励
回复
5 回复数

1,678 次查看
NLFSJ
Contributor III
Which part number are you using with the FreeMaster Development Library?
0 项奖励
回复

1,678 次查看
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 项奖励
回复

1,678 次查看
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 项奖励
回复

1,678 次查看
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 项奖励
回复

1,678 次查看
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 项奖励
回复