Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / C# / March 2008

Tip: Looking for answers? Try searching our database.

Hashtable marshaling

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Alexander Vasilevsky - 27 Mar 2008 22:18 GMT
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
Jeroen Mostert - 27 Mar 2008 22:30 GMT
> 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.

Signature

J.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.