메뉴 건너뛰기

OBG

Programming

MoA
조회 수 626 추천 수 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

?

  1. Programming 게시판 관련

    Date2014.11.01 CategoryTool/etc ByMoA Views1709
    read more
  2. VC++6.0 에서 VC++ 2005로 변환할 경우 형변환 경고 대응방법

    Date2013.07.28 CategoryAPI/MFC ByMoA Views626
    Read More
  3. Using Machine Learning to Predict Customers’ Next Purchase Day

    Date2024.02.27 CategoryDeeplearning ByOBG Views38
    Read More
  4. UpdateWindow 함수에 대하여..

    Date2013.07.25 CategoryAPI/MFC ByMoA Views472
    Read More
  5. UpdateDialogControls

    Date2013.09.05 CategoryAPI/MFC ByMoA Views803
    Read More
  6. UpdateData(TRUE) or UpdateData(FALSE) 구분

    Date2013.07.28 CategoryAPI/MFC ByMoA Views440
    Read More
  7. unsigned char <-> 유니코드(unicode) 및, string 변환 매크로 - USES_CONVERSION

    Date2013.07.28 CategoryAPI/MFC ByMoA Views1331
    Read More
  8. UI Guidelines

    Date2014.03.11 CategoryTool/etc ByMoA Views516
    Read More
  9. Top 3 most used Pytorch Ecosystem Libraries you should Know about

    Date2023.08.02 CategoryDeeplearning ByOBG Views86
    Read More
  10. Thread와 SendMessage를 통해 DeadLock을 만드는 방법

    Date2013.07.28 CategoryAPI/MFC ByMoA Views2625
    Read More
  11. Thread에서 Dialog의 UpdateData()사용하는 방법

    Date2011.09.26 CategoryAPI/MFC By너울 Views1123
    Read More
  12. Thread Programming

    Date2012.08.02 CategoryAPI/MFC ByNaya Views596
    Read More
  13. The State of AI & Art 2022

    Date2022.10.06 CategoryDeeplearning ByOBG Views136
    Read More
  14. The difference between quantization methods for the same bits

    Date2024.04.14 CategoryLLM ByOBG Views25
    Read More
  15. stdafx.h 사용 (미리 컴파일된 헤더)

    Date2012.08.13 CategoryAPI/MFC ByNaya Views721
    Read More
  16. Start Something! - Windows 8 개발 공식 사이트

    Date2012.08.02 CategorySite ByNaya Views257
    Read More
  17. Stable Diffusion

    Date2022.09.27 CategoryDeeplearning ByOBG Views142
    Read More
  18. SSH-Tunneling을 통한 MySQL 서버 연결

    Date2023.04.21 Category서버 ByOBG Views132
    Read More
  19. Sleep() 함수 대신 프로그램 딜레이 시키기 (Wait)

    Date2013.07.28 CategoryAPI/MFC ByMoA Views4718
    Read More
  20. Simplified Logger Class

    Date2013.07.28 CategoryC/C++ ByMoA Views414
    Read More
  21. Simple Add-On Wait Dialog in MFC

    Date2013.11.21 CategoryAPI/MFC ByMoA Views420
    Read More
Board Pagination Prev 1 ... 2 3 4 5 6 7 8 9 10 ... 15 Next
/ 15
위로