Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

GetEditCtrl undeclared identifier?

Posted on 1998-04-07
2
Medium Priority
?
292 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 80 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Here is how to use MFC's automatic Radio Button handling in your dialog boxes and forms.  Beginner programmers usually start with a OnClick handler for each radio button and that's just not the right way to go.  MFC has a very cool system for handli…
This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
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.
Integration Management Part 2
Suggested Courses

971 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