Print Page | Close Window

How To Call This Function

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=20196
Printed Date: 04 December 2024 at 1:22pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: How To Call This Function
Posted By: jwhagen
Subject: How To Call This Function
Date Posted: 03 October 2012 at 8:05pm
Could someone please tell me how to call the following function?
 

int CXTPSyntaxEditBufferManager::CXTPSyntaxEditStringsManager::GetCount() const;

I admit I am clueless so the line of code that would request the GetCount() would be appreciated. I am trying to do this from CFooView.cpp like this:
 
int n = CXTPSyntaxEditBufferManager::CXTPSyntaxEditStringsManager::GetCount();
 
Of course that doesn't work. I am a rookie and learning this through trial and error. Would appreciate any help you can provide. Thanks!
 
John



Replies:
Posted By: jwhagen
Date Posted: 04 October 2012 at 12:28am
I think I have figured that out but would still like an answer. I also have one more set of questions:

// Get 64K bytes of data without regard to any CR/LF

CString sData = pPtr.GetText(65535);

// Get a line of Text

int nRow = 10;

int nLen = pPtr.GetLineLen(nRow);

CXTPSyntaxEditCtrl pEdtPtr;

int nRows = pEdtPtr.GetRowCount();

CString sLineOfText = pEdtPtr.GetLineText(nRow);

My nRows always returns ZERO when there are over 100 lines of text in the buffer.
My sLineOfText always returns NOTHING ("").
 
Any idea why?
Thanks.
 
John



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