Hi

I have an application that does some printing. I used to use CPrinterDlg to get a printer's device context.

Code:
CPrintDialog    printDlg(FALSE);    

if (printDlg.DoModal() == IDCANCEL)        
   return; 
	
CDC *pDC = CDC::FromHandle(printDlg.GetPrinterDC());
// ...
// print, etc, etc...
The new version of my app, however, stores the printer's address (UNC) in an ini file, so i need to know how do i obtain a printer DC from it's UNC.
Can anyone help me on this ?

Thanks in advance
Pedro