Search:

Type: Posts; User: President

Search: Search took 0.00 seconds.

  1. Replies
    4
    Views
    2,362

    Difference between "int a;" and "int(a);"?

    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...
  2. Works great! Thank you very much.

    Works great! Thank you very much.
  3. Replies
    11
    Views
    1,541

    When you know the string class, you'll never want...

    When you know the string class, you'll never want to use strcat or any other C string functions.
  4. Converting from DOS file name to Windows file name

    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...
  5. Replies
    4
    Views
    12,834

    Thanks, to retrieve the file name with extension,...

    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 =...
  6. Replies
    4
    Views
    12,834

    Extracting only file name from file path

    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...
  7. Replies
    2
    Views
    13,857

    Oh, thanks, I figured it out and it seems that...

    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.
  8. Replies
    2
    Views
    13,857

    WinINet FtpPutFile problem

    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:...
Results 1 to 8 of 8