|
-
June 8th, 2005, 05:31 AM
#1
Including a class
Hi
I have these two simple files and I want to add them to a project:
this the h file
class OPStringa
{
public:
CString Duplicate(CString s);
}
//////////////////////////////////////////////////////
this is the cpp file
#include "stdafx.h"
#include "OPStringa.h"
CString OPStringa:: Duplicate(CString s)
{
CString a;
a=s+s;
return a;
}
When I build the project I obtain two errors:
error C2143: syntax error : missing ';' before 'tag::id'
fatal error C1004: unexpected end of file found
Please Help me
Thanks
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|