Click here to Skip to main content
15,913,854 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionSerial Port communication Pin
picazo2-Dec-05 12:58
picazo2-Dec-05 12:58 
AnswerRe: Serial Port communication Pin
Branislav2-Dec-05 23:14
Branislav2-Dec-05 23:14 
GeneralRe: Serial Port communication Pin
picazo3-Dec-05 13:20
picazo3-Dec-05 13:20 
GeneralRe: Serial Port communication Pin
Branislav4-Dec-05 20:37
Branislav4-Dec-05 20:37 
QuestionDialogs and dlls, normal or annoying? (MFC) Pin
T1TAN2-Dec-05 12:58
T1TAN2-Dec-05 12:58 
AnswerRe: Dialogs and dlls, normal or annoying? (MFC) Pin
Roger Allen2-Dec-05 13:27
Roger Allen2-Dec-05 13:27 
GeneralRe: Dialogs and dlls, normal or annoying? (MFC) Pin
T1TAN2-Dec-05 14:01
T1TAN2-Dec-05 14:01 
Questionerror C3861: 'GetEditCtrl': identifier not found Pin
myst4ever2-Dec-05 12:19
myst4ever2-Dec-05 12:19 
I don't know why I'm getting this error. I'm trying to make a MDI edit type application and implement it with plugins based off the code i found while looking through MSDN.

Here's the code for the First Part:

void CChildView::OnPluginCmd(UINT id)
{
	CEdit& edit =  GetEditCtrl();        //Error Here
	int begin,end;
	edit.GetSel(begin,end);
	if (end>begin) {
		Object* obj = theApp.m_plugins.GetPlugin(id - IDC_PLUGIN_BASE);
		ASSERT(obj);
		ITextPlugin* plugin = dynamic_cast<ITextPlugin*>(obj);
		if (plugin) {
			CString text;
			edit.GetWindowText(text);
			text = text.Mid(begin, end-begin);
			text = plugin->Transform(text);
			edit.ReplaceSel(text);
			edit.SetSel(begin,end);
		}
	}
}

------------------------------------------
Here's the code for the second error:

void CChildView::OnPluginCmdUI(CCmdUI* pCmdUI)
{
        CEdit& edit = GetEditCtrl();        //Error Here
        int begin,end;
        edit.GetSel(begin,end);
        pCmdUI->Enable(begin!=end);
}

AnswerRe: error C3861: 'GetEditCtrl': identifier not found Pin
Gary R. Wheeler3-Dec-05 2:12
Gary R. Wheeler3-Dec-05 2:12 
Questionicons in win32 Pin
pplshero542-Dec-05 9:36
pplshero542-Dec-05 9:36 
AnswerRe: icons in win32 Pin
Gary R. Wheeler3-Dec-05 2:15
Gary R. Wheeler3-Dec-05 2:15 
QuestionCSliderCtrl ? Pin
Jader892-Dec-05 8:51
Jader892-Dec-05 8:51 
GeneralRe: CSliderCtrl ? Pin
Jader892-Dec-05 8:53
Jader892-Dec-05 8:53 
AnswerRe: CSliderCtrl ? Pin
David Crow2-Dec-05 9:16
David Crow2-Dec-05 9:16 
GeneralRe: CSliderCtrl ? Pin
Jader892-Dec-05 9:29
Jader892-Dec-05 9:29 
GeneralRe: CSliderCtrl ? Pin
David Crow2-Dec-05 9:49
David Crow2-Dec-05 9:49 
GeneralRe: CSliderCtrl ? Pin
Jader892-Dec-05 12:26
Jader892-Dec-05 12:26 
GeneralRe: CSliderCtrl ? Pin
David Crow3-Dec-05 15:04
David Crow3-Dec-05 15:04 
QuestionFunction Traceback Pin
Suvendra2-Dec-05 8:24
Suvendra2-Dec-05 8:24 
AnswerRe: Function Traceback Pin
David Crow2-Dec-05 8:42
David Crow2-Dec-05 8:42 
GeneralRe: Function Traceback Pin
Suvendra2-Dec-05 8:56
Suvendra2-Dec-05 8:56 
GeneralRe: Function Traceback Pin
David Crow2-Dec-05 9:11
David Crow2-Dec-05 9:11 
GeneralRe: Function Traceback Pin
Suvendra2-Dec-05 9:29
Suvendra2-Dec-05 9:29 
GeneralRe: Function Traceback Pin
Maximilien2-Dec-05 9:19
Maximilien2-Dec-05 9:19 
GeneralRe: Function Traceback Pin
Suvendra2-Dec-05 9:38
Suvendra2-Dec-05 9:38 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.