From 889044f1c7cdb76254c49dd078fa1ef8e93c3f3a Mon Sep 17 00:00:00 2001 From: LAPTOP-SNT8I5JK\Boounion <Chenluhua@qq.com> Date: 星期四, 09 一月 2025 11:44:23 +0800 Subject: [PATCH] 1.PLC模拟从文件加载,连接; 2.修复内存泄露问题; --- SourceCode/Bond/BoounionPLC/stdafx.h | 18 ++++++++++++++++++ 1 files changed, 18 insertions(+), 0 deletions(-) diff --git a/SourceCode/Bond/BoounionPLC/stdafx.h b/SourceCode/Bond/BoounionPLC/stdafx.h index d43089c..3d75ce0 100644 --- a/SourceCode/Bond/BoounionPLC/stdafx.h +++ b/SourceCode/Bond/BoounionPLC/stdafx.h @@ -40,6 +40,24 @@ #include "..\McLibrarySDK\include\McLib.h" +// 数据库模块 +#include "..\DatabaseSDK\include\Database.h" +#include "..\DatabaseSDK\include\MySQLDatabase.h" +#include "..\DatabaseSDK\include\SQLiteDatabase.h" + +#if defined(_WIN64) +#if defined(_DEBUG) +#pragma comment(lib, "..\\DatabaseSDK\\lib\\x64\\Debug\\DatabaseEx.lib") +#else +#pragma comment(lib, "..\\DatabaseSDK\\lib\\x64\\Release\\DatabaseEx.lib") +#endif +#else +#if defined(_DEBUG) +#pragma comment(lib, "..\\DatabaseSDK\\lib\\Win32\\Debug\\DatabaseEx.lib") +#else +#pragma comment(lib, "..\\DatabaseSDK\\lib\\Win32\\Release\\DatabaseEx.lib") +#endif +#endif #ifdef _UNICODE -- Gitblit v1.9.3