Hi all! I write console FTP client and use WinInet.h. One of the InternetConnect function's parameter is LPCSTR lpszServerName. But i transfer string argument.
For examle: HINTERNET ConnectParam=InternetOpen(hInternet,"ftp.vladsserver.ru",port,"login","pas",INTERNET_SERVICE_FTP,INTERNET_FLAG_PASSIVE,0);
But i have an error. How I can convert std:string to LPCSTR? I hope you can help me.
PS: Sorry for my English - i'm from Kazakhstan and English is not my native language:)