Hello!
What's the difference between declaring a variable in these ways:
1) int a;
2) int(a);
Both compile fine on GCC 3.4.5. If they are semantically identical, perhaps there any other...
Type: Posts; User: President
Hello!
What's the difference between declaring a variable in these ways:
1) int a;
2) int(a);
Both compile fine on GCC 3.4.5. If they are semantically identical, perhaps there any other...
Works great! Thank you very much.
When you know the string class, you'll never want to use strcat or any other C string functions.
Hey,
I need to convert a DOS style file path into Windows style. For example, I have this DOS file name:
C:\PROGRA~1\FILERE~1\FILERE~1.EXE
but the real one is:
C:\Program Files\File...
Thanks, to retrieve the file name with extension, it goes as follows:
string f = "C:\\Windows\\Desktop\\picture.jpg";
int i = f.find_last_of('\\');
if (i != string::npos)
f =...
Hey, do you know if there is any Win32 API for extracting various parts from a string containing the file name with the whole path, or do I have to figure out some algorithm myself?
Or, if you have...
Oh, thanks, I figured it out and it seems that the problem is in the server which doesn't support passive transferring... I replaced the INTERNET_FLAG_PASSIVE with 0 and now it works great! Thank you.
Hi, I am trying to upload a small file to server using WinINet and FtpPutFile function. The problem is that the FtpPutFile function doesn't work, something has to be wrong somewhere. Here is my code:...