I've just gotten a problem when printing.

I get an error:

Run-time error '2147467259(80004005)'
Automation error
Unspecified error

on the line:

If Not printDlg.ShowPrinter(Me.hWnd) Then

I think it's because I added some code to make the MDI allow only OneInstance of the program.

I don't know what Me.hwnd means so I really don't know how to fix it. Can anyone help me?