Webbrowser2 using ATL

I'm having an issue with the iwebrowser2 interface. I am using atl's ccomptr to create an instance of the interface which works fine, but when I call the navigate2 function it is returning and E_FAIL hresult and I can't figure out why. Here is a sample of the code I am using. I am calling this c++ class from c win32 code and do not want to use MFC do to the issues with afx and win32 applications. If you could help me out I would greatly appreciate it.