|
|
@@ -3,6 +3,9 @@
|
|
|
#include "../pch/pch.h"
|
|
|
#include "../order/CWaimaiOrder.h"
|
|
|
|
|
|
+#include <gdiplus.h>
|
|
|
+using namespace Gdiplus;
|
|
|
+
|
|
|
//SetupDiGetInterfaceDeviceDetail所需要的输出长度,定义足够大
|
|
|
#define INTERFACE_DETAIL_SIZE 1024
|
|
|
|
|
|
@@ -50,7 +53,7 @@ private:
|
|
|
int GetPrinterType(wstring vid, wstring pid);
|
|
|
|
|
|
int WriteData(string meg);
|
|
|
- int WriteBuf(const char* buf, int len);
|
|
|
+ int WriteBuf(const unsigned char* buf, int len);
|
|
|
|
|
|
//端口连通性测试
|
|
|
bool PortTest(HANDLE hPort);
|
|
|
@@ -68,7 +71,8 @@ private:
|
|
|
|
|
|
int POS_TextOut(string abc, bool is_double_width = false, bool is_double_height = false, int align_type = 0);
|
|
|
int POS_CutPaper();
|
|
|
- int POS_OutQRCode();
|
|
|
+ int POS_OutQRCode(std::string data);
|
|
|
+ void PrintBmp(Bitmap* bmp);
|
|
|
|
|
|
//标签打印机的处理方法
|
|
|
void BIAOQIAN_Reset();
|