资源简介
支持所有标准ESC/POS指令集打印机,北洋、佳博、商祺等 支持串口、并口、USB、网口 1.4是目前最新的公用版本了,其它后续版本都有厂家的标示 包含DLL文件,帮助,VB/VC/DELPHI例程 下边是POS_OPEN函数原型 HANDLE POS_Open(LPCTSTR lpName,
代码片段和文件信息
#include “StdAfx.h“
#include “LoadDll.h“
HMODULE g_hPosdll = NULL;
/***************通用函数******************/
POS_Open VC_POS_Open = NULL;
POS_Close VC_POS_Close = NULL;
POS_Reset VC_POS_Reset = NULL;
POS_SetMode VC_POS_SetMode = NULL;
POS_SetMotionUnit VC_POS_SetMotionUnit = NULL;
POS_SetCharSetAndCodePage VC_POS_SetCharSetAndCodePage = NULL;
POS_FeedLine VC_POS_FeedLine = NULL;
POS_SetLineSpacing VC_POS_SetLineSpacing = NULL;
POS_SetRightSpacing VC_POS_SetRightSpacing = NULL;
POS_PreDownloadBmpToRAM VC_POS_PreDownloadBmpToRAM = NULL;
POS_PreDownloadBmpsToFlash VC_POS_PreDownloadBmpsToFlash = NULL;
POS_QueryStatus VC_POS_QueryStatus = NULL;
POS_NETQueryStatus VC_POS_NETQueryStatus = NULL;
POS_RTQueryStatus VC_POS_RTQueryStatus = NULL;
POS_KickOutDrawer VC_POS_KickOutDrawer = NULL;
POS_CutPaper VC_POS_CutPaper = NULL;
POS_StartDoc VC_POS_StartDoc = NULL;
POS_EndDoc VC_POS_EndDoc = NULL;
POS_EndSaveFile VC_POS_EndSaveFile = NULL;
POS_BeginSaveFile VC_POS_BeginSaveFile = NULL;
/***********只支持标准打印模式(行模式)的函数************/
POS_S_SetAreaWidth VC_POS_S_SetAreaWidth = NULL;
POS_S_TextOut VC_POS_S_TextOut = NULL;
POS_S_DownloadAndPrintBmp VC_POS_S_DownloadAndPrintBmp = NULL;
POS_S_PrintBmpInRAM VC_POS_S_PrintBmpInRAM = NULL;
POS_S_PrintBmpInFlash VC_POS_S_PrintBmpInFlash = NULL;
POS_S_SetBarcode VC_POS_S_SetBarcode = NULL;
/*******只支持页打印模式(P)或标签打印模式(L)的函数*******/
POS_PL_SetArea VC_POS_PL_SetArea = NULL;
POS_PL_TextOut VC_POS_PL_TextOut = NULL;
POS_PL_DownloadAndPrintBmp VC_POS_PL_DownloadAndPrintBmp = NULL;
POS_PL_PrintBmpInRAM VC_POS_PL_PrintBmpInRAM = NULL;
POS_PL_SetBarcode VC_POS_PL_SetBarcode = NULL;
POS_PL_Print VC_POS_PL_Print = NULL;
POS_PL_Clear VC_POS_PL_Clear = NULL;
/*****杂项---主要用于调试和自定义控制函数使用*****/
POS_WriteFile VC_POS_WriteFile = NULL;
POS_ReadFile VC_POS_ReadFile = NULL;
POS_SetHandle VC_POS_SetHandle = NULL;
POS_GetVersionInfo VC_POS_GetVersionInfo = NULL;
/***********加载动态库****************/
bool LoadPosdll(void)
{
g_hPosdll = LoadLibrary(“POSDLL.dll“);
if(!g_hPosdll)
{
return false;
}
/***************加载通用函数******************/
VC_POS_Open = (POS_Open) GetProcAddress(g_hPosdll“POS_Open“);
if(VC_POS_Open == NULL)
{
return false;
}
VC_POS_Close = (POS_Close) GetProcAddress(g_hPosdll“POS_Close“);
if(VC_POS_Close == NULL)
{
return false;
}
VC_POS_Reset = (POS_Reset) GetProcAddress(g_hPosdll“POS_Reset“);
if(VC_POS_Reset == NULL)
{
return false;
}
VC_POS_SetMode = (POS_SetMode) GetProcAddress(g_hPosdll“POS_SetMode“);
if(VC_POS_SetMode == NULL)
{
return false;
}
VC_POS_SetMotionUnit = (POS_SetMotionUnit) GetProcAddress(g_hPosdll“P
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 798 2006-11-01 11:29 POSDLL演示例程\POSDLLDemo_Delphi\Kitty.bmp
文件 798 2002-01-20 23:24 POSDLL演示例程\POSDLLDemo_Delphi\Look.bmp
文件 33644 2006-09-11 17:34 POSDLL演示例程\POSDLLDemo_Delphi\PortIO.pas
文件 81920 2007-03-15 11:09 POSDLL演示例程\POSDLLDemo_Delphi\POSDLL.dll
文件 25238 2007-03-02 10:24 POSDLL演示例程\POSDLLDemo_Delphi\PosDllDemo.dcu
文件 9522 2007-03-02 10:18 POSDLL演示例程\POSDLLDemo_Delphi\PosDllDemo.dfm
文件 30410 2007-03-02 10:24 POSDLL演示例程\POSDLLDemo_Delphi\PosDllDemo.pas
文件 8994 2007-02-13 07:13 POSDLL演示例程\POSDLLDemo_Delphi\POSdllDemoProj.bdsproj
文件 690 2007-02-13 07:13 POSDLL演示例程\POSDLLDemo_Delphi\POSdllDemoProj.bdsproj.local
文件 488 2007-03-02 08:26 POSDLL演示例程\POSDLLDemo_Delphi\POSdllDemoProj.cfg
文件 213 2007-01-02 14:36 POSDLL演示例程\POSDLLDemo_Delphi\POSdllDemoProj.dpr
文件 461312 2007-03-06 08:02 POSDLL演示例程\POSDLLDemo_Delphi\POSdllDemoProj.exe
文件 216 2007-03-08 16:36 POSDLL演示例程\POSDLLDemo_Delphi\POSdllDemoProj.identcache
文件 5196 2007-02-13 07:13 POSDLL演示例程\POSDLLDemo_Delphi\POSdllDemoProj.res
文件 7242 2007-02-28 16:21 POSDLL演示例程\POSDLLDemo_Delphi\PosdllFuncs.dcu
文件 7799 2007-02-12 10:34 POSDLL演示例程\POSDLLDemo_Delphi\PosdllFuncs.pas
文件 798 2006-11-01 11:29 POSDLL演示例程\POSDLLDemo_VB\Kitty.bmp
文件 798 2002-01-20 23:24 POSDLL演示例程\POSDLLDemo_VB\Look.bmp
文件 44492 2007-03-02 10:16 POSDLL演示例程\POSDLLDemo_VB\MainForm.frm
文件 341 2007-03-02 10:16 POSDLL演示例程\POSDLLDemo_VB\MainForm.frx
文件 343 2006-12-19 17:14 POSDLL演示例程\POSDLLDemo_VB\MSSCCPRJ.SCC
文件 81920 2007-03-15 11:09 POSDLL演示例程\POSDLLDemo_VB\POSDLL.dll
文件 61440 2007-03-02 10:16 POSDLL演示例程\POSDLLDemo_VB\PosdllDemo.exe
文件 1059 2007-03-02 10:16 POSDLL演示例程\POSDLLDemo_VB\PosdllDemo.vbp
文件 84 2007-03-02 10:16 POSDLL演示例程\POSDLLDemo_VB\PosdllDemo.vbw
文件 20684 2007-03-02 10:14 POSDLL演示例程\POSDLLDemo_VB\PosdllFuncs.bas
文件 798 2006-11-01 11:29 POSDLL演示例程\POSDLLDemo_VC\Kitty.bmp
文件 8367 2007-02-28 11:59 POSDLL演示例程\POSDLLDemo_VC\LoadDll.cpp
文件 7219 2007-02-28 11:59 POSDLL演示例程\POSDLLDemo_VC\LoadDll.h
文件 798 2002-01-20 23:24 POSDLL演示例程\POSDLLDemo_VC\Look.bmp
............此处省略37个文件信息
- 上一篇:清除华为ONU配置及密码
- 下一篇:excel导入sqlserver的Vb程序代码
评论
共有 条评论