开发者

C++ Error: identifier "CWnd" is not defined

开发者 https://www.devze.com 2023-02-23 02:52 出处:网络
I\'m very much a C++ newbie, so please bear with me. This line of code which resides within a function:

I'm very much a C++ newbie, so please bear with me.

This line of code which resides within a function:

开发者_StackOverflow社区CWnd* pWnd = CWnd::FindWindow("Shell_TrayWnd", "");

CWnd is coming up as "undefined". I know I need to define it in the global scope, but how? What header do I need to include to use this class? Project is MFC.

Using VS 2010.


Here's how to solve this problem independently.

First, Google for "cwnd"

Second, click the first link.

Third, read the page

Requirements

Header: afxwin.h

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号