Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Vista Drivers > error RC2177 with the latest WDK(7600.16385.1)

Reply
Thread Tools Display Modes

error RC2177 with the latest WDK(7600.16385.1)

 
 
Karthik
Guest
Posts: n/a

 
      04-22-2010
Hi,
I get the error RC2177 with the latest WDK(7600.16385.1) for the
following code:
There is no problem in WDK 3790.1830

if(defined(LLONG_MAX) && (LLONG_MAX > CUSTOM_32__MAX) )

I have defined CUSTOM_32_MAX as below
#define CUSTOM_32_MAX INT_MAX

The value of INT_MAX is defined in limits.h in Visual Studio and WDK
as below
INT_MAX 2147483647

The value is correct.

Can somebody please tell me as to what could be the problem.
If I changed #define CUSTOM_32_MAX INT_MAX
to #define CUSTOM_32_MAX INT_MAX -1
The compilation error is resolved.

Please help.

 
Reply With Quote
 
 
 
 
Doron Holan [MSFT]
Guest
Posts: n/a

 
      04-22-2010
what is the compiler error test?

--

This posting is provided "AS IS" with no warranties, and confers no rights.


"Karthik" <> wrote in message
news:41D9BFFF-ED2D-434B-B00B-...
> Hi,
> I get the error RC2177 with the latest WDK(7600.16385.1) for the
> following code:
> There is no problem in WDK 3790.1830
>
> if(defined(LLONG_MAX) && (LLONG_MAX > CUSTOM_32__MAX) )
>
> I have defined CUSTOM_32_MAX as below
> #define CUSTOM_32_MAX INT_MAX
>
> The value of INT_MAX is defined in limits.h in Visual Studio and WDK
> as below
> INT_MAX 2147483647
>
> The value is correct.
>
> Can somebody please tell me as to what could be the problem.
> If I changed #define CUSTOM_32_MAX INT_MAX
> to #define CUSTOM_32_MAX INT_MAX -1
> The compilation error is resolved.
>
> Please help.
>

 
Reply With Quote
 
Doron Holan [MSFT]
Guest
Posts: n/a

 
      04-22-2010
err, text

d

--

This posting is provided "AS IS" with no warranties, and confers no rights.


"Karthik" <> wrote in message
news:41D9BFFF-ED2D-434B-B00B-...
> Hi,
> I get the error RC2177 with the latest WDK(7600.16385.1) for the
> following code:
> There is no problem in WDK 3790.1830
>
> if(defined(LLONG_MAX) && (LLONG_MAX > CUSTOM_32__MAX) )
>
> I have defined CUSTOM_32_MAX as below
> #define CUSTOM_32_MAX INT_MAX
>
> The value of INT_MAX is defined in limits.h in Visual Studio and WDK
> as below
> INT_MAX 2147483647
>
> The value is correct.
>
> Can somebody please tell me as to what could be the problem.
> If I changed #define CUSTOM_32_MAX INT_MAX
> to #define CUSTOM_32_MAX INT_MAX -1
> The compilation error is resolved.
>
> Please help.
>

 
Reply With Quote
 
Pavel A.
Guest
Posts: n/a

 
      04-23-2010
This looks like a resource compiler (rc) message, not c++ compiler.
the text (from VC2008 docum) is "constant too big":
A constant value was too large to be represented in the type to which it was
assigned.

-- pa

"Karthik" <> wrote in message
news:41D9BFFF-ED2D-434B-B00B-...
> Hi,
> I get the error RC2177 with the latest WDK(7600.16385.1) for the
> following code:
> There is no problem in WDK 3790.1830
>
> if(defined(LLONG_MAX) && (LLONG_MAX > CUSTOM_32__MAX) )
>
> I have defined CUSTOM_32_MAX as below
> #define CUSTOM_32_MAX INT_MAX
>
> The value of INT_MAX is defined in limits.h in Visual Studio and WDK
> as below
> INT_MAX 2147483647
>
> The value is correct.
>
> Can somebody please tell me as to what could be the problem.
> If I changed #define CUSTOM_32_MAX INT_MAX
> to #define CUSTOM_32_MAX INT_MAX -1
> The compilation error is resolved.
>
> Please help.
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
What is latest Windows Live Mail? Ritter197 Windows Live Mail 2 03-23-2010 05:53 AM
Re: Print problem with latest Windows Live Update? Bob Lucas Internet Explorer 1 10-27-2009 01:56 PM
Outlook 2007 quits querying known working free/busy server after latest Live update patch Simuser Windows Live Messenger 0 10-21-2009 09:04 PM
How Get Latest Version of Microsoft ActiveSync McClint ActiveSync 4 12-11-2008 04:25 PM
Vista Default Drivers or Latest Available Drivers ? Rick Hallman Windows Vista Installation 0 09-12-2006 12:24 PM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59