Click here to Skip to main content
15,927,213 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: What does this error mean? Pin
John Cruz24-Feb-02 1:00
John Cruz24-Feb-02 1:00 
GeneralRe: What does this error mean? Pin
Joaquín M López Muñoz24-Feb-02 1:02
Joaquín M López Muñoz24-Feb-02 1:02 
QuestionC++.NET and MFC7 Compatibility Issue? Pin
David Z23-Feb-02 22:26
David Z23-Feb-02 22:26 
AnswerRe: C++.NET and MFC7 Compatibility Issue? Pin
Mazdak23-Feb-02 23:02
Mazdak23-Feb-02 23:02 
GeneralRe: C++.NET and MFC7 Compatibility Issue? Pin
David Z23-Feb-02 23:13
David Z23-Feb-02 23:13 
GeneralRe: C++.NET and MFC7 Compatibility Issue? Pin
Mazdak23-Feb-02 23:31
Mazdak23-Feb-02 23:31 
QuestionHow do u write a Driver program for MFC? Pin
John Cruz23-Feb-02 22:05
John Cruz23-Feb-02 22:05 
AnswerRe: How do u write a Driver program for MFC? Pin
Paul M Watt23-Feb-02 22:28
mentorPaul M Watt23-Feb-02 22:28 
A Driver program is simply a program that uses your class. For instance, say you have a class that can set two parameters, then perform actions on these parameters, here is an example.

<br />
class Arithmatic<br />
{<br />
int m_a;<br />
int m_b;<br />
<br />
public:<br />
    Arithmatic () m_a(0), m_b(0)<br />
    {<br />
        // no current operations.<br />
    }<br />
<br />
    void SetA (int a)<br />
    {<br />
        m_a = a;<br />
    }<br />
<br />
    void SetB (int b)<br />
    {<br />
        m_b = b;<br />
    }<br />
<br />
    int Sum ()<br />
    {<br />
        return m_a + m_b;<br />
    }<br />
<br />
};<br />


With this class, you could write a Driver, or test program like this.

<br />
int testArithmatic ()<br />
{<br />
    Arithmatic x;<br />
<br />
    x.SetA(10);<br />
    x.SetB(20);<br />
<br />
    ASSERT(x.Sum() == 30);<br />
<br />
    return 0;<br />
}<br />


In this example you know what the desired result is for the two values 10 + 20, so assert that all of your functions work properly.
GeneralRe: How do u write a Driver program for MFC? Pin
John Cruz23-Feb-02 23:41
John Cruz23-Feb-02 23:41 
GeneralRe: How do u write a Driver program for MFC? Pin
Paul M Watt23-Feb-02 23:57
mentorPaul M Watt23-Feb-02 23:57 
GeneralRe: How do u write a Driver program for MFC? Pin
John Cruz23-Feb-02 23:55
John Cruz23-Feb-02 23:55 
GeneralDLL static issue Pin
Steve Severance23-Feb-02 21:27
Steve Severance23-Feb-02 21:27 
GeneralRe: DLL static issue Pin
Paul M Watt23-Feb-02 21:44
mentorPaul M Watt23-Feb-02 21:44 
GeneralRe: DLL static issue Pin
Michael Dunn23-Feb-02 21:50
sitebuilderMichael Dunn23-Feb-02 21:50 
GeneralAdvance port question: LPT pins voltage ... Pin
Hadi Rezaee23-Feb-02 21:24
Hadi Rezaee23-Feb-02 21:24 
GeneralRe: Advance port question: LPT pins voltage ... Pin
Paul M Watt23-Feb-02 22:32
mentorPaul M Watt23-Feb-02 22:32 
GeneralActiveX with MFC7 Pin
Mazdak23-Feb-02 20:57
Mazdak23-Feb-02 20:57 
GeneralRe: ActiveX with MFC7 Pin
Mazdak23-Feb-02 21:22
Mazdak23-Feb-02 21:22 
GeneralProblem linking stl strings Pin
Londo23-Feb-02 19:22
Londo23-Feb-02 19:22 
GeneralRe: Problem linking stl strings Pin
Paul M Watt23-Feb-02 19:39
mentorPaul M Watt23-Feb-02 19:39 
GeneralRe: Problem linking stl strings Pin
Londo23-Feb-02 21:06
Londo23-Feb-02 21:06 
GeneralRe: Problem linking stl strings Pin
Paul M Watt23-Feb-02 21:50
mentorPaul M Watt23-Feb-02 21:50 
GeneralRe: Problem linking stl strings Pin
Londo23-Feb-02 22:17
Londo23-Feb-02 22:17 
GeneralRe: Problem linking stl strings Pin
Paul M Watt23-Feb-02 22:30
mentorPaul M Watt23-Feb-02 22:30 
GeneralRe: Problem linking stl strings Pin
23-Feb-02 22:36
suss23-Feb-02 22:36 

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.