Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试获取编辑控件框的内容并将其用作 char[] 或 char* ,它定义为:
CString m_captureFile;
我试图定义一个吸气剂:
CString CDecklinkCaptureDlg::getFilepath(){ return m_captureFile; }
然后
strcpy((char*)filep, getFilepath());
这没用?任何想法 。感谢您的帮助!
请参阅msdn参考。
尝试:
strcpy((char*)filep, (LPCTSTR)getFilepath());