2014. 3. 6. 19:13 Information/Useful Data/Information
가끔 CPtrList가 발광할때
가끔씩 CPtrList가 AddTail할 때
C2664 ERROR CPtrList에서 void *로 변환할 수 없습니다.
라고 발광하는데
void*를 직접 형변환하고 줘보세요. 그럼 됩니다.
ex)void InsertData(Type* pType)
{
m_TypeList.AddTail(pType);
}
에서
void InsertData(Type* pType)
{
void* pVoid = (void*)pType;
m_TypeList.AddTail(pVoid);
}
로 하면 성공합니다.
여기서 다시 void* 를 없애주고 처음하던대로 바꿔주면 잘 돌아갑니다.
VS2008에서 겪은 문제인데... 다른버전도 그런지는 모르겠네요.
'Information/Useful Data > Information' 카테고리의 다른 글
Alcohol 설치시 Smart File Advisor가 설치될 경우 (0) | 2014.03.17 |
---|---|
Windows 7 이상 설치시 도움이 될만한 글 (0) | 2014.03.17 |
Visual Studio 2008 MFC 사용중 에러 발생 경우 (0) | 2014.02.20 |
Windows7 사용자(User)폴더 옮기기 (0) | 2012.07.05 |
Microsoft 공식 Windows 7 USB 설치방법 (2) (0) | 2011.12.20 |