Using Freemaster via Delphi

cancel
Showing results for 
Search instead for 
Did you mean: 

Using Freemaster via Delphi

189 Views
LorenzoB
Contributor II

I need to interface to freemaster from my application written in Delphi.
Unfortunately, I have not found any examples that illustrate how it works using my development system.
I saw that it is possible to use it via Activex, but the import procedure inside the development system does not find anything related to Freemaster. I wanted to know if anyone has experience in this regard and is able to give me some guidelines to follow.
I would also like to go directly via mcbc12.dll, but I miss the interface unit to use inside Delphi, only the h file exists for C ++.

LorenzoB
0 Kudos
2 Replies

178 Views
MichalH
NXP Employee
NXP Employee

Dear Lorenzo,

I'm sorry I'm not familiar with how Delphi interfaces to ActiveX objects, so I can only give you some general comments. I believe you will need a type library to create a ActiveX wrapper object in Delphi.

  • The ActiveX type library is a part of the pcmaster.exe, some ActiveX clients are able to load it directly from the executable.
  • The type library is also registered in Windows Registry as "FreeMASTER ActiveX Type Library" - this import works for example in our Excel/Visual Basic examples. 
  • The low-level registry object name is MCB.PCM - perhaps, you will be able to find it under this name.
  • There is also a pcmaster.tlb file in the FreeMASTER installation, you may try to import it directly.

 

You write about mcbc12.dll - this is a low level communication library of the older FreeMASTER version.

  • Please make sure to update to the latest FreeMASTER 3.1 (see https://nxp.com/freemaster)
  • The new mcbc30.dll replaces the older version of the DLL.
  • But anyways, it is not practical to interface to this low-level DLL from your Delphi code. The ActiveX interface should be the one you want to use.

 

Regards,
Michal

0 Kudos

168 Views
LorenzoB
Contributor II

Ok I'll try to do some tests to interface the ActiveX directly.

 

thaks

Lorenzo

LorenzoB
0 Kudos