Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

GetEditCtrl undeclared identifier?

Posted on 1998-04-07
2
Medium Priority
?
286 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Will your db performance match your db growth?

In Percona’s white paper “Performance at Scale: Keeping Your Database on Its Toes,” we take a high-level approach to what you need to think about when planning for database scalability.

Question has a verified solution.

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

Introduction: Ownerdraw of the grid button.  A singleton class implentation and usage. Continuing from the fifth article about sudoku.   Open the project in visual studio. Go to the class view – CGridButton should be visible as a class.  R…
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.
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…

721 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