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

error C2274: 'function-style cast' : illegal as right side of '.' operator

P: 2
hello friends ,
i m getting a problem on when i compiling a my project in vc++6.0
error C2274: 'function-style cast' : illegal as right side of '.' operator.

please help me .

if any hint u send me on following email ID
xxxxxxxx@xxxxx.xxxx
Jun 21 '07 #1
Share this Question
Share on Google+
2 Replies


Expert 100+
P: 181
[quote=dheerajkoli]hello friends ,
i m getting a problem on when i compiling a my project in vc++6.0
error C2274: 'function-style cast' : illegal as right side of '.' operator.

please help me .

if any hint u send me on following email ID
[email="xxxxxxx@xxxxxx.xxxx"[/email][/QUOTE]

Please dont post your emaild id in a public forum. It would be better you can post code thats causing error. Mean while you can have look at this thread
[url="http://www.thescripts.com/forum/thread128184.html"]http://www.thescripts.com/forum/thread128184.html[/url]
and this link from msdn
http://msdn2.microsoft.com/en-us/lib...x0(VS.80).aspx
Jun 21 '07 #2

Expert 10K+
P: 11,448
hello friends ,
i m getting a problem on when i compiling a my project in vc++6.0
error C2274: 'function-style cast' : illegal as right side of '.' operator.

please help me .

if any hint u send me on following email ID
xxxxxxx@xxxxxxx.xxxxx
Given the text of that error diagnostic I think you typed something similar to:

Expand|Select|Wrap|Line Numbers
  1. T x;
  2. x.int(x.y)= 42;
  3.  
Note the function style cast at the right side of the dot operator. I suspect a
simple typo somewhere.

kind regards,

Jos
Jun 21 '07 #3

Post your reply

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