O'Reilly logo

Microsoft® .NET Compact Framework Kick Start by Ronnie Yates, Erik Rubin

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Marshalling the Fundamental Data Types

The previous section explained the fundamentals of calling into a native DLL. It touched on such topics as where to put the DLL, what the restrictions are for making a call, and how to declare a native function as part of a managed class. A simple example proved that everything worked as expected.

ERROR HANDLING IN THE SAMPLE APPLICATIONS

Note this application and all of the others in this chapter are made to be as simple as possible while demonstrating the intended concepts. Thus, there is minimal input checking or error handling code, which can clog the project with extra code and detract from the central concept being demonstrated. For example, if you enter an alphabetic character into a field that is ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required