Click here to Skip to main content
15,922,407 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: change to binary Pin
beardy janggut30-Mar-06 20:54
beardy janggut30-Mar-06 20:54 
AnswerRe: change to binary Pin
Arman S.30-Mar-06 20:46
Arman S.30-Mar-06 20:46 
GeneralRe: change to binary Pin
beardy janggut30-Mar-06 20:51
beardy janggut30-Mar-06 20:51 
GeneralRe: change to binary Pin
Eytukan30-Mar-06 20:56
Eytukan30-Mar-06 20:56 
AnswerRe: change to binary Pin
Eytukan30-Mar-06 20:53
Eytukan30-Mar-06 20:53 
GeneralRe: change to binary Pin
Eytukan30-Mar-06 20:55
Eytukan30-Mar-06 20:55 
GeneralRe: change to binary Pin
beardy janggut30-Mar-06 21:06
beardy janggut30-Mar-06 21:06 
GeneralRe: change to binary Pin
Eytukan30-Mar-06 21:22
Eytukan30-Mar-06 21:22 
These are access specifiers, Without knowing these, you cannot move into MFC, Sigh | :sigh: I suggest you study c++ (O-O) concepts well.


beardy janggut wrote:
how can i call a function in a protected function
e.g
void MyPSMDlg::OnButtonEncode()
{
//i want to call my own function like ChangeToBinary(char letter)
}


In the MyPsMdlg.h file, declare the "converToBinary()" funtion. and define it like
MyPsMdlg::convertToBinary()<br />
{<br />
}<br />

Then you can access it in side your
<br />
void MyPSMDlg::OnButtonEncode()<br />
{<br />
this->convertToBinary();<br />
//i want to call my own function like ChangeToBinary(char letter)<br />
}<br />

.But if have more functions likes these, you might consider creating a separate class and putting these functions inside, then get your MyPsMdlg class inherited from it.





0x0400:
"But your mind is very complex, very tricky. It makes simple things complicated. -- that's its work. And for centuries it has been trained for only one thing: to make things so complicated that your life becomes impossible."- Osho

<marquee scrollamount="1" scrolldelay="1" direction="up" height="10" step="1">--[V]--


GeneralRe: change to binary Pin
toxcct30-Mar-06 21:28
toxcct30-Mar-06 21:28 
GeneralRe: change to binary Pin
David Crow31-Mar-06 3:26
David Crow31-Mar-06 3:26 
GeneralRe: change to binary Pin
David Crow31-Mar-06 3:23
David Crow31-Mar-06 3:23 
GeneralRe: change to binary Pin
Eytukan3-Apr-06 0:18
Eytukan3-Apr-06 0:18 
QuestionEnable/Disable dynamically created CButton Pin
lorey30-Mar-06 20:37
lorey30-Mar-06 20:37 
AnswerRe: Enable/Disable dynamically created CButton Pin
Nibu babu thomas30-Mar-06 20:40
Nibu babu thomas30-Mar-06 20:40 
AnswerRe: Enable/Disable dynamically created CButton Pin
Cedric Moonen30-Mar-06 20:42
Cedric Moonen30-Mar-06 20:42 
GeneralRe: Enable/Disable dynamically created CButton Pin
FarPointer30-Mar-06 21:15
FarPointer30-Mar-06 21:15 
AnswerRe: Enable/Disable dynamically created CButton Pin
Hamid_RT30-Mar-06 20:46
Hamid_RT30-Mar-06 20:46 
GeneralRe: Enable/Disable dynamically created CButton Pin
jhwurmbach30-Mar-06 20:50
jhwurmbach30-Mar-06 20:50 
Questionwindow seen in taskbar Pin
Pazzuzu30-Mar-06 19:56
Pazzuzu30-Mar-06 19:56 
AnswerRe: window seen in taskbar Pin
Nibu babu thomas30-Mar-06 20:18
Nibu babu thomas30-Mar-06 20:18 
GeneralRe: window seen in taskbar Pin
Pazzuzu30-Mar-06 20:23
Pazzuzu30-Mar-06 20:23 
GeneralRe: window seen in taskbar Pin
Nibu babu thomas30-Mar-06 20:37
Nibu babu thomas30-Mar-06 20:37 
GeneralRe: window seen in taskbar Pin
Pazzuzu30-Mar-06 20:41
Pazzuzu30-Mar-06 20:41 
GeneralRe: window seen in taskbar Pin
Pazzuzu30-Mar-06 21:04
Pazzuzu30-Mar-06 21:04 
GeneralRe: window seen in taskbar Pin
Nibu babu thomas30-Mar-06 21:16
Nibu babu thomas30-Mar-06 21:16 

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.