By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,673 Members | 1,209 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,673 IT Pros & Developers. It's quick & easy.

How to transform a Struct into a byte array

P: n/a
Hi. Can you help me on this? I have the following:
MyStruct myStruct = new MyStruct ();

Then a function filled up myStruct. Now I need to read the struct data byte
by byte because I have a "dwParam1Offset" and a "dwParam1Size" in it that
contains an unicode string which I need to have.

Is there any way of retrieving this information? Maybe I really don't need
to have a byte array and there's another way.. I'm lost in this. Can you
please give me a hand?


Ignacio Domínguez
Nov 13 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.