Книга: Microsoft Windows Embedded CE 6.0 Exam Preparation Kit
Exporting Stream Functions
Exporting Stream Functions
Making the stream functions in the driver DLL accessible to external applications requires the linker to export the functions during the build process. C++ provides several options to accomplish this, yet for driver DLLs compatible with Device
Manager, you must export the functions by defining them in the .def file of the DLL subproject. The linker uses the .def file to determine which functions to export and how to do so. For a standard stream driver, you must export the stream interface functions using the prefix that you specify in the driver's source code and registry settings. Figure 6-3 shows a sample .def file for the stream interface skeleton listed in the previous section.
Figure 6-3 A sample .def file for a stream driver
- Implementing Stream Functions
- Класс StreamReader
- CHAPTER 4 Functions and Libraries in mikroC
- Класс FileStream и байтовый ввод-вывод в файл
- Streaming Audio
- Compressing, Encrypting, and Sending tar Streams
- Functions
- Basic Functions
- Using Functions in Shell Scripts
- 4.1 mikroC Functions
- 4.2 mikroC Built-in Functions
- 4.3 mikroC Library Functions