Why AfxGetApp() returns NULL in Vc 7.1?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I use AfxGetApp() in my Add-in application as follows.

AfxGetApp()->LoadIcon(IDI_ICON);
AfxGetApp()->BeginWaitCursor();
AfxGetApp()->EndWaitCursor();
AfxGetApp()->PumpMessage()

It works well in Vc 6.0. However, AfxGetApp() returns NULL after I convert
my project to Vc.NET.

Thanks in advance!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top