FreeMaster Development library

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

FreeMaster Development library

3,282件の閲覧回数
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,631件の閲覧回数
NLFSJ
Contributor III
Which part number are you using with the FreeMaster Development Library?
0 件の賞賛
返信

1,631件の閲覧回数
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,631件の閲覧回数
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,631件の閲覧回数
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,631件の閲覧回数
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 件の賞賛
返信