阅读:1669回复:7
Printer Source Code for IBM,HP,Epson...
I can get the Source Code for Epson,IBM,HP.
I copy a segment below! If you need, write to me at the email box address: jackchant@126.com /* * epson.c - epson printer module * */ #include <slos_protos.h> #include <stdio.h> #include <string.h> #include "app.h" /********************************* Global data ******************************************/ LISTHANDLE mlh; #ifdef AMIGA #define __USE_SYSBASE #include <proto/exec.h> #include <exec/execbase.h> struct Library *SoftLogikOSBase = 0; #endif //commands the this module understands and the routines to handle them struct TagItem cmd[]= { MACT_EndStrip, (ULONG)&endstrip, MACT_BeginTile, (ULONG)&begintile, MACT_EndTile, (ULONG)&endtile, mgd->hmsys = tag->ti_Data; } mgd->vmsys = INCHES; if ((tag = SL_FindTagItem(MOD_VMSYS, tags))) { mgd->vmsys = tag->ti_Data; } if ((mgd->mh = SL_ModuleInitA(ah, modtags))) { if ((wh = SL_CreateSubRequester(mgd->mh, 100))) { if ((mgd->screencustom = SL_CreateRequester(mgd->mh, 102))) { if ((mgd->screenbuiltin = SL_CreateRequester(mgd->mh, 103))) { if ((mgd->colorcustom = SL_CreateRequester(mgd->mh, 104))) { if ((mgd->colorbuiltin = SL_CreateRequester(mgd->mh, 105))) { mad = 0; if ((tag = SL_FindTagItem(MOD_GUIAcceptData, tags))) { mad = (struct modacceptdata *)tag->ti_Data; } if (mad) { memcpy(&mgd->mad, (char *)mad, sizeof(struct modacceptdata)); m = mad->model; mgd->mad.printer = XPD_DuplicatePrinter(mad->printer); } else { defaultmad(&mgd->mad); m = 0; } initrequester(m, mgd, wh); return ((ULONG)wh); } SL_FreeRequester(mgd->colorcustom); } SL_FreeRequester(mgd->screenbuiltin); } SL_FreeRequester(mgd->screencustom); } SL_FreeSubRequester(wh); } SL_ModuleCleanup(mgd->mh); } SL_MFree(mgd); } break; case GACT_Cleanup: if ((tag = SL_FindTagItem(MOD_GUIReqhandle, tags))) { if ((wh = (WINHANDLE)tag->ti_Data)) { mgd = (struct modguidata *)SL_GetWindowAttr(wh, WINATTR_UserData); if (mgd->mad.printer) { XPD_DestroyPrinter(mgd->mad.printer); } if (mgd->screencustom) { SL_FreeRequester(mgd->screencustom); } if (mgd->screenbuiltin) { SL_FreeRequester(mgd->screenbuiltin); } if (mgd->colorcustom) { SL_FreeRequester(mgd->colorcustom); } if (mgd->colorbuiltin) { SL_FreeRequester(mgd->colorbuiltin); } SL_FreeSubRequester(wh); SL_ModuleCleanup(mgd->mh); SL_MFree(mgd); |
|
沙发#
发布于:2004-09-10 14:30
本人现在也在写printer driver!
能否提供给本人一份,多谢! :D |
|
|
板凳#
发布于:2004-09-10 15:04
忘了写联系方式了!
rongfeel@163.com |
|
|
地板#
发布于:2004-09-10 16:46
楼主何不直接贴个附件发出来
|
|
地下室#
发布于:2004-09-15 19:30
偶要,多谢
falconline@sohu.com |
|
5楼#
发布于:2004-10-16 17:22
我也要哟,现在正在做win98下的虚拟打印机的驱动,好多问题不清楚啊,希望能从你给的那个source code中学到些东西哟!
谢谢啦!我的mail: cliicy@hotmail.com |
|
6楼#
发布于:2005-01-13 14:16
我需要Stylus C65的在制图模式下的打印的ESC打印控制码,大哥有吗? 我的邮箱by820eyou.com 十分感谢,如果没有发点想近的给点参考
|
|
7楼#
发布于:2005-01-13 19:42
是DDK 里的sample么?
|
|