Solved

GetEditCtrl undeclared identifier?

Posted on 1998-04-07
2
276 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 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Looking for a specific application/software 2 124
conditional code and condition difference 9 87
sum28 challenge 31 117
wait notify demo infinite loop 3 151
If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
In this post we will learn different types of Android Layout and some basics of an Android App.
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…

751 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