Click here to Skip to main content
15,889,216 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionhow to upload a file on a server at a perticular location? Pin
AnayKulkarni11-Sep-07 19:14
AnayKulkarni11-Sep-07 19:14 
AnswerRe: how to upload a file on a server at a perticular location? Pin
Jason Teagle11-Sep-07 22:16
Jason Teagle11-Sep-07 22:16 
GeneralRe: how to upload a file on a server at a perticular location? Pin
AnayKulkarni12-Sep-07 0:14
AnayKulkarni12-Sep-07 0:14 
QuestionRe: how to upload a file on a server at a perticular location? Pin
David Crow12-Sep-07 3:40
David Crow12-Sep-07 3:40 
QuestionHow to fixed such error?C2220 Pin
kcynic11-Sep-07 17:38
kcynic11-Sep-07 17:38 
AnswerRe: How to fixed such error?C2220 Pin
Stephen Hewitt11-Sep-07 17:46
Stephen Hewitt11-Sep-07 17:46 
AnswerRe: How to fixed such error?C2220 Pin
David Crow12-Sep-07 3:42
David Crow12-Sep-07 3:42 
QuestionGet and Set methods Pin
User 58385211-Sep-07 16:16
User 58385211-Sep-07 16:16 
consider

<br />
class Car<br />
{<br />
   int speed;<br />
   doulbe engineSize;<br />
};<br />
<br />


I persoanlly dislike code like this. I tend to make all data members private and provide inlined get and set methods where appropriate. The main reason I like the get and set methods is its easier to debug code as you can put a break point in the set method for example and catch every change to the value. Also it prevents people taking the address of these variables and manipulating them through pointers which can also be hard to track down in a large project.

Im interested to hear the opinions of others on the use of public data members or getter and setter methods
AnswerRe: Get and Set methods Pin
George L. Jackson11-Sep-07 18:19
George L. Jackson11-Sep-07 18:19 
AnswerRe: Get and Set methods Pin
Nelek11-Sep-07 22:55
protectorNelek11-Sep-07 22:55 
AnswerRe: Get and Set methods Pin
Mark Salsbery12-Sep-07 8:30
Mark Salsbery12-Sep-07 8:30 
QuestionEnumProcesses Pin
dellthinker11-Sep-07 15:54
dellthinker11-Sep-07 15:54 
AnswerRe: EnumProcesses Pin
Hamid_RT11-Sep-07 19:39
Hamid_RT11-Sep-07 19:39 
AnswerRe: EnumProcesses Pin
Randor 11-Sep-07 20:39
professional Randor 11-Sep-07 20:39 
AnswerRe: EnumProcesses Pin
Randor 11-Sep-07 20:53
professional Randor 11-Sep-07 20:53 
QuestionMS OFFICE File Open Save Dialog Hooking Pin
JuggernautMsn11-Sep-07 14:00
JuggernautMsn11-Sep-07 14:00 
AnswerRe: MS OFFICE File Open Save Dialog Hooking Pin
Mark Salsbery11-Sep-07 15:14
Mark Salsbery11-Sep-07 15:14 
GeneralRe: MS OFFICE File Open Save Dialog Hooking Pin
JuggernautMsn11-Sep-07 15:19
JuggernautMsn11-Sep-07 15:19 
QuestionWhat's the diff between DLLs ? Pin
USAFHokie8011-Sep-07 10:16
USAFHokie8011-Sep-07 10:16 
AnswerRe: What's the diff between DLLs ? Pin
Chris Losinger11-Sep-07 10:38
professionalChris Losinger11-Sep-07 10:38 
GeneralRe: What's the diff between DLLs ? Pin
USAFHokie8011-Sep-07 10:59
USAFHokie8011-Sep-07 10:59 
GeneralRe: What's the diff between DLLs ? Pin
Chris Losinger11-Sep-07 11:17
professionalChris Losinger11-Sep-07 11:17 
GeneralRe: What's the diff between DLLs ? Pin
USAFHokie8011-Sep-07 11:29
USAFHokie8011-Sep-07 11:29 
GeneralRe: What's the diff between DLLs ? Pin
Mark Salsbery11-Sep-07 11:50
Mark Salsbery11-Sep-07 11:50 
GeneralRe: What's the diff between DLLs ? Pin
led mike11-Sep-07 11:49
led mike11-Sep-07 11:49 

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.