Print Page | Close Window

CXTPSyntaxEditBufferManager Undefined Type

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Syntax Edit
Forum Description: Topics Related to Codejock Syntax Edit
URL: http://forum.codejock.com/forum_posts.asp?TID=10563
Printed Date: 11 December 2024 at 9:30pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CXTPSyntaxEditBufferManager Undefined Type
Posted By: LuckyJim
Subject: CXTPSyntaxEditBufferManager Undefined Type
Date 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.
 



Replies:
Posted By: Oleg
Date 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


Posted By: LuckyJim
Date 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



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