Click here to Skip to main content
15,920,438 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Memory leaks Pin
V.8-Aug-04 20:53
professionalV.8-Aug-04 20:53 
Generalstrange treeviewctrl behavior Pin
johnny,Kim8-Aug-04 19:38
johnny,Kim8-Aug-04 19:38 
GeneralRegOpenKeyEX(HKEY_LOCAL_MACHINE..... Pin
Anonymous8-Aug-04 18:48
Anonymous8-Aug-04 18:48 
GeneralRe: RegOpenKeyEX(HKEY_LOCAL_MACHINE..... Pin
Michael Dunn8-Aug-04 19:37
sitebuilderMichael Dunn8-Aug-04 19:37 
QuestionShould the next C++ standard include support for "Design by Contract"? Pin
KevinHall8-Aug-04 18:45
KevinHall8-Aug-04 18:45 
AnswerRe: Should the next C++ standard include support for "Design by Contract"? Pin
John R. Shaw8-Aug-04 19:40
John R. Shaw8-Aug-04 19:40 
AnswerRe: Should the next C++ standard include support for "Design by Contract"? Pin
Michael Dunn8-Aug-04 19:41
sitebuilderMichael Dunn8-Aug-04 19:41 
GeneralRe: Should the next C++ standard include support for "Design by Contract"? Pin
KevinHall8-Aug-04 20:05
KevinHall8-Aug-04 20:05 
It seems to me that exceptions are different than pre/post conditions. Exception specifications are problematic because a sub-function the programmer uses and has no control over can throw an exception that he does not expect. With contracts, the writer is in control of the contracts.

I suppose it is possible for a person to make the restrictions too tight, but in my mind its better to have restrictions that are too tight than those that are too loose (or even non-existent).

The funny thing about the argument you presented is that this same argument applies as well to ASSERTs. Everyone I've talked to and everything I read encourage the use of assertions. In this Q&A session (http://66.102.7.104/search?q=cache:JUm2esOnHs8J:www.research.att.com/~bs/slashdot_interview.html+Stroustrup+assert&hl=en) Stroustrup argues that he prefers asserts and that some assertion templates should even be standardized. He just doesn't think that pre/post conditions add more than asserts can. However, there are people who disagree. Asserts can't be inherited with classes, where as pre/postconditions could.

GeneralGet texts from the dialog and show them on the View Pin
bonmeepon8-Aug-04 18:30
bonmeepon8-Aug-04 18:30 
GeneralRe: Get texts from the dialog and show them on the View Pin
Vadim Tabakman8-Aug-04 18:40
Vadim Tabakman8-Aug-04 18:40 
Questionfopen errors? Pin
Tyrus1828-Aug-04 17:55
Tyrus1828-Aug-04 17:55 
AnswerRe: fopen errors? Pin
Vadim Tabakman8-Aug-04 18:31
Vadim Tabakman8-Aug-04 18:31 
AnswerRe: fopen errors? Pin
David Crow9-Aug-04 3:12
David Crow9-Aug-04 3:12 
GeneralSet Fields in ADO?(VC++) Pin
Zero_One_ADO8-Aug-04 17:37
Zero_One_ADO8-Aug-04 17:37 
GeneralRe: Set Fields in ADO?(VC++) Pin
Milton Karimbekallil8-Aug-04 18:51
Milton Karimbekallil8-Aug-04 18:51 
GeneralDBCS Hell! Pin
John R. Shaw8-Aug-04 17:14
John R. Shaw8-Aug-04 17:14 
GeneralDialog initlization Pin
Tyrus1828-Aug-04 16:49
Tyrus1828-Aug-04 16:49 
GeneralRe: Dialog initlization Pin
Ryan Binns8-Aug-04 18:11
Ryan Binns8-Aug-04 18:11 
GeneralRe: Dialog initlization Pin
Vadim Tabakman8-Aug-04 18:12
Vadim Tabakman8-Aug-04 18:12 
QuestionHow to execute a SQL pass-through from Regular Dll Pin
TuanTriTue8-Aug-04 16:47
TuanTriTue8-Aug-04 16:47 
Generalsingle server and multiple clients, using multithreading (winsock) Pin
deep_george Z8-Aug-04 16:17
sussdeep_george Z8-Aug-04 16:17 
GeneralRe: single server and multiple clients, using multithreading (winsock) Pin
Ryan Binns8-Aug-04 18:16
Ryan Binns8-Aug-04 18:16 
GeneralFind out which header files are included.. Pin
Vadim Tabakman8-Aug-04 15:49
Vadim Tabakman8-Aug-04 15:49 
GeneralRe: Find out which header files are included.. Pin
Blake Miller9-Aug-04 5:26
Blake Miller9-Aug-04 5:26 
GeneralRe: Find out which header files are included.. Pin
Vadim Tabakman9-Aug-04 14:43
Vadim Tabakman9-Aug-04 14:43 

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.