Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations MikeeOK on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by Teric

  1. Teric

    Getting the Default Printer in WinXP

    Ha! That worked! Was the problem that I needed to initialize my BytesCopied variable? At any rate, thank you very much, palbano. You've been most helpful.
  2. Teric

    Getting the Default Printer in WinXP

    Hey, thanks! Didn't know about the Platform SDK update. I downloaded it and installed it. Now my code compiles just fine, but when I run it, the GetDefaultPrinter() function always returns ERROR_NOT_ENOUGH_MEMORY. This can't be right, because my machine has a gigabyte of RAM, and it's just...
  3. Teric

    Getting the Default Printer in WinXP

    Unfortunately, I've tried that. I use the following code: DWORD BytesCopied; //Number of bytes returned char PrinterName[80]; //Name of the printer if(!GetDefaultPrinter(PrinterName, &BytesCopied)) return false; I've included Winspool.lib in my project settings, I've even...
  4. Teric

    Getting the Default Printer in WinXP

    I have found a number of articles explaining how to get the name of the default printer in Win95, Win98, WinNT, and Win2000. However, I have found nothing about how to get the name of the default printer in WinXP. The method for Win95/98 is to use EnumPrinters. I can use EnumPrinters in...

Part and Inventory Search

Back
Top