Click here to Skip to main content
15,892,161 members
Home / Discussions / C#
   

C#

 
QuestionVC++ DLL LIB and OCX in C# Win Form Application Pin
Karmendra Suthar1-Jan-09 7:37
Karmendra Suthar1-Jan-09 7:37 
AnswerRe: VC++ DLL LIB and OCX in C# Win Form Application Pin
Luc Pattyn1-Jan-09 7:58
sitebuilderLuc Pattyn1-Jan-09 7:58 
GeneralRe: VC++ DLL LIB and OCX in C# Win Form Application Pin
Karmendra Suthar1-Jan-09 19:20
Karmendra Suthar1-Jan-09 19:20 
GeneralRe: VC++ DLL LIB and OCX in C# Win Form Application Pin
Luc Pattyn1-Jan-09 20:38
sitebuilderLuc Pattyn1-Jan-09 20:38 
GeneralRe: VC++ DLL LIB and OCX in C# Win Form Application Pin
Karmendra Suthar2-Jan-09 21:17
Karmendra Suthar2-Jan-09 21:17 
GeneralRe: VC++ DLL LIB and OCX in C# Win Form Application Pin
Luc Pattyn3-Jan-09 1:33
sitebuilderLuc Pattyn3-Jan-09 1:33 
QuestionTo enter values in GridView dynamically after clicking edit link in GridView Pin
suni_dotnet1-Jan-09 6:40
suni_dotnet1-Jan-09 6:40 
QuestionReadString, ReadChar(s), ReadByte(s)... Pin
Jumpin' Jeff1-Jan-09 6:15
Jumpin' Jeff1-Jan-09 6:15 
I'm trying to read data from a specific binary file format, and have done well until now.

I need to read title and artist info from this file, but it is not in your typical string format where the first byte indicates the string length. It is also not serialized.

It is simply a string of 64 bytes.
As it is, readstring truncates the first character of the string as it's looking for the string length as the first byte which doesn't exist.

I've tried readchar with a for loop but this increases the load time of the file to an extreme.

I've also tried to use readbytes[64], but this always returns "System.Byte[]" instead of the actual info. I've not been able to find any valuable usage info for this method, so I'm certain I'm not using it correctly.

I've tried
read.readbytes[64];
and
read.readbytes[64].tostring();
both return System.Bytes[] as the value.

I've then thought of reading the bytes using readbytes, and then inserting the string length, so as to re read using readstring, but I'm not getting anywhere with this method either.

I'm looking for proper usage of readchars, or readbytes to return a meaningful value.

Any suggestions welcome, but I cannot alter the source. ReadChar works, but as stated, takes much to long to load. Not looking to use unsafe coding if at all possible, as that may be just as extensive loading as the looped readchar method.
AnswerRe: ReadString, ReadChar(s), ReadByte(s)... Pin
PIEBALDconsult1-Jan-09 6:19
mvePIEBALDconsult1-Jan-09 6:19 
GeneralRe: ReadString, ReadChar(s), ReadByte(s)... Pin
Luc Pattyn1-Jan-09 6:45
sitebuilderLuc Pattyn1-Jan-09 6:45 
GeneralRe: ReadString, ReadChar(s), ReadByte(s)... Pin
Jumpin' Jeff1-Jan-09 9:33
Jumpin' Jeff1-Jan-09 9:33 
Questionbutton click through another program Pin
Deresen1-Jan-09 2:38
Deresen1-Jan-09 2:38 
AnswerRe: button click through another program Pin
Christian Graus1-Jan-09 2:59
protectorChristian Graus1-Jan-09 2:59 
AnswerRe: button click through another program Pin
Silvyster1-Jan-09 12:43
Silvyster1-Jan-09 12:43 
GeneralRe: button click through another program Pin
Deresen1-Jan-09 21:14
Deresen1-Jan-09 21:14 
AnswerRe: button click through another program Pin
Eddy Vluggen2-Jan-09 2:03
professionalEddy Vluggen2-Jan-09 2:03 
GeneralRe: button click through another program Pin
Deresen2-Jan-09 2:14
Deresen2-Jan-09 2:14 
GeneralRe: button click through another program Pin
Eddy Vluggen2-Jan-09 2:26
professionalEddy Vluggen2-Jan-09 2:26 
GeneralRe: button click through another program Pin
Deresen2-Jan-09 2:31
Deresen2-Jan-09 2:31 
QuestionObject reference not set to an instance of an object.? Pin
dec821-Jan-09 2:06
dec821-Jan-09 2:06 
AnswerRe: Object reference not set to an instance of an object.? Pin
Christian Graus1-Jan-09 2:08
protectorChristian Graus1-Jan-09 2:08 
GeneralRe: Object reference not set to an instance of an object.? Pin
dec821-Jan-09 2:10
dec821-Jan-09 2:10 
GeneralRe: Object reference not set to an instance of an object.? Pin
Christian Graus1-Jan-09 2:36
protectorChristian Graus1-Jan-09 2:36 
GeneralRe: Object reference not set to an instance of an object.? Pin
dec821-Jan-09 2:59
dec821-Jan-09 2:59 
GeneralRe: Object reference not set to an instance of an object.? Pin
Christian Graus1-Jan-09 3:08
protectorChristian Graus1-Jan-09 3:08 

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.