Click here to Skip to main content
15,886,362 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRe: Question about .NET Visual Inheritance and MDI apps. Pin
sreejith ss nair7-Oct-04 0:38
sreejith ss nair7-Oct-04 0:38 
General.net Redistrubitable Pin
Gavin Jeffrey29-Sep-04 21:48
Gavin Jeffrey29-Sep-04 21:48 
GeneralRe: .net Redistrubitable Pin
Colin Angus Mackay29-Sep-04 23:04
Colin Angus Mackay29-Sep-04 23:04 
GeneralRe: .net Redistrubitable Pin
Gavin Jeffrey29-Sep-04 23:19
Gavin Jeffrey29-Sep-04 23:19 
GeneralRe: .net Redistrubitable Pin
Colin Angus Mackay29-Sep-04 23:25
Colin Angus Mackay29-Sep-04 23:25 
GeneralRe: .net Redistrubitable Pin
sreejith ss nair7-Oct-04 1:05
sreejith ss nair7-Oct-04 1:05 
GeneralQuestions about Exporing Types from an Assembly. Pin
jamie__smith29-Sep-04 21:17
jamie__smith29-Sep-04 21:17 
GeneralConvert int to byte [] and vice versa Pin
Vadim Tabakman29-Sep-04 21:01
Vadim Tabakman29-Sep-04 21:01 
Hi all,

i'm trying to write some Socket code in C#. I'm still learning all the intricacies of C#, and have come across something I'm not sure how to do. It may have been asked here before but I've failed to find any info on, so any help would be appreciated.

Socket.Send accepts a byte []. If I want to send an "int" which is the length of the bytes that I will be sending next, is there a conversion function from "int" to "byte []"?

The same goes for Socket.Receive. Is there a function that converts a "byte []" into an "int"?

Thanx


If there's one thing I've learned, it's that life is one crushing defeat after another until you just wish Flanders was dead. - Homer Simpson
GeneralRe: Convert int to byte [] and vice versa Pin
Gavin Jeffrey29-Sep-04 21:44
Gavin Jeffrey29-Sep-04 21:44 
GeneralRe: Convert int to byte [] and vice versa Pin
Vadim Tabakman30-Sep-04 13:15
Vadim Tabakman30-Sep-04 13:15 
GeneralRe: Convert int to byte [] and vice versa Pin
Nnamdi Onyeyiri30-Sep-04 2:29
Nnamdi Onyeyiri30-Sep-04 2:29 
GeneralRe: Convert int to byte [] and vice versa Pin
Nnamdi Onyeyiri30-Sep-04 13:23
Nnamdi Onyeyiri30-Sep-04 13:23 
GeneralRe: Convert int to byte [] and vice versa Pin
Vadim Tabakman30-Sep-04 13:26
Vadim Tabakman30-Sep-04 13:26 
GeneralRe: Progress Bar that moves Pin
kayhustle29-Sep-04 10:42
kayhustle29-Sep-04 10:42 
GeneralRe: Progress Bar that moves Pin
sampoo29-Sep-04 10:53
sampoo29-Sep-04 10:53 
GeneralFileNotFoundException for dll reference in project Pin
kayhustle29-Sep-04 6:00
kayhustle29-Sep-04 6:00 
GeneralRe: FileNotFoundException for dll reference in project Pin
Nnamdi Onyeyiri30-Sep-04 2:31
Nnamdi Onyeyiri30-Sep-04 2:31 
GeneralMultiple executables based on compilation flag Pin
marsusf29-Sep-04 5:07
marsusf29-Sep-04 5:07 
Generalassign socket permission to ntd winform Pin
zhebincong28-Sep-04 21:55
zhebincong28-Sep-04 21:55 
QuestionAVI library? Pin
erossetto28-Sep-04 13:51
erossetto28-Sep-04 13:51 
AnswerRe: AVI library? Pin
Tomas Petricek29-Sep-04 11:53
Tomas Petricek29-Sep-04 11:53 
GeneralRe: AVI library? Pin
erossetto2-Oct-04 18:43
erossetto2-Oct-04 18:43 
GeneralOutlook style datagrid Pin
cocotech28-Sep-04 9:40
cocotech28-Sep-04 9:40 
GeneralRe: Outlook style datagrid Pin
Al Gardner11-Oct-04 11:58
Al Gardner11-Oct-04 11:58 
GeneralIL Runtime Conformance Testing Pin
Joel_Rivendell28-Sep-04 0:33
Joel_Rivendell28-Sep-04 0:33 

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.