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

pointer to array

P: n/a
hello,
how do i get an address of array(required in an unmanaged struct)?

Nov 15 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
how do i get an address of array(required in an unmanaged struct)?


It depends on what the array contains. You can possibly use the C#
fixed statement. Or you can allocate a block of unmanaged memory and
copy the array data there using the Marshal class.

Mattias

--
Mattias Sjögren [MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
Nov 15 '05 #2

P: n/a
Mattias Sjögren <ma********************@mvps.org> wrote in
news:ew**************@TK2MSFTNGP11.phx.gbl:
It depends on what the array contains. You can possibly use the C#
fixed statement. Or you can allocate a block of unmanaged memory and
copy the array data there using the Marshal class.

ok problem solved, thx for help!
Nov 15 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.