Solved

GetEditCtrl undeclared identifier?

Posted on 1998-04-07
2
270 Views
Last Modified: 2013-11-20
Whenever I use GetEditCtrl it tells me I have an undeclared identifier. For instance.....

GetEditCtrl()->ReplaceSel(bDlg.m_Link); What is it's problem!!!???
0
Comment
Question by:stupid_dud
2 Comments
 
LVL 7

Accepted Solution

by:
galkin earned 20 total points
ID: 1317523
Your problem is that GetEditCtrl is CEditView function. you probably call it fom class other then CEditView derived class.
Besides GetEditCtrl(0 returns reference to the CEdit and not pointer.
CEdit& theEditCtrl = pYourEditView->GetEditCtrl();
theEditCtrl.ReplaceSel(bDlg.m_Link);  
0
 

Author Comment

by:stupid_dud
ID: 1317524
Thanks it worked!
0

Featured Post

Active Directory Webinar

We all know we need to protect and secure our privileges, but where to start? Join Experts Exchange and ManageEngine on Tuesday, April 11, 2017 10:00 AM PDT to learn how to track and secure privileged users in Active Directory.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
List out all word 7 320
difference between String.subString() and String.subSequence() 6 241
canBalance challenge 34 99
Message not shown 5 67
Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

820 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question