Print Page | Close Window

project creation error

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Visual C++ MFC
Forum Description: Topics related to Codejock Visual C++ MFC products
URL: http://forum.codejock.com/forum_posts.asp?TID=12134
Printed Date: 27 June 2024 at 5:07pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: project creation error
Posted By: lowekt
Subject: project creation error
Date Posted: 10 September 2008 at 10:37pm
I've been trying to recreate an error in an application I'm porting and in the process I believe i've discovered a bug in the MFC code generation process.
 
In VS2005, using version TKP 12.0.2, create an MFC Standard SDI using MFC in a static library.  Use no compound documents, no database support, then add the following:
  • split windows
  • browser style toolbars
use all the standard options from here. 
 
When you try to compile the code you will get errors like:

1>d:\scode\tkp5\mainfrm.cpp(87) : error C2227: left of '->GetCommandBarsOptions' must point to class/struct/union/generic type

1> type is ''unknown-type''

I managed to cut and paste pCommandBar initialization code but could never successfully create a command bar as i got "failed to create empty document" errors.
 
Is there something obvious i'm missing?
 
Thanks,
 
-Ken



Replies:
Posted By: Oleg
Date Posted: 11 September 2008 at 12:58am
Hello,
 
Don't check "browser style toolbars" it means you want ReBar - and not our CommandBars.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net