strcpy problem

I have this code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
class	CFTP
{
private:
	CURL
		* Handle;

	char
		ServerName	[ 100 ],
		UserName	[ 70 ],
		Password	[ 70 ];
public:
	void	Connect	( const char server, const char user, const char password );
};

void	CFTP::Connect ( const char server, const char user, const char password )
{
	strcpy_s	( ServerName, server );
	strcpy_s	( UserName, user );
	strcpy_s	( Password, password );

}


But I get these errors:
1
2
3
4
5
6
7
8
9
1>c:\users\arnoldas\documents\visual studio 2008\projects\ftp\ftp\ftp.h(35) : error C2665: 'strcpy_s' : none of the 2 overloads could convert all the argument types
1>        d:\yrasyta\programos\visual studio\vc\include\string.h(73): could be 'errno_t strcpy_s<100>(char (&)[100],const char *)'
1>        while trying to match the argument list '(char [100], const char)'
1>c:\users\arnoldas\documents\visual studio 2008\projects\ftp\ftp\ftp.h(36) : error C2665: 'strcpy_s' : none of the 2 overloads could convert all the argument types
1>        d:\yrasyta\programos\visual studio\vc\include\string.h(73): could be 'errno_t strcpy_s<70>(char (&)[70],const char *)'
1>        while trying to match the argument list '(char [70], const char)'
1>c:\users\arnoldas\documents\visual studio 2008\projects\ftp\ftp\ftp.h(37) : error C2665: 'strcpy_s' : none of the 2 overloads could convert all the argument types
1>        d:\yrasyta\programos\visual studio\vc\include\string.h(73): could be 'errno_t strcpy_s<70>(char (&)[70],const char *)'
1>        while trying to match the argument list '(char [70], const char)'


Even if I use like that:
strcpy_s ( &ServerName, &server );

It still not working. What I am doing wrong?
Missing some *s?

const char -> const char*
thanks.
Topic archived. No new replies allowed.