로그인

검색

MoA
조회 수 4683 추천 수 0 댓글 0
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 게시글 수정 내역 댓글로 가기 인쇄
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 게시글 수정 내역 댓글로 가기 인쇄

VC++ 6.0으로 작성된 파일을 VC++ 2005로 프로젝트를 생성(변환)하여 컴파일하여 다음과 같은 에러가 발생하였다.

(물론 INCLUDE, LIB 폴더 환경은 맞는다는 가정하에....)

 

1>------ 빌드 시작: 프로젝트: PSDMain, 구성: Debug Win32 ------
1>컴파일하고 있습니다...
1>ChildView.cpp
1>d:프로젝트srcpsdclientpsdmainchildview.cpp(66) : error C2440: 'static_cast' : 'void (__thiscall CChildView::* )(void)'에서 'LRESULT (__thiscall CWnd::* )(WPARAM,LPARAM)'(으)로 변환할 수 없습니다.
1>        대상 형식과 일치하는 범위에 이름이 같은 함수가 없습니다.
1>PSD10010Dlg.cpp
1>d:프로젝트srcpsdclientpsdmainpsd10010dlg.cpp(65) : error C2440: 'static_cast' : 'void (__thiscall CPSD10010Dlg::* )(void)'에서 'LRESULT (__thiscall CWnd::* )(WPARAM,LPARAM)'(으)로 변환할 수 없습니다.
1>        대상 형식과 일치하는 범위에 이름이 같은 함수가 없습니다.
1>PSD90010Dlg.cpp
1>d:프로젝트srcpsdclientpsdmainpsd90010dlg.cpp(43) : error C2440: 'static_cast' : 'void (__thiscall CPSD90010Dlg::* )(void)'에서 'LRESULT (__thiscall CWnd::* )(WPARAM,LPARAM)'(으)로 변환할 수 없습니다.
1>        대상 형식과 일치하는 범위에 이름이 같은 함수가 없습니다.
1>코드를 생성하고 있습니다...
1>찾아보기 정보 파일 만들고 있습니다...
1>Microsoft Browse Information Maintenance Utility Version 8.00.50727
1>Copyright (C) Microsoft Corporation. All rights reserved.
1>빌드 로그가 "file://d:프로젝트SrcPSDClientPSDMainDebugBuildLog.htm"에 저장되었습니다.
1>PSDMain - 오류: 3개, 경고: 0개
========== 빌드: 성공 0, 실패 1, 최신 0, 생략 0 ==========

 

--------------------------------------------------------------------------------------------------------------

- 위의 굵은글자의 경고에 대한 처리방법

--------------------------------------------------------------------------------------------------------------

 

afx_msg void OnPsdScrInfo();

===> 다음과 같이 변경한다.

afx_msg LRESULT OnPsdScrInfo(WPARAM wParam,LPARAM lParam);

 

 

void CChildView::OnPsdScrInfo()
{

   :

}

===> 다음과 같이 변경한다.

LRESULT CChildView::OnPsdScrInfo(WPARAM wParam,LPARAM lParam)
{
 :
 return(0);
}

위와 같이 변경하니 경고 없어졌네요.


[출처] VC++6.0 에서 VC++ 2005로 변환할 경우 형변환 경고 대응방법 (VisualTools) |작성자 softpd

?

List of Articles
번호 분류 제목 글쓴이 날짜 조회 수
공지 Tool/etc Programming 게시판 관련 2 MoA 2014.11.01 22042
225 서버 Golang Tutorial for Node.js Developers, Part I.: Getting started OBG 2022.06.16 3127
224 Database What's the difference between comma separated joins and join on syntax in MySQL? OBG 2022.06.09 3562
223 서버 Building Pitaya, Wildlife’s own scalable game server framework OBG 2022.06.07 3545
222 Web How to send dynamic charts with a Slack bot OBG 2022.05.31 3250
221 Web [Javascript] 비동기, Promise, async, await 확실하게 이해하기 OBG 2022.05.27 3501
220 Web Address Bar Install for Progressive Web Apps on the Desktop OBG 2021.12.15 3425
219 Deeplearning 추천(Recommendation) 시스템 - 알고리즘 Trend 정리 OBG 2021.08.03 3986
218 Tool/etc What does set -e mean in a bash script? OBG 2021.04.29 4372
217 Tool/etc What does the last “-” (hyphen) mean in options of `bash`? OBG 2021.04.29 3904
216 Tool/etc 2016년에 자바스크립트를 배우는 기분 MoA 2016.12.27 3546
215 Database 서비스중인 게임 DB 설계(쿠키런) 기초 MoA 2016.07.12 4297
214 Site PHP: 잘못된 디자인의 프랙탈 MoA 2016.07.10 4399
213 API/MFC Windows 10 앱 개발(UWP) MoA 2015.10.13 4716
212 C/C++ 정신나간 정렬 알고리즘 file MoA 2015.10.13 4488
211 Site 비트윈 PC 버전 개발기 MoA 2015.10.11 4648
210 Tool/etc Machine Learning for Video Games MoA 2015.07.27 4960
209 Python [액션게임 만들기] 10. 캐릭터 기술 구현 MoA 2014.05.07 4351
208 Python [액션게임 만들기] 9. 캐릭터 액션 구현 2 MoA 2014.05.07 4196
207 Python [액션게임 만들기] 8. 캐릭터 액션 구현 1 MoA 2014.05.07 4119
206 Python [액션게임 만들기] 7. 캐릭터 출력 MoA 2014.05.07 4380
Board Pagination Prev 1 2 3 4 5 6 7 8 9 10 ... 17 Next
/ 17