473,765 Members | 2,057 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

error C2061

Hi All,

I am getting the following errors when i am including header file
winuser.h
I dont know whats happening. How will an error occur in winuser.h??
Please help.
\microsoft visual studio\vc98\inc lude\winuser.h( 39) : error C2061:
syntax error : identifier 'HDWP'
\microsoft visual studio\vc98\inc lude\winuser.h( 39) : error C2059:
syntax error : ';'
\microsoft visual studio\vc98\inc lude\winuser.h( 40) : error C2061:
syntax error : identifier 'MENUTEMPLATEA'
\microsoft visual studio\vc98\inc lude\winuser.h( 40) : error C2059:
syntax error : ';'
\microsoft visual studio\vc98\inc lude\winuser.h( 41) : error C2061:
syntax error : identifier 'MENUTEMPLATEW'
\microsoft visual studio\vc98\inc lude\winuser.h( 41) : error C2059:
syntax error : ';'
\microsoft visual studio\vc98\inc lude\winuser.h( 45) : error C2061:
syntax error : identifier 'MENUTEMPLATE'
\microsoft visual studio\vc98\inc lude\winuser.h( 45) : error C2059:
syntax error : ';'
\microsoft visual studio\vc98\inc lude\winuser.h( 47) : error C2061:
syntax error : identifier 'LPMENUTEMPLATE A'
\microsoft visual studio\vc98\inc lude\winuser.h( 47) : error C2059:
syntax error : ';'
\microsoft visual studio\vc98\inc lude\winuser.h( 48) : error C2061:
syntax error : identifier 'LPMENUTEMPLATE W'
\microsoft visual studio\vc98\inc lude\winuser.h( 48) : error C2059:
syntax error : ';'
\microsoft visual studio\vc98\inc lude\winuser.h( 52) : error C2061:
syntax error : identifier 'LPMENUTEMPLATE '
\microsoft visual studio\vc98\inc lude\winuser.h( 52) : error C2059:
syntax error : ';'
\microsoft visual studio\vc98\inc lude\winuser.h( 55) : error C2143:
syntax error : missing ')' before '*'
\microsoft visual studio\vc98\inc lude\winuser.h( 55) : error C2143:
syntax error : missing '{' before '*'
\microsoft visual studio\vc98\inc lude\winuser.h( 55) : error C2059:
syntax error : ')'
\microsoft visual studio\vc98\inc lude\winuser.h( 80) : error C2061:
syntax error : identifier 'DLGPROC'
\microsoft visual studio\vc98\inc lude\winuser.h( 80) : error C2059:
syntax error : ';'
\microsoft visual studio\vc98\inc lude\winuser.h( 81) : error C2061:
syntax error : identifier 'TIMERPROC'
\microsoft visual studio\vc98\inc lude\winuser.h( 81) : error C2059:
syntax error : ';'
\microsoft visual studio\vc98\inc lude\winuser.h( 82) : error C2061:
syntax error : identifier 'GRAYSTRINGPROC '
\microsoft visual studio\vc98\inc lude\winuser.h( 82) : error C2059:
syntax error : ';'
\microsoft visual studio\vc98\inc lude\winuser.h( 83) : error C2061:
syntax error : identifier 'WNDENUMPROC'
\microsoft visual studio\vc98\inc lude\winuser.h( 83) : error C2059:
syntax error : ';'
\microsoft visual studio\vc98\inc lude\winuser.h( 84) : error C2061:
syntax error : identifier 'HOOKPROC'
\microsoft visual studio\vc98\inc lude\winuser.h( 84) : error C2059:
syntax error : ';'
\microsoft visual studio\vc98\inc lude\winuser.h( 85) : error C2061:
syntax error : identifier 'SENDASYNCPROC'
\microsoft visual studio\vc98\inc lude\winuser.h( 85) : error C2059:
syntax error : ';'
\microsoft visual studio\vc98\inc lude\winuser.h( 87) : error C2061:
syntax error : identifier 'EDITWORDBREAKP ROCA'
\microsoft visual studio\vc98\inc lude\winuser.h( 87) : error C2059:
syntax error : ';'
\microsoft visual studio\vc98\inc lude\winuser.h( 88) : error C2061:
syntax error : identifier 'EDITWORDBREAKP ROCW'
\microsoft visual studio\vc98\inc lude\winuser.h( 88) : error C2059:
syntax error : ';'
\microsoft visual studio\vc98\inc lude\winuser.h( 90) : error C2061:
syntax error : identifier 'PROPENUMPROCA'
\microsoft visual studio\vc98\inc lude\winuser.h( 90) : error C2059:
syntax error : ';'
\microsoft visual studio\vc98\inc lude\winuser.h( 91) : error C2061:
syntax error : identifier 'PROPENUMPROCW'
\microsoft visual studio\vc98\inc lude\winuser.h( 91) : error C2059:
syntax error : ';'
Thanks,
Maddy
Nov 17 '08
15 5695
On Nov 17, 4:43*pm, Leo Havmøller <rtx...@nospam. nospamwrote:
<madhu...@gmail .comwrote in message

news:16******** *************** ***********@r37 g2000prr.google groups.com...
Hi All,
I am getting the following errors when i am including header file
winuser.h
I dont know whats happening. How will an error occur in winuser.h??
Please help.

This off-topic etc. etc. etc.
You should include windows.h instead of winuser.h

Leo Havmøller.
HI Leo,

Thanks. I used windows.h and it is working fine now.
Nov 18 '08 #11
On Nov 17, 10:58*pm, gordonb.l2...@b urditt.org (Gordon Burditt) wrote:
I am getting the following errors when i am including header file
winuser.h
I dont know whats happening. How will an error occur in winuser.h??

If you get a cascade of syntax errors from a header file, especially
one distributed with a system or software package that should be
well-debugged, it is often because you have failed to include a
prerequesite header file (*first*) that defines typedefs needed by
that header file. *The errors will usually be at the point where
the typedef is used.
Please help.
\microsoft visual studio\vc98\inc lude\winuser.h( 39) : error C2061:
syntax error : identifier 'HDWP'
\microsoft visual studio\vc98\inc lude\winuser.h( 39) : error C2059:
syntax error : ';'
\microsoft visual studio\vc98\inc lude\winuser.h( 40) : error C2061:
syntax error : identifier 'MENUTEMPLATEA'

...
Thanks friends. "windows.h " is working fine.
Thanks for the helping and sharing :)

Thanks
Maddy
Nov 18 '08 #12
Martin Ambuhl wrote:
CBFalconer wrote:
>ma******@gmail. com wrote:
>>I am getting the following errors when i am including header
file winuser.h. I dont know whats happening. How will an error
occur in winuser.h?? Please help.

\microsoft visual studio\vc98\inc lude\winuser.h( 39) : error C2061:
syntax error : identifier 'HDWP'

That looks suspiciously like a windows header. It certainly
isn't mentioned in the C standard, which makes it off-topic on
c.l.c. Try a group that deals with Microsoft or Windows.

Cascading errors on the inclusion of a commonly used header are
commonly seen, and have nothing to do with Microsoft or Windows.
He might have reported similar behavior when including a standard
header. You are too quick to jump on the off-topic wagon.
Are you claiming that winuser.h is mentioned in the C standard, or
that the experts on Windows C programming hang out here? If madhu
asks in the appropriate newsgroup he will get answers that have
been examined and criticized by multiple experts on the subject.

--
[mail]: Chuck F (cbfalconer at maineline dot net)
[page]: <http://cbfalconer.home .att.net>
Try the download section.
Nov 19 '08 #13
Martin Ambuhl wrote:
CBFalconer wrote:
>ma******@gmail. com wrote:
>>I am getting the following errors when i am including header file
winuser.h. I dont know whats happening. How will an error occur
in winuser.h?? Please help.

\microsoft visual studio\vc98\inc lude\winuser.h( 39) : error C2061:
syntax error : identifier 'HDWP'

That looks suspiciously like a windows header. It certainly isn't
mentioned in the C standard, which makes it off-topic on c.l.c. Try a
group that deals with Microsoft or Windows.

Cascading errors on the inclusion of a commonly used header are commonly
seen, and have nothing to do with Microsoft or Windows. He might have
reported similar behavior when including a standard header. You are too
quick to jump on the off-topic wagon.
Well, that doesn't seem to have been the case here. The OP reports that
replacing winuser.h with windows.h has solved the problem. I don't know
why that makes a difference; but it implies that it has nothing to do
with anything in the user code (like a missing ';') preceding the
#include statement. It seems to me that no one could answer his question
without being aware of the existence of windows.h and the nature of the
differences between windows.h and winuser.h. That in turn implies that
he would have received a useful response far more quickly on a windows
newsgroup than he did on this one.
Nov 19 '08 #14
CBFalconer wrote:
Martin Ambuhl wrote:
>CBFalconer wrote:
>>ma******@gmail. com wrote:

I am getting the following errors when i am including header
file winuser.h. I dont know whats happening. How will an error
occur in winuser.h?? Please help.

\microsoft visual studio\vc98\inc lude\winuser.h( 39) : error C2061:
syntax error : identifier 'HDWP'
That looks suspiciously like a windows header. It certainly
isn't mentioned in the C standard, which makes it off-topic on
c.l.c. Try a group that deals with Microsoft or Windows.
Cascading errors on the inclusion of a commonly used header are
commonly seen, and have nothing to do with Microsoft or Windows.
He might have reported similar behavior when including a standard
header. You are too quick to jump on the off-topic wagon.

Are you claiming that winuser.h is mentioned in the C standard, or
that the experts on Windows C programming hang out here? If madhu
asks in the appropriate newsgroup he will get answers that have
been examined and criticized by multiple experts on the subject.
Don't be daft. I never in any post suggested that winuser.h was
mentioned in the C standard, or that experts in Windows C programming
hang out here. The kind of pronlem he reported is independent of any
particular header, any particular implementation, or where any kind of
expert other than in C programming hangs out. It is a common problem
for inexpert C programmers, no matter what headers or what
implementation they might use. Your seeing "winuser.h" and hitting the
off-topic button is silly and is based on not looking at the actually
reported problem.

Nov 19 '08 #15
In article <gg**********@n ews.motzarella. org>,
Martin Ambuhl <ma*****@earthl ink.netwrote to everybody's favorite
whacko (CBF):
....
>Don't be daft. I never in any post suggested that winuser.h was
mentioned in the C standard, or that experts in Windows C programming
hang out here. The kind of pronlem he reported is independent of any
particular header, any particular implementation, or where any kind of
expert other than in C programming hangs out. It is a common problem
for inexpert C programmers, no matter what headers or what
implementati on they might use. Your seeing "winuser.h" and hitting the
off-topic button is silly and is based on not looking at the actually
reported problem.
What did you expect? The guy's 105 years old. Give him a break.

Nov 19 '08 #16

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

13
6615
by: deko | last post by:
I use this convention frequently: Exit_Here: Exit Sub HandleErr: Select Case Err.Number Case 3163 Resume Next Case 3376 Resume Next
1
6479
by: Avery Fong | last post by:
The following program will result in a compile error when building under Debug but will compile under Release. Why does is work under Release mode but not under Debug This program is developed under Visual Studio .NET 2003 in a Win32 Console Project // VectorInsert.cpp : Defines the entry point for the console application / #include "stdafx.h #include "VectorInsert.h #ifdef _DEBU
0
1947
by: MWK | last post by:
Hi All, I don't understand why I get "error c2061: syntax error : identifier" in VS2003. I thought it's fixed in .Net 2003: __hook(&TCP_Client::LineReceived, client, HandlerLineReceived); System::Void HandlerLineReceived(TCP_Client* sender, String* Data)
7
5022
by: p | last post by:
WE had a Crystal 8 WebApp using vs 2002 which we upgraded to VS2003. I also have Crystal 9 pro on my development machine. The web app runs fine on my dev machine but am having problems deploying. I created the websetup and built the MSI, have the bundled version. Copied to webserver and ran Websetup.msi. Said I had to remove old version, which I did, then reran WebSetup.msi and keeps giving me this error. "The installer was interrupted...
6
4221
by: Pixel.to.life | last post by:
So I have this perfectly fine and running app, that uses managed C++ forms. Problem#1: I pass a Bitmap reference to a class, hoping to modify it in one of the class's methods, so it reflects outside too. Something like this:
2
19488
hyperpau
by: hyperpau | last post by:
Before anything else, I am not a very technical expert when it comes to VBA coding. I learned most of what I know by the excellent Access/VBA forum from bytes.com (formerly thescripts.com). Ergo, I will be writing this article intended for those who are in the same level, or maybe lower, of my technical knowledge. I would be using layman's words, or maybe, my own words as how I understand them, hoping, you will understand it the same way that...
8
2451
by: =?GB2312?B?yum09MXt?= | last post by:
today I forgot to include some header,then I found the error message by the compiler is quite strange. so I want to know exactly the inner details of the compiler impletation,if possible. and I want to know what does the standard say about this situation. here is the code just to demonstrate the error.
10
3069
by: charmeda103 | last post by:
My program keeps getting me and error and i dont why here is the error message error C2061: syntax error: identifier 'infile' error C2660: 'ReadDate' : function does not take 6 arguments error C2086: 'char &junkChar' : redefinition see declaration of 'junkChar'
6
38062
by: muby | last post by:
Hi everybody :) I'm modifying a C++ code in VC++ 2005 my code snippet void BandwidthAllocationScheduler::insert( Message* msg, BOOL* QueueIsFull,
0
10164
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10007
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9959
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9835
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8833
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7379
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6649
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
2
3532
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2806
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.