Notice
Recent Posts
Recent Comments
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
Tags
- TensorFlow
- h5py.File
- x64
- Ransomware
- idapython
- idapro
- NumPy Unicode Error
- MySQL
- 포인터 매핑
- error
- debugging
- idb2pat
- hex-rays
- data distribution
- ida pro
- open office xml
- ida
- mock.patch
- javascript
- malware
- commandline
- Rat
- Analysis
- error fix
- ecma
- why error
- Injection
- svn update
- pytest
- Python
Archives
- Today
- Total
13 Security Lab
[스크랩]CString 에러 본문
'void ATL::CStringT<BaseType,StringTraits>::Format(const wchar_t * ,...)' :
매개 변수 1을 'const char [6]'에서 'const wchar_t *'으로 변활할수 없습니다
결론은~ 현재 하고 있는 프로젝트 속성이 유니코드로 설정
유니코드에서는 _T()매크로를 사용해야 한다.(크기가 다르기 때문에!!)
따라서! 본래의 코드가 이랫다면~
(m_nPort는 당연히 int형이고 PortNum은 CString 다!!)
(m_nPort는 당연히 int형이고 PortNum은 CString 다!!)
이렇게 고쳐줘야 에러가 발생하지 않는다!!
-----------------------------------------------
왜 헤더 선언이 되었는데도 안되나 했는데 이것때문이었네...... 덕분에 해결...^^
출처 : http://uiandwe.tistory.com/208
Comments