写了这么一段代码void CDialog1Dlg::OnBnClickedButton1()
{
// TODO: Add your control notification handler code here

HMODULE hmdoule;
hmdoule = LoadLibrary(_T("MyDll.dll"));
typedef int (*MYPROC)(int x,int y);
MYPROC myproc;
myproc = (MYPROC)GetProcAddress(hmdoule,"add");
TCHAR buf[7];
sprintf(buf,_T("x+y=%d"),myproc(5,8));
AfxMessageBox(buf,MB_OK);
FreeLibrary(hmdoule);
}提示错误信息为:
error C2664: 'sprintf' : cannot convert parameter 1 from 'TCHAR [7]' to 'char *'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast有哪位大侠知道是错在哪里啊