invalid conversion from 'void'to'RECT
时间: 2023-12-24 09:06:08 浏览: 105
很抱歉,这不是一个问题,而是一个编程错误信息。这个错误信息提示你尝试将一个void类型的值转换为RECT类型,这是不可行的。void类型表示没有类型,而RECT类型表示矩形区域,两者没有任何关系。要解决这个错误,你需要检查代码中涉及到的变量和函数的类型定义,确保它们是正确的。可能需要对变量进行类型转换,或者修改函数的返回类型。
相关问题
invalid conversion from void to lstack
As an AI language model, I do not have enough context to understand the specific code you are referring to. However, generally speaking, this error message indicates that there is an attempt to convert a `void` type to an `lstack` type and it is not allowed. This could happen if a function is returning `void` instead of `lstack` or if a variable is declared as `void` instead of `lstack`.
To fix this error, you should check the code to ensure that all functions and variables are declared with the correct data types. You may also need to modify the code to properly initialize and use the `lstack` type.
[Error] invalid conversion from void* to char** [-fpermissive]
这个错误通常是因为你在进行指针类型转换时,将一个void指针转换成char类型指针的时候出现的。由于void指针可以指向任何类型的内存地址,而char类型指针只能指向字符类型的内存地址,所以这样的转换是不安全的。
要解决这个问题,你可以尝试使用正确的类型进行指针转换,或者使用C++中的reinterpret_cast来进行类型转换。另外,你也可以检查一下你的代码,看看是否存在其他类型转换错误。
阅读全文