Hi,
I've just started learning Visual c++ 6, and i'm trying to compile a prog to send smtp messages. I've downloaded the code for this, and a few other examples, but they all give various errors. The only one they have in common is the 'unexpected end of file found'. I'm sure its a setting but i cant find anything in my documentation thats relevent. The header that im trying at the moment is :
#pragma once
__gc class CSendEmail
{
public:
CSendEmail(String * Server);
bool SendEmail( String * From,
String * To,
String * Subject,
String * Body);
private:
String * m_sServer;
unsigned char ConvertToChar ( String * str) __gc[];
};
and i'm getting
error C2143: syntax error : missing ';' before '<class-head>'
error C2501: '__gc' : missing storage-class or type specifiers
fatal error C1004: unexpected end of file found
fatal error C1021: invalid preprocessor command 'using'
I have checked paths etc and googled for the errors to no avail. Any help would be greatly appreciated.
James.
I've just started learning Visual c++ 6, and i'm trying to compile a prog to send smtp messages. I've downloaded the code for this, and a few other examples, but they all give various errors. The only one they have in common is the 'unexpected end of file found'. I'm sure its a setting but i cant find anything in my documentation thats relevent. The header that im trying at the moment is :
#pragma once
__gc class CSendEmail
{
public:
CSendEmail(String * Server);
bool SendEmail( String * From,
String * To,
String * Subject,
String * Body);
private:
String * m_sServer;
unsigned char ConvertToChar ( String * str) __gc[];
};
and i'm getting
error C2143: syntax error : missing ';' before '<class-head>'
error C2501: '__gc' : missing storage-class or type specifiers
fatal error C1004: unexpected end of file found
fatal error C1021: invalid preprocessor command 'using'
I have checked paths etc and googled for the errors to no avail. Any help would be greatly appreciated.
James.