Solved

GetEditCtrl undeclared identifier?

Posted on 1998-04-07
2
252 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
Comment Utility
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
Comment Utility
Thanks it worked!
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Login Script to Copy Folders 12 19
iSeries DB2 Query 2 82
fizzArray  challenge 1 47
twoTwo  challenge 35 85
Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
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.
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

728 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now