Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. about Parallel Port

about Parallel Port

Scheduled Pinned Locked Moved C / C++ / MFC
helplearning
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    mt_samiei
    wrote on last edited by
    #1

    Dear All I should write one program which uses parallel port of computer in ECP mode. I should use CreateFile and DeviceIOControl routines for this purpose. Is there any resource that help me about this project. another problem : When I include both stdafx.h and ntddk.h in my project, I find that some redefinition errors and warnings occured. some variables and structures are defined in both ntddk and some header file which is defined in some other header files. Does anyone have any idea to remove this problem. REgards Mahdi

    J 1 Reply Last reply
    0
    • M mt_samiei

      Dear All I should write one program which uses parallel port of computer in ECP mode. I should use CreateFile and DeviceIOControl routines for this purpose. Is there any resource that help me about this project. another problem : When I include both stdafx.h and ntddk.h in my project, I find that some redefinition errors and warnings occured. some variables and structures are defined in both ntddk and some header file which is defined in some other header files. Does anyone have any idea to remove this problem. REgards Mahdi

      J Offline
      J Offline
      JudyL_MD
      wrote on last edited by
      #2

      ntddk.h is a file used in driver development - it should not be included in user-mode programs. Use CreateFile to open a handle to the parallele port, then control it via commands you issue with the DeviceIOControl. You need to be looking for a document that describes the available IOCTL commands that can be issued via DeviceIOControl. And, no, I don't know where one is. Judy

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups