473,387 Members | 1,650 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Error 5 'decimal.operator cannot explicitly call operator or accessor

Error 5 'decimal.operator --(decimal)': cannot explicitly call operator or accessor C:\Form1.cs 8607 52 RPC


Getting this error with this code

float_0 = Convert.ToSingle(decimal.op_Increment(this.Heading .Value));
Jan 7 '15 #1
0 1310

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

Similar topics

0
by: maths_fan | last post by:
How to oveload "operator new", if it's possible (that one that only allocates memory)? And when I overload "new operator" shoud I always use the parameter size_t (the first one) and when I call my...
3
by: Timothy Madden | last post by:
I know I can call destructors if I want (probably with their fully qualified name). However I don't see the point here. When and where would I want to call destructors ? Destructors are not...
3
by: Alex Vinokur | last post by:
Member operators operator>>() and operator<<() in a program below work fine, but look strange. Is it possible to define member operators operator>>() and operator<<() that work fine and look...
36
by: Vivek Mandava | last post by:
Hello All, Which one is an expensive operation? '>' or '==" ? I know this won't matter much. However, if I'm executing this operation million times, I would prefer the better choice. My...
3
by: Gav | last post by:
What is this error message all about? I cannot find anything about it on the net... it is giving me this error from code i have found on the net that should work but for me i get a load of these...
3
by: karthik | last post by:
The * operator behaves in 2 different ways. It is used as the value at address operator as well as the multiplication operator. Does this mean * is overloaded in c?
1
by: | last post by:
Hello - float r; r = (int)(Number * Math.Pow(10, Decimals) + 0.5) / Math.Pow(10, Decimals); Error: Operator '*' cannot be applied to operands of type 'decimal' and 'double' //data sample int...
1
by: jr.freester | last post by:
I've written a Matrix container class and overloaded the function call operator to return values at a specified index. Below is the member function double operator()(int a , int b) { if((a <...
1
by: Martynas | last post by:
Hello, i was codding a program with c# and i get an error called "cannot explicitly call operator or accessor" here is the code:...
1
by: Lucian Cyd | last post by:
I dunno what to do. I get the following error: operator cannot be applied to java.lang.string int public void actionPerformed(ActionEvent e) { ...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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,...

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.