我想在 verifone vx520 的打印纸上设置徽标,我应该更改 <*PTRLGO> 值吗?以及如何更改 <*PTRLGO>?我怎样才能把这个标志下载到打印机上?我应该如何调用程序上的徽标?我已经用 c 编写了我的程序。这是我的代码,但它是错误的。我使用 GP 命令打印徽标。
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <svc.h>
char myLOGO[]="testlogo.bmp";
char buf[200]="";
void main ()
{
int i,t;
char logo[]="*PTRLGO";
char buf[500] = "";
int prt_handle,prt_com;
prt_handle = open(DEV_CONSOLE, 0);
prt_com = open(DEV_COM4, 0);
put_env(logo,myLOGO,1);
sprintf(buf, "%cGP1;",27);
write(prt_com, buf, strlen(buf));
SVC_WAIT (100);
close(prt_com);
}