阅读:1358回复:3
如何在驱动中使用static_cast和reinterpret_cast这样的操作符?
很怪,我尝试着添加了很多头文件,都不行。比如:
#include <windef.h> #include <stdio.h> #include <stdlib.h> 我是因为看到有驱动文件里面可以用转换操作的,才到此一问。希望知者相告。 |
|
|
沙发#
发布于:2009-01-10 09:31
没有人知道啊?
|
|
|
板凳#
发布于:2009-01-14 16:50
upupup
|
|
|
地板#
发布于:2009-01-20 15:35
No one answered. I think it's not because it's too easy to not being need to answer. But just opposite.
Now the problem has been fixed. It's because that the cast operators shoulb be used under C++ complier. To use C++ complier, you need to either change the extension of each '.c' file to .cpp or add 'USECXX_FLAG=-TP' in your source file. Many thanks to Martin O'Brien. |
|
|