Click here to Skip to main content
15,886,919 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:




C#
if (!ValidateBaseMaterial())
        {
            sError.LoadString(IDS_ERR_BM_INACTIVE);
            AfxMessageBox (sError);
            return;
        }
Posted
Comments
which line is giving error?

You didn't properly define or use a symbol that you appear to be using as a function.

Possible causes are:
- problems with the correct definition and use of function pointers (see the link in solution 1)
- failure to include the appropriate header for the function definition, if there is also a local symbol by the same name

There is also a slim chance that an unlucky #define-macro messes with your code, but the symbols in your code are looking fairly safe...


My guess is that instead of putting the declaration of the function ValidateBaseMaterial into a header file and include that, you copied it into your cpp file and accidenttaly ommitted the brackets like this:
int ValidateBaseMaterial; // <-- forgot the brackets!
 // ...
     if (!ValidateBaseMaterial())
          ^ error 2064!

Another possibility is that you defined the function like that right in your header file.
 
Share this answer
 
Comments
Albert Holguin 1-Jul-11 9:49am    
Great catch and suggestions, my 5
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900