EDN Admin
Well-known member
Hello community:
I am working with the ISAPI example provided my microsoft in this link:
http://msdn.microsoft.com/en-us/library/ms525035%28v=vs.90%29
However, when I try to build the example it shows these two errors:
Error C2664: lstrcpyW:cannot convert parameter 1 from CHAR [257] to LPWSTR<br/>
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast<br/>
<br/>
Error C2664: wsprintfW : cannot convert parameter 1 from char [2080] to LPWSTR<br/>
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast<br/>
Although Im new to C++, this is an original microsoft example, so I dont think the problem is in the code.
¿What could be wrong with my compiler configuration?
Thanks and regards.
Carlos Zamora Orozco
carloszamoraorozco@gmail.com
View the full article
I am working with the ISAPI example provided my microsoft in this link:
http://msdn.microsoft.com/en-us/library/ms525035%28v=vs.90%29
However, when I try to build the example it shows these two errors:
Error C2664: lstrcpyW:cannot convert parameter 1 from CHAR [257] to LPWSTR<br/>
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast<br/>
<br/>
Error C2664: wsprintfW : cannot convert parameter 1 from char [2080] to LPWSTR<br/>
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast<br/>
Although Im new to C++, this is an original microsoft example, so I dont think the problem is in the code.
¿What could be wrong with my compiler configuration?
Thanks and regards.
Carlos Zamora Orozco
carloszamoraorozco@gmail.com
View the full article