Click here to Skip to main content
15,897,187 members
Home / Discussions / C#
   

C#

 
QuestionHow to programming serial port (RS-232) in VC#.net(visual studio.net 2003) with .net framework1.1 Pin
bug_aonz9-Jul-06 0:22
bug_aonz9-Jul-06 0:22 
AnswerRe: How to programming serial port (RS-232) in VC#.net(visual studio.net 2003) with .net framework1.1 Pin
Guffa9-Jul-06 1:27
Guffa9-Jul-06 1:27 
AnswerRe: How to programming serial port (RS-232) in VC#.net(visual studio.net 2003) with .net framework1.1 Pin
Ed.Poore9-Jul-06 12:30
Ed.Poore9-Jul-06 12:30 
QuestionData structure and exception Pin
Super Lloyd8-Jul-06 21:53
Super Lloyd8-Jul-06 21:53 
AnswerRe: Data structure and exception Pin
Andrew Lygin8-Jul-06 22:41
Andrew Lygin8-Jul-06 22:41 
GeneralRe: Data structure and exception Pin
Super Lloyd8-Jul-06 23:49
Super Lloyd8-Jul-06 23:49 
GeneralRe: Data structure and exception Pin
Super Lloyd8-Jul-06 23:52
Super Lloyd8-Jul-06 23:52 
AnswerRe: Data structure and exception Pin
Igor Sukhov8-Jul-06 23:58
Igor Sukhov8-Jul-06 23:58 
If there's a possibility that the user's code might corrupt the data (which is likely to be true if the data is not a read-only and user has sufficient rights to change it) - provide some way to the [b]user[/b] to handle it.

Don't try to recover data by your own means because obviously your code have no prior knowledge that might go wrong therefore there's no guaranty that you would be able to fix all the possible mess.

If there's no guaranty - don't claim it. Let the user's code do
all cleaning up/fixing job in a way he/she wants.

One thing that might be usefull is ability of making a copy of data so the user could try again if bad things happened with the original data. If it pays to make a copy of the data before potentially dangerous operation - let user do the decision.

The bottom line is - let the user decide is data was corrupted and if it was - let user's code recover from corruption.



Best regards,

-----------
Igor Sukhovhttp://sukhov.net
GeneralRe: Data structure and exception Pin
Super Lloyd9-Jul-06 0:08
Super Lloyd9-Jul-06 0:08 
QuestionHow to read file from a FTP site Pin
Zami_28-Jul-06 19:33
Zami_28-Jul-06 19:33 
AnswerRe: How to read file from a FTP site Pin
Ravi Bhavnani8-Jul-06 21:03
professionalRavi Bhavnani8-Jul-06 21:03 
QuestionHow can I copy a treeView to listBox? Pin
AngryC8-Jul-06 18:57
AngryC8-Jul-06 18:57 
AnswerRe: How can I copy a treeView to listBox? [modified] Pin
Andrew Lygin8-Jul-06 20:23
Andrew Lygin8-Jul-06 20:23 
GeneralRe: How can I copy a treeView to listBox? [modified] Pin
AngryC8-Jul-06 21:08
AngryC8-Jul-06 21:08 
GeneralRe: How can I copy a treeView to listBox? Pin
Andrew Lygin8-Jul-06 22:14
Andrew Lygin8-Jul-06 22:14 
GeneralRe: How can I copy a treeView to listBox? [modified] Pin
AngryC9-Jul-06 6:30
AngryC9-Jul-06 6:30 
AnswerRe: How can I copy a treeView to listBox? Pin
Andrew Lygin9-Jul-06 20:03
Andrew Lygin9-Jul-06 20:03 
GeneralRe: How can I copy a treeView to listBox? Pin
AngryC9-Jul-06 20:26
AngryC9-Jul-06 20:26 
QuestionCTL+A Detection Pin
picasso28-Jul-06 15:43
picasso28-Jul-06 15:43 
AnswerRe: CTL+A Detection Pin
Judah Gabriel Himango8-Jul-06 16:59
sponsorJudah Gabriel Himango8-Jul-06 16:59 
GeneralRe: CTL+A Detection Pin
picasso28-Jul-06 17:40
picasso28-Jul-06 17:40 
GeneralRe: CTL+A Detection Pin
Judah Gabriel Himango8-Jul-06 17:47
sponsorJudah Gabriel Himango8-Jul-06 17:47 
GeneralRe: CTL+A Detection Pin
picasso28-Jul-06 19:15
picasso28-Jul-06 19:15 
GeneralRe: CTL+A Detection Pin
Judah Gabriel Himango9-Jul-06 10:28
sponsorJudah Gabriel Himango9-Jul-06 10:28 
AnswerRe: CTL+A Detection Pin
Andrew Lygin8-Jul-06 20:42
Andrew Lygin8-Jul-06 20:42 

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.