各位大虾: 请帮我把下面的c程序转换成相应的delphi,我实在是不会啊,谢谢!/*DMX SERIES Sample C program*/#include<stdio.h>main()
{
char *pcs="590";
char *desc="10K OHM 1/4 watt";fputs("DMX Printer Test Program\n",stdout);fputs("x02L\n",stdaux); /*STXL-Enter Label Fromatting*/
fputs("H07\n",stdaux); /*Enter Heat Setting of 7*/
fputs("D11\n",stdaux); /*Set Width and Height Dot Size*/fprintf(stdaux,"191108010000025%s\n",desc); /*Select smooth Font*/
fprintf(stdaux,"1a6210000000050%sPCS\n",pcs); /*Select Bar code type 'a' */
fputs("E\n",stdaux); /*End Label format mode and print*/}先在这里谢谢各位了!
{
char *pcs="590";
char *desc="10K OHM 1/4 watt";fputs("DMX Printer Test Program\n",stdout);fputs("x02L\n",stdaux); /*STXL-Enter Label Fromatting*/
fputs("H07\n",stdaux); /*Enter Heat Setting of 7*/
fputs("D11\n",stdaux); /*Set Width and Height Dot Size*/fprintf(stdaux,"191108010000025%s\n",desc); /*Select smooth Font*/
fprintf(stdaux,"1a6210000000050%sPCS\n",pcs); /*Select Bar code type 'a' */
fputs("E\n",stdaux); /*End Label format mode and print*/}先在这里谢谢各位了!
解决方案 »
- import type library中有个控件被移除怎么恢复?
- listview鼠标点击事件
- 将鼠标移动到工具栏上的图标上面的时候,如果显示提示信息,提示这个图标按钮的用途?
- Delphi中,大家一般用什么报表?水晶报表、FastReport、QuickReport?
- FastReport中Fanfold 15×11 inch纸张(宽行打印纸)对应的pgsize职是多少???
- 在WIN XP中不能第二次激活并显示窗口?
- 安裝制作的問題!(數據庫用INI文件配置在本機可以運行,但是安裝進別人電腦就不行了)
- 串口API函数的使用问题
- Dear All:Do you happen to it?
- 求CP-132UL驱动,有的帮个忙啊,谢谢了
- 要写一个验证码识别程序,给人民币1000元,有人愿做吗?
- 【散分】为阿日饯行。一路走好!
windows,
sysutils;var
pcs:PChar='590';
desc:PChar='10K OHM 1/4 watt';
Fd: TextFile;
begin
writeln('DMX Printer Test Program');
AssignFile(Fd, 'COM1');
writeln(fd,'x02L');
writeln(fd,'H07');
writeln(fd,'D11');
writeln(fd,format('191108010000025%s',[desc]));
writeln(fd,format('1a6210000000050%sPCS',[pcs]));
writeln(fd,'E');end.