Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do you get rid of these errors?

Status
Not open for further replies.

real

Programmer
Jan 20, 2001
15
US
I'm working on a project, and I am constantly getting 2 errors. I dont know what to fix on it. Can someone please help?

'_sTotalPay' : undeclared identifier

left of '.Format' must have class/struct/union type
Error executing cl.exe.

what does this mean? the both of them...thankx much

charles

 
charles,

> '_sTotalPay' : undeclared identifier

identifier refers to '_sTotalPay', that is a name that identifies a specific instance or variable in your code.

undeclared means that you tried to use it before you 'declared' it. That is not legal in C/C++. All variables must be declared before being used, i.e:

_sTotalPay = "2000.00"; // illegal

CString _sTotalPay = "2000.00"; // this works

Hope this helps
-pete
 
<left of '.Format' must have class/struct/union type

You might used: something.Format as a identifier.Get rid of dot in it. Best Regards,

aphrodita@mail.krovatka.ru {uiuc rules}
 
Hey pete and aphrodita, ill try this and see how it goes, thanks alot for your help.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top