Solved

'VK_C' : undeclared identifier

Posted on 2004-10-15
1
1,322 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
1 Comment
 
LVL 30

Accepted Solution

by:
Zoppo earned 300 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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

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…
What is C++ STL?: STL stands for Standard Template Library and is a part of standard C++ libraries. It contains many useful data structures (containers) and algorithms, which can spare you a lot of the time. Today we will look at the STL Vector. …
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 clear a vector as well as how to detect empty vectors in C++.

747 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now