How do i print ??? i have the print dialog displaying but i have no idea how to print.. i have some visual basic code but I can't seem to translate it properly to c++...

Code:
void Print_Dialog()
{
	PRINTDLG pd;
	ZeroMemory(&pd, sizeof(PRINTDLG));
	pd.lStructSize = sizeof(PRINTDLG);
	pd.hwndOwner   = Main_Hwnd;
	pd.hDevMode    = NULL;     // Don't forget to free or store hDevMode
	pd.hDevNames   = NULL;     // Don't forget to free or store hDevNames
	pd.Flags       = PD_USEDEVMODECOPIESANDCOLLATE | PD_RETURNDC; 
	pd.nCopies     = 1;
	pd.nFromPage   = 1; 
	pd.nToPage     = 15; 
	pd.nMinPage    = 1; 
	pd.nMaxPage    = 15; 

	if (PrintDlg(&pd) == TRUE) 
	{


		//pd.hDevMode
		DeleteDC(pd.hDC);
	}
}