Click here to Skip to main content
15,921,660 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Matlab/C communication [modified] Pin
Randor 9-Jul-07 15:55
professional Randor 9-Jul-07 15:55 
AnswerRe: Matlab/C communication Pin
Rage10-Jul-07 2:02
professionalRage10-Jul-07 2:02 
QuestionVCPP600 Linking, nafxcwd.lib conflicts Pin
Bram van Kampen9-Jul-07 14:11
Bram van Kampen9-Jul-07 14:11 
QuestionReturn Value for Constructer ????? Pin
ForNow9-Jul-07 13:59
ForNow9-Jul-07 13:59 
AnswerRe: Return Value for Constructer ????? Pin
eraccn9-Jul-07 14:19
eraccn9-Jul-07 14:19 
GeneralRe: Return Value for Constructer ????? Pin
ForNow9-Jul-07 15:43
ForNow9-Jul-07 15:43 
GeneralRe: Return Value for Constructer ????? Pin
Stephen Hewitt9-Jul-07 18:06
Stephen Hewitt9-Jul-07 18:06 
AnswerRe: Return Value for Constructer ????? Pin
Bram van Kampen9-Jul-07 14:31
Bram van Kampen9-Jul-07 14:31 
Constructors do not return values, but can throw exceptions. (If constructors could give an error return value, by logical extension you would have to test every constructor, which would include declarations like 'int i=0')
The YACC concept would be that the effective return value of a costructor is the object it constructs. The constructor cannot return a 'Non'object, and proceed from there, it can only succeed or fail.

So, if the string data is in error, throw an exception.

An easier method is, to separate the Construction and Initialisation process, and write a method such as Init() which CAN return Value!

LateNightsInNewry

GeneralRe: Return Value for Constructer ????? Pin
ForNow9-Jul-07 15:42
ForNow9-Jul-07 15:42 
AnswerRe: Return Value for Constructer ????? Pin
eraccn9-Jul-07 16:53
eraccn9-Jul-07 16:53 
GeneralRe: Return Value for Constructer ????? Pin
ForNow9-Jul-07 18:06
ForNow9-Jul-07 18:06 
AnswerRe: Return Value for Constructer ????? Pin
G Haranadh9-Jul-07 21:37
G Haranadh9-Jul-07 21:37 
GeneralRe: Return Value for Constructer ????? Pin
ForNow10-Jul-07 0:06
ForNow10-Jul-07 0:06 
Questionwindows messages for file system [win32 api] Pin
Jayapal Chandran9-Jul-07 12:06
Jayapal Chandran9-Jul-07 12:06 
AnswerRe: windows messages for file system [win32 api] Pin
eraccn9-Jul-07 14:25
eraccn9-Jul-07 14:25 
QuestionLinker Error 2001 Pin
moonraker9289-Jul-07 11:23
moonraker9289-Jul-07 11:23 
AnswerRe: Linker Error 2001 Pin
Mark Salsbery9-Jul-07 11:43
Mark Salsbery9-Jul-07 11:43 
GeneralRe: Linker Error 2001 Pin
moonraker9289-Jul-07 12:04
moonraker9289-Jul-07 12:04 
QuestionRe: Linker Error 2001 Pin
Mark Salsbery9-Jul-07 12:09
Mark Salsbery9-Jul-07 12:09 
AnswerRe: Linker Error 2001 Pin
moonraker9289-Jul-07 12:16
moonraker9289-Jul-07 12:16 
GeneralRe: Linker Error 2001 Pin
Mark Salsbery9-Jul-07 12:24
Mark Salsbery9-Jul-07 12:24 
GeneralRe: Linker Error 2001 Pin
moonraker9289-Jul-07 12:41
moonraker9289-Jul-07 12:41 
QuestionRe: Linker Error 2001 Pin
Mark Salsbery9-Jul-07 12:56
Mark Salsbery9-Jul-07 12:56 
GeneralRe: Linker Error 2001 Pin
Mark Salsbery9-Jul-07 13:04
Mark Salsbery9-Jul-07 13:04 
GeneralRe: Linker Error 2001 Pin
moonraker9289-Jul-07 13:17
moonraker9289-Jul-07 13:17 

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.