Click here to Skip to main content
15,897,183 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: problem with print valu Pin
Niklas L3-Apr-11 22:18
Niklas L3-Apr-11 22:18 
AnswerRe: problem with print valu Pin
Stefan_Lang4-Apr-11 4:43
Stefan_Lang4-Apr-11 4:43 
GeneralRe: problem with print valu Pin
a1_shay4-Apr-11 5:23
a1_shay4-Apr-11 5:23 
Questionread function address Pin
so0_lanhlung23-Apr-11 4:57
so0_lanhlung23-Apr-11 4:57 
AnswerRe: read function address Pin
CPallini3-Apr-11 6:56
mveCPallini3-Apr-11 6:56 
GeneralRe: read function address Pin
so0_lanhlung23-Apr-11 7:04
so0_lanhlung23-Apr-11 7:04 
GeneralRe: read function address Pin
dasblinkenlight3-Apr-11 17:08
dasblinkenlight3-Apr-11 17:08 
Questioncall a function from another class Pin
dat198872-Apr-11 16:41
dat198872-Apr-11 16:41 
i have 2 class CControl and CMainFrame ( MFC), in CControl i have a function
void CControl::OnButtonRun()
{
// TODO: Add your control notification handler code here
CBaocaoDoc *pDoc = GetDocument();
if(pDoc->dc_status)
{
if((pDoc->nc_status) && (pDoc->phoi_status))
{

m_feetrate.SetRange(0,1000,TRUE);
UpdateData(TRUE);
m_fr=temp_mfr; // lay toc do
m_feetrate.SetPos(temp_mfr); // set toc do
SetTimer(2,1000,NULL);
UpdateData(FALSE);
}
else MessageBox("Chua chon chi tiet hoac file","Thong bao",MB_OK);
}
else MessageBox("Chua xuat file chua duong dung cu","Thong bao",MB_OK);

}

now i want call OnButtonRun() from CMainFrame, if i call function like
void CMainFrame::OnImportfile()
{
// TODO: Add your command handler code here
CControl abc;
abc.OnButtonRun();
}

MFC have error C2248: 'OnButtonRun' : cannot access protected member declared in class 'CControl'
please, help me, thanks .
AnswerRe: call a function from another class Pin
«_Superman_»2-Apr-11 17:21
professional«_Superman_»2-Apr-11 17:21 
AnswerRe: call a function from another class Pin
Albert Holguin2-Apr-11 18:20
professionalAlbert Holguin2-Apr-11 18:20 
AnswerRe: call a function from another class Pin
David Crow3-Apr-11 13:56
David Crow3-Apr-11 13:56 
GeneralRe: call a function from another class Pin
dat198877-Apr-11 1:40
dat198877-Apr-11 1:40 
QuestionGit: Inserting a commit below root? Pin
FocusedWolf2-Apr-11 9:05
FocusedWolf2-Apr-11 9:05 
AnswerRe: Git: Inserting a commit below root? Pin
«_Superman_»2-Apr-11 17:30
professional«_Superman_»2-Apr-11 17:30 
QuestionUsing WebBrowser Control in mfc application,Cpu usage is 50%. Pin
DesmondJiang1-Apr-11 21:48
DesmondJiang1-Apr-11 21:48 
QuestionRe: Using WebBrowser Control in mfc application,Cpu usage is 50%. Pin
Niklas L2-Apr-11 5:39
Niklas L2-Apr-11 5:39 
Questiona weird behavior Pin
Krauze31-Mar-11 22:17
Krauze31-Mar-11 22:17 
QuestionRe: a weird behavior Pin
CPallini1-Apr-11 0:26
mveCPallini1-Apr-11 0:26 
AnswerRe: a weird behavior Pin
Krauze1-Apr-11 0:37
Krauze1-Apr-11 0:37 
QuestionRe: a weird behavior Pin
CPallini1-Apr-11 2:05
mveCPallini1-Apr-11 2:05 
AnswerRe: a weird behavior [modified] Pin
Stefan_Lang1-Apr-11 3:08
Stefan_Lang1-Apr-11 3:08 
QuestionHow to determine the control under cursor Pin
Arrin31-Mar-11 20:47
Arrin31-Mar-11 20:47 
AnswerRe: How to determine the control under cursor Pin
CodyDaemon31-Mar-11 21:44
CodyDaemon31-Mar-11 21:44 
GeneralRe: How to determine the control under cursor Pin
Arrin31-Mar-11 22:51
Arrin31-Mar-11 22:51 
GeneralRe: How to determine the control under cursor Pin
Damir Valiulin1-Apr-11 4:41
Damir Valiulin1-Apr-11 4:41 

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.