Windows MQTT client for Borland C++ Builder
-
Create paho-mqtt3c.dll using Visual Studio from the eclipse-paho-mqtt-c-src-1.2.0\Windows Build\Paho C MQTT APIs.sln
-
Make paho-mqtt3c.lib from paho-mqtt3c.dll using follow script implib -c -f -a paho-mqtt3c.lib paho-mqtt3c.dll tdump paho-mqtt3c.lib > paho-mqtt3c.lib.txt tdump paho-mqtt3c.dll > paho-mqtt3c.dll.txt
-
Modify MQTTClient.h as follow ...
#if defined(__cplusplus)
extern "C" {
#endif
#if !defined(MQTTCLIENT_H)
#define MQTTCLIENT_H
#if defined(BORLANDC)
#pragma option push
#pragma option -VC
#define CALL __stdcall
#else
#define CALL
#endif ...
DLLExport int CALL MQTTClient_setCallbacks(MQTTClient handle, void* context, MQTTClient_connectionLost* cl, MQTTClient_messageArrived* ma, MQTTClient_deliveryComplete* dc); ...
#if defined(BORLANDC)
#pragma option pop
#endif
#endif
#ifdef __cplusplus
}
#endif