telkim 님이 쓰신 글 :
: 현재 윈도우 98에서는 _outp(0x378,0xff); 로 값을 출력 했읍니다. 물론 dos에서도 사용 가능하고요
: 윈도우 2000에서 사용하니 동작을 하지 않읍니다.
:
: 그래서 win2000 ddk을 사용하여 단순하게 작성후 드라이버를 작성후 등록을 하면 계속해서 프린터 포트와 충돌하여 리소스를 사용할수 없다고 다옵니다.
:
: 1) 궁금한점은 드라이버를 작성하지 않고, api함수에서 시리얼처럼 제어하는 방법이 있나요?
: 2) 드라이버를 작성하고 등록후 프린터 포트의 드라이버를 사용하지 않는다고 해도 제가 작성한
: 드라이버에 계속해서 에러표시가 나옵니다. 이렇게 하는 방법이 틀른것지?
: 작업을 계속하려면 어디를 수정해야 하는지?
:
http://www.internals.com 에 가셔서 WinIO를 다운받으시면 될 것 같습니다.
WinIO에 대한 설명은 다음과 같습니다.
The WinIo library allows 32-bit Windows applications to directly access I/O ports and physical memory. It bypasses Windows protection mechanisms by using a combination of a kernel-mode device driver and several low-level programming techniques.
FAQ에 보니 C++ Builder에서 사용할려면 DLL을 직접 불러서 사용해야 한다고 나와 있군요.
Q. I'm having difficulties using the WinIo library with C++ Builder.
The problem is revealed during the link phase and is related to the fact that Microsoft and Borland use different file formats (COFF/OMF) for storing object files (including LIBs). This means that you cannot add the LIB files supplied with WinIo to your project and get things to work properly. The solution is to avoid the LIB files by using the LoadLibrary/GetProcAddress APIs to load and execute the functions within WinIo.dll.
도움이 되셨으면 좋겠습니다.
-Superbear
|