Click here to Skip to main content
15,930,182 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Call a function in a DLL Pin
Masaaki Onishi24-Feb-02 7:31
Masaaki Onishi24-Feb-02 7:31 
GeneralRe: Call a function in a DLL Pin
Rickard Andersson2024-Feb-02 12:24
Rickard Andersson2024-Feb-02 12:24 
GeneralRe: Call a function in a DLL Pin
Rickard Andersson2024-Feb-02 12:33
Rickard Andersson2024-Feb-02 12:33 
GeneralRe: Call a function in a DLL Pin
Paul M Watt24-Feb-02 14:54
mentorPaul M Watt24-Feb-02 14:54 
GeneralImage Display Pin
Peter Liddle24-Feb-02 2:27
Peter Liddle24-Feb-02 2:27 
GeneralLiposuction32 Pin
24-Feb-02 1:08
suss24-Feb-02 1:08 
GeneralRe: Liposuction32 Pin
Joaquín M López Muñoz24-Feb-02 1:41
Joaquín M López Muñoz24-Feb-02 1:41 
GeneralUNICODE and CListBox Pin
Mukkie24-Feb-02 0:57
Mukkie24-Feb-02 0:57 
GeneralRe: UNICODE and CListBox Pin
Michael Dunn24-Feb-02 8:00
sitebuilderMichael Dunn24-Feb-02 8:00 
GeneralMaking my program stop loading Pin
Justin Templeman24-Feb-02 0:44
Justin Templeman24-Feb-02 0:44 
GeneralRe: Making my program stop loading Pin
Joaquín M López Muñoz24-Feb-02 0:54
Joaquín M López Muñoz24-Feb-02 0:54 
GeneralRe: Making my program stop loading Pin
Mukkie24-Feb-02 1:00
Mukkie24-Feb-02 1:00 
GeneralRe: Making my program stop loading Pin
Mazdak24-Feb-02 1:21
Mazdak24-Feb-02 1:21 
QuestionWhat does this error mean? Pin
John Cruz24-Feb-02 0:18
John Cruz24-Feb-02 0:18 
AnswerRe: What does this error mean? Pin
Joaquín M López Muñoz24-Feb-02 0:38
Joaquín M López Muñoz24-Feb-02 0:38 
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 

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.