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. CPrintDialog::GetDefaults() doesn't work?

CPrintDialog::GetDefaults() doesn't work?

Scheduled Pinned Locked Moved C / C++ / MFC
sysadminhelpquestion
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.
  • J Offline
    J Offline
    Joep
    wrote on last edited by
    #1

    Hi, I'm having a problem I don't understand. I can't get printerdefaults, and DeviceCapabilities() and DocumentProperties() don't work either. At home everything works fine for my networkprinter, but at work things go wrong. After starting the app, CWinApp::m_hDevMode and CWinApp::m_hDevNames are NULL and stay NULL, suggesting there's no default printer, but there is! Other apps like Word work fine. It's a HP4050TN networkprinter connected directly to a hub and shared on a server through a HP JetDirect port. When I set another networkprinter (connected to workstation through LPT1) as the default printer CWinApp:m_hDevMode and CWinApp::m_hDevNames are properly initialized. Does anyone have an idea what goes wrong here? Thanks, Joep

    G 1 Reply Last reply
    0
    • J Joep

      Hi, I'm having a problem I don't understand. I can't get printerdefaults, and DeviceCapabilities() and DocumentProperties() don't work either. At home everything works fine for my networkprinter, but at work things go wrong. After starting the app, CWinApp::m_hDevMode and CWinApp::m_hDevNames are NULL and stay NULL, suggesting there's no default printer, but there is! Other apps like Word work fine. It's a HP4050TN networkprinter connected directly to a hub and shared on a server through a HP JetDirect port. When I set another networkprinter (connected to workstation through LPT1) as the default printer CWinApp:m_hDevMode and CWinApp::m_hDevNames are properly initialized. Does anyone have an idea what goes wrong here? Thanks, Joep

      G Offline
      G Offline
      Gerry
      wrote on last edited by
      #2

      I had some problems like this, but it dealt with Security Issues regarding user rights. Gerry.

      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