Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Syntax Edit
  New Posts New Posts RSS Feed - How To Call This Function
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

How To Call This Function

 Post Reply Post Reply
Author
Message
jwhagen View Drop Down
Groupie
Groupie
Avatar

Joined: 09 May 2003
Location: United States
Status: Offline
Points: 43
Post Options Post Options   Thanks (0) Thanks(0)   Quote jwhagen Quote  Post ReplyReply Direct Link To This Post Topic: How To Call This Function
    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
Back to Top
jwhagen View Drop Down
Groupie
Groupie
Avatar

Joined: 09 May 2003
Location: United States
Status: Offline
Points: 43
Post Options Post Options   Thanks (0) Thanks(0)   Quote jwhagen Quote  Post ReplyReply Direct Link To This Post 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
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.141 seconds.