Click here to Skip to main content
15,906,708 members
Home / Discussions / C#
   

C#

 
GeneralRe: array Pin
Pete O'Hanlon15-Oct-08 0:18
mvePete O'Hanlon15-Oct-08 0:18 
AnswerRe: array Pin
J4amieC15-Oct-08 0:12
J4amieC15-Oct-08 0:12 
AnswerRe: array Pin
#realJSOP15-Oct-08 0:28
professional#realJSOP15-Oct-08 0:28 
GeneralRe: array Pin
PIEBALDconsult15-Oct-08 1:56
mvePIEBALDconsult15-Oct-08 1:56 
GeneralRe: array [modified] Pin
#realJSOP15-Oct-08 2:25
professional#realJSOP15-Oct-08 2:25 
AnswerRe: array Pin
Chazzysb15-Oct-08 1:08
Chazzysb15-Oct-08 1:08 
AnswerRe: array Pin
leppie15-Oct-08 1:29
leppie15-Oct-08 1:29 
QuestionHow to create a calendar views in using C# win forms Pin
sivasankar anumula14-Oct-08 23:51
sivasankar anumula14-Oct-08 23:51 
AnswerRe: How to create a calendar views in using C# win forms Pin
Thomas Stockwell15-Oct-08 1:57
professionalThomas Stockwell15-Oct-08 1:57 
QuestionPopulating a DataSet table column with the value from a ComboBox? Pin
kanchoette14-Oct-08 23:47
kanchoette14-Oct-08 23:47 
AnswerRe: Populating a DataSet table column with the value from a ComboBox? Pin
kanchoette15-Oct-08 1:07
kanchoette15-Oct-08 1:07 
QuestionPLZ HELP!!!Not able to Delete the records from DB using NHibernate Pin
Puneet Bhatnagar14-Oct-08 23:39
Puneet Bhatnagar14-Oct-08 23:39 
AnswerRe: PLZ HELP!!!Not able to Delete the records from DB using NHibernate Pin
SeMartens14-Oct-08 23:52
SeMartens14-Oct-08 23:52 
QuestionWebbrowser Pin
hadad14-Oct-08 23:21
hadad14-Oct-08 23:21 
QuestionHow to log statement in MS SqlServer by ADONetAppender using Log4Net. Pin
Chintan.Desai14-Oct-08 23:14
Chintan.Desai14-Oct-08 23:14 
AnswerRe: How to log statement in MS SqlServer by ADONetAppender using Log4Net. Pin
Giorgi Dalakishvili14-Oct-08 23:23
mentorGiorgi Dalakishvili14-Oct-08 23:23 
QuestionHow do you link a Treeview to a list View ? Pin
boiDev14-Oct-08 23:07
boiDev14-Oct-08 23:07 
AnswerRe: How do you link a Treeview to a list View ? Pin
Mohammad Dayyan15-Oct-08 1:14
Mohammad Dayyan15-Oct-08 1:14 
Questionmethod conversion from C to C# Pin
Programm3r14-Oct-08 22:45
Programm3r14-Oct-08 22:45 
AnswerRe: method conversion from C to C# Pin
Guffa14-Oct-08 23:21
Guffa14-Oct-08 23:21 
GeneralRe: method conversion from C to C# Pin
Programm3r14-Oct-08 23:36
Programm3r14-Oct-08 23:36 
GeneralRe: method conversion from C to C# Pin
Guffa15-Oct-08 2:07
Guffa15-Oct-08 2:07 
You are declaring an array of characters, and the method is writing to it as if it was an array of bytes. You are putting the wrong data type in the array, so you are only using it as a dumb memory area.

Declare an array of bytes instead, then you don't need the marshalling method in an unsafe code block to read the char array as a byte array. You can use a regular Encoding.Default.GetString call.

Also, you are changing the contents of a string, which is a big no-no. Strings are immutable, and all code that uses strings rely on that.

Despite everything, the person most likely to be fooling you next is yourself.

GeneralRe: method conversion from C to C# Pin
Programm3r15-Oct-08 2:35
Programm3r15-Oct-08 2:35 
AnswerRe: method conversion from C to C# Pin
Programm3r14-Oct-08 23:56
Programm3r14-Oct-08 23:56 
AnswerRe: method conversion from C to C# Pin
Dave Doknjas15-Oct-08 13:38
Dave Doknjas15-Oct-08 13:38 

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.