Click here to Skip to main content
15,891,607 members
Home / Discussions / C#
   

C#

 
AnswerRe: Running c#.net application in system tray(task bar) Pin
Michael P Butler16-Dec-05 1:49
Michael P Butler16-Dec-05 1:49 
QuestionExcel to TextFile--Urgent plzzz Pin
Mahi.Ragava16-Dec-05 0:29
Mahi.Ragava16-Dec-05 0:29 
Questionbetter datastructure for storage? Pin
AmandeepSBhatia16-Dec-05 0:29
AmandeepSBhatia16-Dec-05 0:29 
AnswerRe: better datastructure for storage? Pin
AETaylor17-Dec-05 2:58
AETaylor17-Dec-05 2:58 
GeneralRe: better datastructure for storage? Pin
AmandeepSBhatia18-Dec-05 20:41
AmandeepSBhatia18-Dec-05 20:41 
GeneralRe: better datastructure for storage? Pin
AETaylor18-Dec-05 21:09
AETaylor18-Dec-05 21:09 
QuestionStructure conversion Pin
peppepinna16-Dec-05 0:23
peppepinna16-Dec-05 0:23 
AnswerRe: Structure conversion Pin
Nick Parker16-Dec-05 6:02
protectorNick Parker16-Dec-05 6:02 
peppepinna wrote:
Hello i have a question, can i convert an array of bytes to a my structure and vice versa? Thanx


Yes, you can. For example:

byte[] ba = // Get data from somewhere.
YourStuct ys = new YourStuct();
using(MemoryStream ms = new MemoryStream(ba))
{
    BinaryReader br = new BinaryReader(ms);
    ys.SomeField = br.ReadByte();
    ys.SomeOtherField = br.ReadInt32();
    br.Close();
}


- Nick Parker
Microsoft MVP - Visual C#
My Blog | My Articles

QuestionCount the number of rows with sqldatareader Pin
Genbox16-Dec-05 0:03
Genbox16-Dec-05 0:03 
AnswerRe: Count the number of rows with sqldatareader Pin
J4amieC16-Dec-05 0:26
J4amieC16-Dec-05 0:26 
GeneralRe: Count the number of rows with sqldatareader Pin
Genbox16-Dec-05 1:00
Genbox16-Dec-05 1:00 
GeneralRe: Count the number of rows with sqldatareader Pin
J4amieC16-Dec-05 1:22
J4amieC16-Dec-05 1:22 
GeneralRe: Count the number of rows with sqldatareader Pin
Genbox17-Dec-05 3:49
Genbox17-Dec-05 3:49 
QuestionTool to detect boxing/unboxing? Pin
LiamD15-Dec-05 23:05
LiamD15-Dec-05 23:05 
AnswerRe: Tool to detect boxing/unboxing? Pin
Heath Stewart16-Dec-05 5:58
protectorHeath Stewart16-Dec-05 5:58 
Questionfree C# 2005 ebook Pin
mehrdadc4815-Dec-05 22:23
mehrdadc4815-Dec-05 22:23 
AnswerRe: free C# 2005 ebook Pin
leppie15-Dec-05 22:37
leppie15-Dec-05 22:37 
GeneralRe: free C# 2005 ebook Pin
HakunaMatada15-Dec-05 23:34
HakunaMatada15-Dec-05 23:34 
AnswerRe: free C# 2005 ebook Pin
albCode16-Dec-05 4:34
albCode16-Dec-05 4:34 
AnswerRe: free C# 2005 ebook Pin
Gulfraz Khan16-Dec-05 6:00
Gulfraz Khan16-Dec-05 6:00 
Answer[Message Removed] Pin
hankjmatt13-Oct-08 21:18
hankjmatt13-Oct-08 21:18 
QuestionURGENT DATAGRID TAB KEY PROBLEM Pin
Greeky15-Dec-05 21:56
Greeky15-Dec-05 21:56 
QuestionAsynchronous call Pin
fmardani15-Dec-05 21:52
fmardani15-Dec-05 21:52 
AnswerRe: Asynchronous call Pin
leppie15-Dec-05 22:41
leppie15-Dec-05 22:41 
GeneralRe: Asynchronous call Pin
fmardani15-Dec-05 22:46
fmardani15-Dec-05 22:46 

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.