471,356 Members | 1,682 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,356 software developers and data experts.

Hashtable marshaling

Is there a way to transfer C# Hashtable object to unmanage part of the
application in C++?

http://www.alvas.net - Audio tools for C# and VB.Net developers
Mar 27 '08 #1
1 1359
Alexander Vasilevsky wrote:
Is there a way to transfer C# Hashtable object to unmanage part of the
application in C++?
The only data type they have in common is the array. You could marshal .Keys
and .Values separately. Modifying the hashtable from unmanaged code is right
out. (Theoretically you could implement a custom marshaler, but this is a
lot of hard work and probably not worth it.)

You could do it much more easily from managed C++, of course, since that
would be able to use the hashtable type directly.

--
J.
Mar 27 '08 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Ash | last post: by
3 posts views Thread by Nikolay Petrov | last post: by
5 posts views Thread by VM | last post: by
3 posts views Thread by Rudy Velthuis | last post: by
1 post views Thread by Nadav | last post: by
5 posts views Thread by francois | last post: by
1 post views Thread by Bill Medland | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.