I encountered this problem today: I found that an object was constructed twice. The first time an object is defined as a global variable using the no-argument default constructor FFT FftTrans; In the second chapter, when the function calls this object, the constructor with parameters is adopted. At this time, the compiler reports error C2064: term does not evaluate to a function.
Solution: In the function to call this object, at this time you want to have the constructor initialization parameters, but will report an error case, in the class to which the object belongs to define a method, function and parameters of the constructor initialization, and then use the object to call this method, achieve the same purpose!
Note: In solving this problem, it is found that the same error occurs when a variable is passed into the function, but the “()” symbol is added to the variable, which causes the same error.
Solution: In the function to call this object, at this time you want to have the constructor initialization parameters, but will report an error case, in the class to which the object belongs to define a method, function and parameters of the constructor initialization, and then use the object to call this method, achieve the same purpose!
Note: In solving this problem, it is found that the same error occurs when a variable is passed into the function, but the “()” symbol is added to the variable, which causes the same error.
Read More:
- Solve the problem of VC 6.0 fatal error C1033: cannot open program database’.\debug\vc60.pdb’
- VC Critical error detected c0000374 crash problem and solution
- error C2471: cannot update program database vc90.pdb
- How to use C + + function pointer array
- C / C + + rounding function: round function
- The function and usage of argc and argv in C language
- Method threw ‘java.lang.NullPointerException‘ exception. Cannot evaluate com.sun.proxy.xxx
- IntelliSense in VC + + 2010: unable to open source file “StdAfx. H”
- error C4996: ‘scanf‘: This function or variable may be unsafe.Visual Studio Series compilers report errors using scanf function
- C / C + + library function (tower / tower) realizes the conversion of letter case
- Solutions to error c2143: syntax error: missing ‘;’ before ‘type’ in C + + program compilation
- C / C + + rounding function ceil(), floor ()
- VC + + compiler can not find the header file and rebuild failure
- The C language qsort() function reports an error for overflow of – 2147483648 and 2147483648
- [C + +] C + + overload operator = must be a nonstatic member function?
- C + + error prototype for… Does not match any in class
- Prevent flashback after running code in VC 6.0
- Error C2664 in C + + compilation: cannot convert parameter 2 from “const char [5]” to “lpctstr” solution.
- About iView reporting error in Vue project: error in mounted hook: “typeerror: this$ parent.updateNav is not a function”
- Solution to the problem of no C / C + + option in the new project of eclipse