Commit 12dfc56f by 李定达

1.POSDLL.dll回退到老的版本;

parent 8e25cd2c
...@@ -226,7 +226,7 @@ bool _LoadPosdll(void) ...@@ -226,7 +226,7 @@ bool _LoadPosdll(void)
int err = GetLastError(); int err = GetLastError();
return false; return false;
} }
//typedef void (_stdcall *WriteLog) (unsigned char,char *, ...); typedef void (_stdcall *WriteLog) (unsigned char,char *, ...);
VC_Log_WriteLog = (WriteLog)GetProcAddress(g_hLog, "WriteLog"); VC_Log_WriteLog = (WriteLog)GetProcAddress(g_hLog, "WriteLog");
g_htscdll = LoadLibrary("tsclib.dll"); g_htscdll = LoadLibrary("tsclib.dll");
...@@ -237,6 +237,7 @@ bool _LoadPosdll(void) ...@@ -237,6 +237,7 @@ bool _LoadPosdll(void)
return false; return false;
} }
BPLA_SetSaveFile = (mBPLA_SetSaveFile) GetProcAddress(g_bplaLog,"BPLA_SetSaveFile"); BPLA_SetSaveFile = (mBPLA_SetSaveFile) GetProcAddress(g_bplaLog,"BPLA_SetSaveFile");
if(BPLA_SetSaveFile == NULL) if(BPLA_SetSaveFile == NULL)
...@@ -1100,7 +1101,7 @@ bool _LoadPosdll(void) ...@@ -1100,7 +1101,7 @@ bool _LoadPosdll(void)
VC_Log_WriteLog(4,"%s","VC_POS_PL_Clear加载失败"); VC_Log_WriteLog(4,"%s","VC_POS_PL_Clear加载失败");
return false; return false;
} }
/*****杂项---主要用于调试和自定义控制函数使用*****/ /******杂项---主要用于调试和自定义控制函数使用*****/
VC_POS_WriteFile = (POS_WriteFile) GetProcAddress(g_hPosdll,"POS_WriteFile"); VC_POS_WriteFile = (POS_WriteFile) GetProcAddress(g_hPosdll,"POS_WriteFile");
if(VC_POS_WriteFile == NULL) if(VC_POS_WriteFile == NULL)
{ {
...@@ -1192,7 +1193,7 @@ bool _UnloadLogdll(void) ...@@ -1192,7 +1193,7 @@ bool _UnloadLogdll(void)
return false; return false;
} }
FreeLibrary(g_hLog); FreeLibrary(g_hLog);
VC_Log_WriteLog(1,"%s","LogDLL卸载完成"); //VC_Log_WriteLog(1,"%s","LogDLL卸载完成");
return true; return true;
} }
...@@ -2060,7 +2061,7 @@ int PrintCloseBpla(char *page, char *num) ...@@ -2060,7 +2061,7 @@ int PrintCloseBpla(char *page, char *num)
//VC_Log_WriteLog(1," %s:%d","打印纸高度", myhigh); //VC_Log_WriteLog(1," %s:%d","打印纸高度", myhigh);
//BPLA_SetPaperLength(0, 0); //BPLA_SetPaperLength(myhigh, 0);
//if(var != BPLA_OK) //if(var != BPLA_OK)
//{ //{
...@@ -2076,7 +2077,7 @@ int PrintCloseBpla(char *page, char *num) ...@@ -2076,7 +2077,7 @@ int PrintCloseBpla(char *page, char *num)
return 0; return 0;
} }
//var = BPLA_SetAllRotate(0); //var = BPLA_SetAllRotate(1);
//if(var != BPLA_OK) //if(var != BPLA_OK)
//{ //{
...@@ -2120,6 +2121,7 @@ int PrintCloseBpla(char *page, char *num) ...@@ -2120,6 +2121,7 @@ int PrintCloseBpla(char *page, char *num)
TRUETYPEFONTSTYLE founttype = {0, 0, 0}; TRUETYPEFONTSTYLE founttype = {0, 0, 0};
var = BPLA_PrintTruetypeStyle(tmpdata, argv.x, atoi(m_printclass.tsc_high.data())*10 - argv.y - argv.font_size*1.5, tmpfont_name, argv.font_size*0.78, argv.font_size*0.58, &founttype, 1); var = BPLA_PrintTruetypeStyle(tmpdata, argv.x, atoi(m_printclass.tsc_high.data())*10 - argv.y - argv.font_size*1.5, tmpfont_name, argv.font_size*0.78, argv.font_size*0.58, &founttype, 1);
//var = BPLA_PrintTruetypeStyle(tmpdata, argv.x, 6000, tmpfont_name, argv.font_size*0.78, argv.font_size*0.58,&founttype, 1);
//TSC_windowsfont(argv.x, argv.y, argv.font_size, argv.rotate, argv.font_type, argv.line, tmpfont_name, tmpdata); //TSC_windowsfont(argv.x, argv.y, argv.font_size, argv.rotate, argv.font_type, argv.line, tmpfont_name, tmpdata);
if(var != BPLA_OK) if(var != BPLA_OK)
{ {
......
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment