Click here to Skip to main content
15,905,683 members
Home / Discussions / C#
   

C#

 
AnswerRe: How to position cursor at some position in RichTextBox Pin
Simon P Stevens17-Oct-08 3:23
Simon P Stevens17-Oct-08 3:23 
QuestionDeadlock in SqlBulkCopy.WriteToServer() Pin
JuergenThome17-Oct-08 2:32
JuergenThome17-Oct-08 2:32 
AnswerRe: Deadlock in SqlBulkCopy.WriteToServer() Pin
Wendelius17-Oct-08 7:54
mentorWendelius17-Oct-08 7:54 
QuestionGetDetailsOf Efficiency Pin
Ankit Rajpoot17-Oct-08 1:50
Ankit Rajpoot17-Oct-08 1:50 
AnswerRe: GetDetailsOf Efficiency Pin
Simon P Stevens17-Oct-08 3:21
Simon P Stevens17-Oct-08 3:21 
AnswerRe: GetDetailsOf Efficiency Pin
jzonthemtn17-Oct-08 8:40
jzonthemtn17-Oct-08 8:40 
QuestionFile Of Records(Structure) In C# Pin
Member 202517617-Oct-08 1:17
Member 202517617-Oct-08 1:17 
AnswerRe: File Of Records(Structure) In C# Pin
Guffa17-Oct-08 2:41
Guffa17-Oct-08 2:41 
It should be possible to create a structure with a memory allocation that matches your file, using some attributes, but it's not trivial. Then it should be possible to read data into that structure.

I think that the simplest way is to just use a BinaryReader to read the file.

Note that a character in .NET is a 16 bit value, and the string in your file is probably encoded as 8 bit values. You need to specify an encoding that maps each character to an 8 bit value, like Encoding.ASCII or Encoding.Default (Ansi).

Also, you have to match the integer data types against the .NET integer types. How many bits are there in a longint and shortint? In .NET you have the specific Int16, Int32 and Int64 types (which maps against the aliases short, int and long in C#).

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

Questioni need my application to access the Excel function wizard and use the results. Pin
tozy17-Oct-08 0:43
tozy17-Oct-08 0:43 
RantRe: i need my application to access the Excel function wizard and use the results. Pin
Ashfield17-Oct-08 0:57
Ashfield17-Oct-08 0:57 
GeneralRe: i need my application to access the Excel function wizard and use the results. Pin
Paul Conrad24-Oct-08 5:51
professionalPaul Conrad24-Oct-08 5:51 
QuestionUrgent Plz HELP Error Provider in c# Pin
tonyjsebastian116-Oct-08 23:23
tonyjsebastian116-Oct-08 23:23 
AnswerRe: Urgent Plz HELP Error Provider in c# PinPopular
Simon P Stevens16-Oct-08 23:34
Simon P Stevens16-Oct-08 23:34 
AnswerRe: Urgent Plz HELP Error Provider in c# Pin
Eslam Afifi17-Oct-08 4:10
Eslam Afifi17-Oct-08 4:10 
AnswerRe: Urgent Plz HELP Error Provider in c# Pin
Paul Conrad17-Oct-08 6:27
professionalPaul Conrad17-Oct-08 6:27 
Question[Message Deleted] Pin
smraj150316-Oct-08 21:20
smraj150316-Oct-08 21:20 
AnswerRe: Iam doing the BROWSING CENTER PROJECT Pin
Giorgi Dalakishvili16-Oct-08 21:38
mentorGiorgi Dalakishvili16-Oct-08 21:38 
GeneralRe: Iam doing the BROWSING CENTER PROJECT Pin
Mogyi16-Oct-08 21:40
Mogyi16-Oct-08 21:40 
AnswerRe: Iam doing the BROWSING CENTER PROJECT Pin
Pete O'Hanlon16-Oct-08 21:54
mvePete O'Hanlon16-Oct-08 21:54 
GeneralRe: Iam doing the BROWSING CENTER PROJECT Pin
Paul Conrad17-Oct-08 10:47
professionalPaul Conrad17-Oct-08 10:47 
GeneralRe: Iam doing the BROWSING CENTER PROJECT Pin
martin_hughes17-Oct-08 13:57
martin_hughes17-Oct-08 13:57 
AnswerRe: Iam doing the BROWSING CENTER PROJECT Pin
Shyam Bharath16-Oct-08 22:13
Shyam Bharath16-Oct-08 22:13 
JokeRe: Iam doing the BROWSING CENTER PROJECT Pin
Bassam Saoud17-Oct-08 10:19
Bassam Saoud17-Oct-08 10:19 
AnswerRe: Iam doing the BROWSING CENTER PROJECT Pin
Christian Graus17-Oct-08 10:53
protectorChristian Graus17-Oct-08 10:53 
AnswerRe: Iam doing the BROWSING CENTER PROJECT Pin
Vasudevan Deepak Kumar17-Oct-08 11:40
Vasudevan Deepak Kumar17-Oct-08 11:40 

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.