Plant Simulation 基于Windows消息系统跨线程通讯方案
Plant Simulation 基于Windows消息系统跨线程通讯方案
请注意 PlantSimulation 安装目录下 D:\Program Files\Siemens\Tecnomatix Plant Simulation XXXX\C-Interface 存在该文件夹 其中.sln 就是官方已经提供给我们的最原始的开发环境。
官方提供的发送代码如下:
// The following function causes Plant Simulation to call the
// callback 'MessageCallback' below with the argument 'userdata'.
// This function can be called from any thread.
extern "C" __declspec(dllexpo