error:MultiByteToWideChar cannot convert parameter 2 from 'char [10]' to 'unsigned short *'
来源:互联网 发布:软件版本说明模板 编辑:程序博客网 时间:2024/06/06 01:29
前提是#include<windows.h>
MultiByteToWideChar(CP_ACP,0,RootDirectory,-1,wRootDirectory,10)
以上语句容易出现以上错误cannot convert parameter 5 from 'char [10]' to 'unsigned short *',修改的最直接的方法就是强制转换:
MultiByteToWideChar(CP_ACP,0,RootDirectory,-1,(unsigned short*)wRootDirectory,10)
0 0
- error:MultiByteToWideChar cannot convert parameter 2 from 'char [10]' to 'unsigned short *'
- 报错 error C2664: 'CreateWindowExA' : cannot convert parameter 2 from 'unsigned short [10]' to 'const char *'
- error:cannot convert parameter 1 from 'unsigned char *' to 'char *'
- 2014-04-02工作日志:error C2440: 'initializing' : cannot convert from 'char [8]' to 'unsigned short *'
- cannot convert parameter 5 from 'char [64]' to 'unsigned char *解决办法
- error C2664: 'CreateThread' : cannot convert parameter 3 from 'unsigned long (void *)' to 'unsigned long (__stdcall *)(void *)'
- error C2664: 'CreateThread' : cannot convert parameter 3 from 'unsigned long (void *)' to 'unsigned
- error C2664: 'MessageBoxW' : cannot convert parameter 2 from 'const char [2]' to 'LPCWSTR'
- 关于VS2005的error C2664: cannot convert parameter 2 from 'const char [2]' to 'LPCWSTR
- error C2664: 'MessageBoxW' : cannot convert parameter 2 from 'char [20]' to 'LPCWSTR' 原因
- error C2664: 'MessageBoxW' : cannot convert parameter 2 from 'char [20]' to 'LPCWSTR' 原因
- error C2664: 'MessageBoxW' : cannot convert parameter 2 from 'char [20]' to 'LPCWSTR' 原因
- error C2664:cannot convert parameter 2 from 'char [260]' to 'LPWCH'
- Visual C++:error C2664: 'GetModuleFileNameW' : cannot convert parameter 2 from 'char' to 'LPWCH'
- error C2664: 'CreateWindowExW' : cannot convert parameter 2 from 'const char [16]' to 'LPCWSTR'
- VS2008中报错:cannot convert parameter 2 from 'char *' to 'LPCWSTR'
- VS2005中报错:cannot convert parameter 2 from 'char *' to 'LPCWSTR'
- cannot convert parameter 2 from 'const char[15]' to 'LPWSTR';
- Struts2 登陆验证、国际化显示Demo
- Joseph - POJ 1012 打表
- 黑马程序员 Java基础_4 面向对象-抽象与封装
- 如何判断链表中是否有环
- Android命令行/c语言/java设置获取系统属性的方法
- error:MultiByteToWideChar cannot convert parameter 2 from 'char [10]' to 'unsigned short *'
- PL/SQL控制循环结构
- PLSQL程序控制结构
- 【Mac OS X开发】在NSAlert中添加NSTableView,双击NSTableView单元格用于确定选择的效果
- Maya Calendar - POJ 1008 时间转换
- 类簇的概念
- 《HTML 5网页开发实例详解》样章、内容简介、前言
- VxWorks Shell
- 中缀表达式转换成后缀表达式