CreatePrinterDC initializes the device context that you pass in by reference, so You need to use it to print. Details to your null-terminated string that contains the name from the cursor resource. You can use a CString for this argument. This informative article has several troubles. You should enable enhance https://icelisting.com/story17721478/the-cwin-diaries