Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Syntax Edit
  New Posts New Posts RSS Feed - CXTPSyntaxEditBufferManager Undefined Type
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

CXTPSyntaxEditBufferManager Undefined Type

 Post Reply Post Reply
Author
Message
LuckyJim View Drop Down
Newbie
Newbie
Avatar

Joined: 08 May 2008
Location: United Kingdom
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote LuckyJim Quote  Post ReplyReply Direct Link To This Post Topic: CXTPSyntaxEditBufferManager Undefined Type
    Posted: 08 May 2008 at 11:03am

Hi, I have just upgraded to Xtreme ToolkitPro version 12 and, on building my application, found that 'CXTPSyntaxEditBufferManager' was not a recognised type. The error message was as follows:

error C2027: use of undefined type 'CXTPSyntaxEditBufferManager'

My Visual Studio (2005) paths etc are set up correctly and wondered if anyone has experienced this issue?
 
I am using the class above in the following manner, which worked in version 11 of the toolkit -
 

CFile fileText(cstrPathName, CFile::modeRead);

CArchive arText(&fileText, CArchive::load);

this->GetEditBuffer()->Serialize(arText);

I am attempting above to open an XML file in the editor, during the OnInitialUpdate event of my view class (derived from CXTPSyntaxEditView). I could of course add the relevant header manually but I supect this may be a manifestation of a bug in the toolkit or its configuration ...
 
Any assistance in resolving this issue would be greatly appreciated.
 
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 08 May 2008 at 11:57am
Hi,
 
Sorry, some headers was removed.
Please add
 
#define _XTP_INCLUDE_SYNTAXEDIT_LEXER
in stdafx.h before you include toolkit.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
LuckyJim View Drop Down
Newbie
Newbie
Avatar

Joined: 08 May 2008
Location: United Kingdom
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote LuckyJim Quote  Post ReplyReply Direct Link To This Post Posted: 09 May 2008 at 5:36am
Hello Oleg,
 
thanks for the prompt reply -  I added the #define to stdafx.h as you suggested and my application now builds without error.
 
Keep up the good work with the Toolkit.
 
L J
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.109 seconds.