Click here to Skip to main content
15,914,642 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
QuestionCan we reduce this function (x<-3 || x >3) further Pin
pallaka7-Jul-08 20:18
pallaka7-Jul-08 20:18 
AnswerRe: Can we reduce this function (x<-3 || x >3) further Pin
LionAM8-Jul-08 0:35
LionAM8-Jul-08 0:35 
GeneralRe: Can we reduce this function (x<-3 || x >3) further Pin
pallaka8-Jul-08 1:32
pallaka8-Jul-08 1:32 
GeneralRe: Can we reduce this function (x<-3 || x >3) further Pin
killabyte8-Jul-08 2:07
killabyte8-Jul-08 2:07 
QuestionWhat is the proper way to add a form to an existing class? Pin
BuckBrown7-Jul-08 5:55
BuckBrown7-Jul-08 5:55 
AnswerRe: What is the proper way to add a form to an existing class? Pin
led mike7-Jul-08 6:16
led mike7-Jul-08 6:16 
GeneralRe: What is the proper way to add a form to an existing class? Pin
BuckBrown7-Jul-08 7:45
BuckBrown7-Jul-08 7:45 
GeneralRe: What is the proper way to add a form to an existing class? Pin
led mike7-Jul-08 9:17
led mike7-Jul-08 9:17 
Hey Buck, sorry about that, I had no idea.

Most of those terms can be googled and wikipedia is a good introduction to most of them as well.

http://en.wikipedia.org/wiki/Separation_of_concerns[^]
http://www.google.com/search?hl=en&q=wikipedia+design+patterns&btnG=Search[^]
http://en.wikipedia.org/wiki/Model-view-controller[^]
http://en.wikipedia.org/wiki/Presentation_layer[^]
Prefer Loose Coupling[^]


If you are doing .NET development you should check out the Microsoft Patterns and Practices Center[^]

In OOD the simplest example of how to avoid tight coupling is if you have two classes that represent different things so there is no reason for them to "know" of each other, they have no relationship or association.

class A           class B

Now you find a use model or activity for which the solution can use both of them. Bad Practice would be to modify either one or both to use them in combination resulting in a relationship or association. Best Practice would be to create a 3rd class that has a relationship to both the others and implements the  solution combining the first two classes. This maintains the isolation between the first two classes.

class A           class B<br />
   \                /<br />
    \              /<br />
     \            /<br />
        class C<br />







led mike

AnswerRe: What is the proper way to add a form to an existing class? Pin
killabyte7-Jul-08 23:37
killabyte7-Jul-08 23:37 
QuestionHow can i create multiple instances of form Pin
Xaria6-Jul-08 18:28
Xaria6-Jul-08 18:28 
AnswerRe: How can i create multiple instances of form Pin
Giorgi Dalakishvili6-Jul-08 21:44
mentorGiorgi Dalakishvili6-Jul-08 21:44 
QuestionBounded mouse position when moving child form Pin
LionAM5-Jul-08 12:16
LionAM5-Jul-08 12:16 
AnswerRe: Bounded mouse position when moving child form Pin
LionAM6-Jul-08 6:26
LionAM6-Jul-08 6:26 
GeneralRe: Bounded mouse position when moving child form Pin
LionAM7-Jul-08 9:18
LionAM7-Jul-08 9:18 
QuestionGetType for class Pin
LionAM5-Jul-08 6:20
LionAM5-Jul-08 6:20 
AnswerRe: GetType for class Pin
Mark Salsbery5-Jul-08 9:29
Mark Salsbery5-Jul-08 9:29 
GeneralRe: GetType for class Pin
LionAM5-Jul-08 9:47
LionAM5-Jul-08 9:47 
GeneralRe: GetType for class Pin
Mark Salsbery5-Jul-08 9:53
Mark Salsbery5-Jul-08 9:53 
GeneralRe: GetType for class Pin
LionAM5-Jul-08 12:00
LionAM5-Jul-08 12:00 
GeneralRe: GetType for class Pin
Mark Salsbery5-Jul-08 12:43
Mark Salsbery5-Jul-08 12:43 
QuestionUDP messages Pin
dSolariuM5-Jul-08 3:26
dSolariuM5-Jul-08 3:26 
QuestionRe: UDP messages Pin
Mark Salsbery5-Jul-08 9:31
Mark Salsbery5-Jul-08 9:31 
QuestionDebuging Interop: C# -&gt; C++ Pin
Tomerland4-Jul-08 4:39
Tomerland4-Jul-08 4:39 
AnswerRe: Debuging Interop: C# -&gt; C++ Pin
Tomerland4-Jul-08 4:45
Tomerland4-Jul-08 4:45 
GeneralRe: Debuging Interop: C# -&gt; C++ Pin
Tomerland4-Jul-08 4:55
Tomerland4-Jul-08 4:55 

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.