Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

'VK_C' : undeclared identifier

Posted on 2004-10-15
1
Medium Priority
?
1,361 Views
Last Modified: 2008-01-09
Hi experts ,

  Does anyone know why I got a "undeclared identifier" error at line 00 ?? thanks a lot !!!

case WM_KEYDOWN:            
      switch (wParam)
      {
                        
        case VK_C:    // line 00
           // blah ...                   
                    break ;

        case VK_ESCAPE:  
          PostQuitMessage( 0 );
          break;

        case VK_UP:
                     // blah ...

                 case VK_DOWN:
                    // blah ...
             }      
  blah ....      
0
Comment
Question by:meow00
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 31

Accepted Solution

by:
Zoppo earned 1200 total points
ID: 12317703
Hi  meow00,


that's because VK_C isn't defined ... there's a hint about this in 'winuser.h':

> ...
> /* VK_0 thru VK_9 are the same as ASCII '0' thru '9' (0x30 - 0x39) */
> /* VK_A thru VK_Z are the same as ASCII 'A' thru 'Z' (0x41 - 0x5A) */
> ...

instead of VK_C simply use 'C' ...

Hope that helps,

ZOPPO
0

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Often, when implementing a feature, you won't know how certain events should be handled at the point where they occur and you'd rather defer to the user of your function or class. For example, a XML parser will extract a tag from the source code, wh…
Introduction This article is the first in a series of articles about the C/C++ Visual Studio Express debugger.  It provides a quick start guide in using the debugger. Part 2 focuses on additional topics in breakpoints.  Lastly, Part 3 focuses on th…
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.

660 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question