i feel like a real newbee for this one.
I'm using the following code in my program, but it will not link.
error c2679 '<<':no operator found which takes a right-hand operand of type 'std::string'(or there is no acceptable conversion)
int main(int argc, char *argv)
cout<<"File Name: "<<stFileName<<endl;
cout<<"Program Name: "<<stProgramName<<endl;
?? why is this erroring ??
As it is, you haven't included the right headers (it's <string>, not the C <string.h> header; where's <iostream>?). You have probably also left out other relevant stuff, because as it is you shouldn't get even this far.
correcting the string.h to string fixed the issues.
the other code was left out intentionally.
sorry i do not have the capability of cut and paste, so limiting the amount i can type. working on laptop and work pc at same time.