Click here to Skip to main content
15,909,656 members
Home / Discussions / C#
   

C#

 
GeneralRe: Text Readers, Streams, *ugh* Pin
Heath Stewart13-May-04 16:51
protectorHeath Stewart13-May-04 16:51 
GeneralRe: Text Readers, Streams, *ugh* Pin
gUrM33T13-May-04 18:06
gUrM33T13-May-04 18:06 
GeneralRe: Text Readers, Streams, *ugh* Pin
Heath Stewart14-May-04 2:00
protectorHeath Stewart14-May-04 2:00 
GeneralChange tabs with a button click Pin
itstime9812-May-04 16:56
itstime9812-May-04 16:56 
GeneralRe: Change tabs with a button click Pin
Aryadip12-May-04 18:01
Aryadip12-May-04 18:01 
Generalconverting a struct to an byte array Pin
User 96257812-May-04 11:59
User 96257812-May-04 11:59 
GeneralRe: converting a struct to an byte array Pin
Heath Stewart12-May-04 12:48
protectorHeath Stewart12-May-04 12:48 
GeneralRe: converting a struct to an byte array Pin
User 96257812-May-04 16:57
User 96257812-May-04 16:57 
My connection is between a OC and a pocket PC, so im using the .Net Compact framework, i should have posted that.

Well then i got the thinking, pulling weird stuff out of my head, "what if i cast the struct to an object and send the object.ToSting() ?, no that will never work"
But i still tried it, so i just threw something together:


aStruct qwerty = new aStruct( 35, "Football");
object wed = (object) qwerty;

aStruct ytrewq = ( aStruct ) wed;
Console.WriteLine( ytrewq.aInt.ToString() );

out of dumb luck it worked, strange. Well is this way bad? i havent tried to send it yet (ByteArrayData = Encoding.ASCII.GetBytes( wed.ToString()), but it worked.

modified 16-May-21 21:01pm.

GeneralRe: converting a struct to an byte array Pin
User 96257812-May-04 17:11
User 96257812-May-04 17:11 
GeneralRe: converting a struct to an byte array Pin
Heath Stewart13-May-04 2:09
protectorHeath Stewart13-May-04 2:09 
Generalcontrolling 'min occurs' in WSDL Pin
avneeshb12-May-04 11:51
avneeshb12-May-04 11:51 
GeneralRe: controlling 'min occurs' in WSDL Pin
Heath Stewart12-May-04 13:03
protectorHeath Stewart12-May-04 13:03 
Generalhello, it's me the C# n00b again, I have some questions about C# ^_^; Pin
C# n00b12-May-04 11:07
C# n00b12-May-04 11:07 
GeneralRe: hello, it's me the C# n00b again, I have some questions about C# ^_^; Pin
Heath Stewart12-May-04 11:11
protectorHeath Stewart12-May-04 11:11 
GeneralRe: hello, it's me the C# n00b again, I have some questions about C# ^_^; Pin
TigerNinja_12-May-04 12:14
TigerNinja_12-May-04 12:14 
GeneralRe: hello, it's me the C# n00b again, I have some questions about C# ^_^; Pin
C# n00b12-May-04 14:10
C# n00b12-May-04 14:10 
GeneralRe: hello, it's me the C# n00b again, I have some questions about C# ^_^; Pin
Dave Kreskowiak12-May-04 14:26
mveDave Kreskowiak12-May-04 14:26 
GeneralCOM registration Pin
student666912-May-04 9:25
student666912-May-04 9:25 
GeneralRe: COM registration Pin
Heath Stewart12-May-04 9:42
protectorHeath Stewart12-May-04 9:42 
GeneralTextBox: erasing the old lines Pin
goldoche12-May-04 9:11
goldoche12-May-04 9:11 
GeneralRe: TextBox: erasing the old lines Pin
Jeff Varszegi12-May-04 9:25
professionalJeff Varszegi12-May-04 9:25 
GeneralRe: TextBox: erasing the old lines Pin
leppie12-May-04 13:25
leppie12-May-04 13:25 
GeneralRe: TextBox: erasing the old lines Pin
Jeff Varszegi13-May-04 2:02
professionalJeff Varszegi13-May-04 2:02 
GeneralDebugging Pin
Anonymous12-May-04 9:00
Anonymous12-May-04 9:00 
GeneralRe: Debugging Pin
Jeff Varszegi12-May-04 9:06
professionalJeff Varszegi12-May-04 9:06 

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.