illegal use of this type as an expression 解决办法
遇到一个问题:提示illegal use of this type as an expression。
其实解决的办法是很简单的。这是一类常见的错误。原因在于你的驱动是用C语言写的,扩展名为.c,而你定义的变量没有放在函数的的开头,比如,你先DbgPrint一下,又接着定义了一个变量,结果就会导致illegal use of this type as an expression。
在C语言中就是这样。不只是驱动编程。这是通用的解决方案。把所有变量定义放在函数的开头。
Copyed From 程序人生
Home Page:http://www.programlife.net
Source URL:http://www.programlife.net/illegal-use-of-this-type-as-an-expression.html