Click here to Skip to main content
15,914,071 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How do I post a message to a CDocument? Pin
Bartosz Bien7-Mar-03 0:50
Bartosz Bien7-Mar-03 0:50 
QuestionWhat is a DLL and a class? Pin
Anonymous6-Mar-03 12:55
Anonymous6-Mar-03 12:55 
AnswerRe: What is a DLL and a class? Pin
DREVET Olivier6-Mar-03 13:14
DREVET Olivier6-Mar-03 13:14 
AnswerRe: What is a DLL and a class? Pin
Anonymous6-Mar-03 13:25
Anonymous6-Mar-03 13:25 
GeneralRe: What is a DLL and a class? Pin
Nish Nishant6-Mar-03 13:48
sitebuilderNish Nishant6-Mar-03 13:48 
GeneralRe: What is a DLL and a class? Pin
Anonymous6-Mar-03 14:11
Anonymous6-Mar-03 14:11 
GeneralRe: What is a DLL and a class? Pin
Moak6-Mar-03 14:30
Moak6-Mar-03 14:30 
AnswerRe: What is a DLL and a class? Pin
Joan M9-Mar-03 21:38
professionalJoan M9-Mar-03 21:38 
CLASS:
---------------------------------
DEFINITION:
declaration of an object.

EXPLANATION:
Imagine a button, a button has a color, a text and an icon (all those parameters are member variables of the button class).
A button also have a function that is called when the button is pressed (a member function).

SAMPLE:
class cbtn
{
private:
  COLORREF m_clrColor;  // Member variable...
  CString m_csText;     // Note that members have a "m" at it's beginning (it's only a way to see faster that they are members)
  CIcon m_Icon;

  void OnClick();       // A class is like a struct but it can contain functions too...
};

Once you have the class declared, you can instantiate (define - create objects of) that class so many times...

DLL:
---------------------------------
DEFINITION:
executable that exports functions and variables to other executables.

EXPLANATION:
You can build dll's or use other dll's that are installed in your computer, those programs can be used from any program that knows how to call their functions or variables...

imagine that you create always a program that (it's just an explanation and the sample will be very stupid) add two numbers and the code to do so is very long (I adviced you that that would be stupid...) then you could consider to place that code in a DLL and call that code from your programs...

FINALLY
---------------------------------
To go to class to learn is interesting if you can't do it, think of reading a good C++ book for learning about classes and another Windows programming book for DLL's...

Hope this helps...

PS:
the samples are just introductory and they have my point of view, they are not the purest and best ones, but they can help you to get the starting point when reading some info regarding this.

NOTE:
my english is not my best.

Hope this helps...
QuestionHow to start under .NET Pin
Anonymous6-Mar-03 12:54
Anonymous6-Mar-03 12:54 
AnswerRe: How to start under .NET Pin
Nish Nishant6-Mar-03 13:47
sitebuilderNish Nishant6-Mar-03 13:47 
QuestionHow to retrieve CColorDlg "Basic colors" palette? Pin
Bartosz Bien6-Mar-03 12:29
Bartosz Bien6-Mar-03 12:29 
GeneralHiding text in a CStatic control Pin
work_to_live6-Mar-03 10:18
work_to_live6-Mar-03 10:18 
GeneralRe: Hiding text in a CStatic control Pin
Stefan Pedersen6-Mar-03 10:28
Stefan Pedersen6-Mar-03 10:28 
GeneralRe: Hiding text in a CStatic control Pin
Dave Bryant6-Mar-03 10:40
Dave Bryant6-Mar-03 10:40 
GeneralRe: Hiding text in a CStatic control Pin
work_to_live6-Mar-03 11:15
work_to_live6-Mar-03 11:15 
GeneralRe: Hiding text in a CStatic control Pin
Dave Bryant6-Mar-03 11:46
Dave Bryant6-Mar-03 11:46 
GeneralRe: Hiding text in a CStatic control Pin
work_to_live7-Mar-03 11:00
work_to_live7-Mar-03 11:00 
GeneralA goto box Pin
Anonymous6-Mar-03 10:08
Anonymous6-Mar-03 10:08 
GeneralRe: A goto box Pin
Christian Graus6-Mar-03 10:29
protectorChristian Graus6-Mar-03 10:29 
GeneralRe: A goto box Pin
Tim Smith6-Mar-03 10:31
Tim Smith6-Mar-03 10:31 
GeneralRe: A goto box Pin
Nish Nishant6-Mar-03 12:29
sitebuilderNish Nishant6-Mar-03 12:29 
GeneralRe: A goto box Pin
Moak6-Mar-03 15:15
Moak6-Mar-03 15:15 
GeneralRe: A goto box Pin
Christian Graus6-Mar-03 15:20
protectorChristian Graus6-Mar-03 15:20 
GeneralRe: A goto box Pin
Moak6-Mar-03 15:23
Moak6-Mar-03 15:23 
GeneralRe: A goto box Pin
Chris Meech7-Mar-03 4:54
Chris Meech7-Mar-03 4:54 

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.