Skip to Content
.NET Common Language Runtime Unleashed
book

.NET Common Language Runtime Unleashed

by Kevin Burton
April 2002
Intermediate to advanced content levelIntermediate to advanced
1024 pages
23h 26m
English
Sams
Content preview from .NET Common Language Runtime Unleashed

Summary

This chapter focused on the methods and techniques available to interoperate with legacy C/C++ unmanaged code that is implemented in DLLs. You learned how to specify the type of marshaling that is required to move your data in the managed world to the unmanaged world using the DllImport attribute. Although many of the samples that were provided were in C#, you saw that it is possible to use these same techniques in many different languages. You learned that with VC++ and the managed extensions it provides, It Just Works (IJW) is an alternative to P/Invoke. Using IJW, you can call unmanaged code without the DllImport attribute. The most significant drawback to using IJW is that you have to explicitly do the marshaling yourself. You learned ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Customizing the Microsoft® .NET Framework Common Language Runtime

Customizing the Microsoft® .NET Framework Common Language Runtime

Steven Pratschner

Publisher Resources

ISBN: 0672321246Purchase book