Search:

Type: Posts; User: Ducky

Search: Search took 0.01 seconds.

  1. Replies
    12
    Views
    2,979

    Well its not just one little API function, all...

    Well its not just one little API function, all the API functions take C style strings.
    And if I have to reserve space with C++ strings that kinda defeats the purpose of using it.
    Why complicate...
  2. Replies
    12
    Views
    2,979

    Ok, that clears it up. It's just better to forget...

    Ok, that clears it up. It's just better to forget about C++ with Win32 API.
  3. Replies
    12
    Views
    2,979

    Since when we have to set the size of a C++...

    Since when we have to set the size of a C++ string? I thought that, that was the point of C++ strings (no need to set a size).

    Haha, wasn't it the Win32 API that came first? :-)
  4. Replies
    12
    Views
    2,979

    So I should pass the string to a char* first,...

    So I should pass the string to a char* first, that defeats the purpose of using a string.
    The inventor of C++ should have thought about Win32 API functions too when he was writing the language.
  5. Replies
    12
    Views
    2,979

    ReadFile with a C++ string

    Win32 API function ReadFile()'s second argument takes an LPVOID.
    Is there a way to use a C++ string directly for the second argument?




    string strBuf;
    ReadFile(h, ...
Results 1 to 5 of 5