Procedure PrtOpenDevice(PrtHandle:Pointer; Port,State:Integer);
External 'xxx.dll' Name 'PrtOpenDevice';
처럼 하면 될 거 같네요..
안정한 님이 쓰신 글 :
: #include <windows.h>
: #include <stdio.h>
: #include <string.h>
:
: #define COMPORT1 1 /* Logical Printer Driver */
: #define NO_WAIT 0L /* No wait for transaction */
:
: void main(void)
: {
: HANDLE PrtHandle = NULL; /* Printer handle */
:
: ReturnCode = PrtOpenDevice(&PrtHandle, COMPORT1, NO_WAIT);
: 이 부분을 delphi로 구현 할려면 ?......
:
: .
: .
: .
: .
: .
: .
:
:
|