Click here to Skip to main content
16,004,977 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: file open problem Pin
Member 128699622-Jun-05 4:13
Member 128699622-Jun-05 4:13 
GeneralRe: file open problem Pin
David Crow22-Jun-05 4:26
David Crow22-Jun-05 4:26 
GeneralRe: file open problem Pin
softtec22-Jun-05 5:10
softtec22-Jun-05 5:10 
GeneralRe: file open problem Pin
basementman22-Jun-05 4:47
basementman22-Jun-05 4:47 
Generaladd class to a project Pin
suroor45322-Jun-05 3:12
suroor45322-Jun-05 3:12 
GeneralRe: add class to a project Pin
David Crow22-Jun-05 3:17
David Crow22-Jun-05 3:17 
GeneralRe: add class to a project Pin
suroor45322-Jun-05 4:16
suroor45322-Jun-05 4:16 
GeneralRe: add class to a project Pin
David Crow22-Jun-05 4:22
David Crow22-Jun-05 4:22 
There is no one-to-one correlation between a file/app and class. A class should be thought of as an autonomous object. You will need to go through the application, probably several times, and figure out what parts can be put into their own class. You may end up with one large class (hopefully this won't be the case as large classes are unproductive), or you may end up with dozens of smaller classes.

As a very primitive example, how would you turn the following application into one or more classes:

#include <stdio.h>
 
void main( void )
{
    printf("Hello World\n");
}



"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown


GeneralRe: add class to a project Pin
toxcct22-Jun-05 5:35
toxcct22-Jun-05 5:35 
GeneralRe: add class to a project Pin
suroor45322-Jun-05 6:06
suroor45322-Jun-05 6:06 
GeneralRe: add class to a project Pin
toxcct22-Jun-05 6:12
toxcct22-Jun-05 6:12 
Questioncan a dynamically created variable hold a const value? Pin
namaskaaram22-Jun-05 2:36
namaskaaram22-Jun-05 2:36 
AnswerRe: can a dynamically created variable hold a const value? Pin
Maximilien22-Jun-05 3:00
Maximilien22-Jun-05 3:00 
AnswerRe: can a dynamically created variable hold a const value? Pin
Christian Graus22-Jun-05 3:01
protectorChristian Graus22-Jun-05 3:01 
GeneralRe: can a dynamically created variable hold a const value? Pin
Tom Archer22-Jun-05 3:07
Tom Archer22-Jun-05 3:07 
GeneralRe: can a dynamically created variable hold a const value? Pin
David Crow22-Jun-05 3:26
David Crow22-Jun-05 3:26 
GeneralRe: can a dynamically created variable hold a const value? Pin
Blake Miller22-Jun-05 4:28
Blake Miller22-Jun-05 4:28 
GeneralRe: can a dynamically created variable hold a const value? Pin
David Crow22-Jun-05 4:38
David Crow22-Jun-05 4:38 
QuestionHow to create our Own Paragraph Formatting in Rich Edit Controls Pin
GnanaprakashJebaraj22-Jun-05 2:28
GnanaprakashJebaraj22-Jun-05 2:28 
GeneralFunction/handler not working Pin
laiju22-Jun-05 1:31
laiju22-Jun-05 1:31 
Generalcheck box creation on runtime Pin
softtec22-Jun-05 1:10
softtec22-Jun-05 1:10 
GeneralRe: check box creation on runtime Pin
khan++22-Jun-05 1:44
khan++22-Jun-05 1:44 
GeneralRe: check box creation on runtime Pin
softtec22-Jun-05 2:56
softtec22-Jun-05 2:56 
GeneralRe: check box creation on runtime Pin
Maximilien22-Jun-05 3:07
Maximilien22-Jun-05 3:07 
GeneralRe: check box creation on runtime Pin
softtec22-Jun-05 3:29
softtec22-Jun-05 3:29 

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.