Hello All,
I need to add CMFCOutlookbar control in my application. I used MSDN help and successfully able to add this control in the new applications in VS2008. But when i tried the same in my existing application, its giving crash while adding tabs.
Here is the code :
m_wndOutlookBar.SetMode2003(FALSE);

The same is working with new MFC application but not in my application.

May 11th, 2011, 04:42 AM

VictorN

Re: CMFCOutlookbar crash while adding tab

What is the difference between *your application* and a *new MFC application*?

May 11th, 2011, 05:01 AM

mayu1234

Re: CMFCOutlookbar crash while adding tab

Quote:

Originally Posted by VictorN

What is the difference between *your application* and a *new MFC application*?

Its already developed application and has 5 splitter windows created in child frame. One of the splitter window contains the main view, which display some list control. I am told to display outlookbar in that view and list under outlook bar.

So outlookbar control display is the first step to do this task, where i am facing a problem.

May 11th, 2011, 05:07 AM

VictorN

Re: CMFCOutlookbar crash while adding tab

You didn't answer about any difference ... :sick:
Well, then maybe you'll just copy your old code to the new created project which runs without problem with a new CMFCOutlookbar?

May 12th, 2011, 02:16 AM

mayu1234

Re: CMFCOutlookbar crash while adding tab

Solved the problem.

Problem was with main frame and child frame base classes. As project was started in VS2005, base classes were CMDIFrameWnd and CMDIChildWnd. I modified the code support extended classes and got it working.

I dont know whats the actual reason but it seems to be compatibility issue while migration from VS2005 to VS2008.