By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,619 Members | 1,861 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,619 IT Pros & Developers. It's quick & easy.

Build error no C2297

P: 13
Dear Friend,
I got the following build error

error C2297: '*' : illegal, right operand has type 'unsigned long *'

register unsigned char *outof;
register unsigned long *into;

*into |= (*outof++ & 0xffL) << 16;

Please help me ....
Rgds,
May 24 '10 #1
Share this Question
Share on Google+
3 Replies


weaknessforcats
Expert Mod 5K+
P: 9,197
I have no idea why you are getting this error. The code compiles OK as either C or C++ using Visual Studio.NET 2008.
May 24 '10 #2

Expert 100+
P: 2,400
Try taking out the register type qualifiers.
Try changing 0xFFL to 0xFFuL.
May 26 '10 #3

Banfa
Expert Mod 5K+
P: 8,916
Rather than just posting the lines of code you think are the problem you might want to try posting the entire function or at least more of it if it is very long.

Is either into or outof a #defined macro?
May 27 '10 #4

Post your reply

Sign in to post your reply or Sign up for a free account.