Search:

Type: Posts; User: teneniel

Search: Search took 0.01 seconds.

  1. Replies
    6
    Views
    1,890

    Thanks for your replies. I'm really...

    Thanks for your replies.

    I'm really desillusionated a bit. I thought templates didn't cause runtime overhead. Also i thought classes where at no cost.
    I knew only that virtual functions do cause...
  2. Thread: apstring prob

    by teneniel
    Replies
    2
    Views
    1,911

    apstring's constructor, destructor and the...

    apstring's constructor, destructor and the operator function

    class istream & __cdecl operator>>(class istream &,class apstring &) have no function bodys. That means, the compiler knows that the...
  3. Replies
    6
    Views
    1,890

    STL + MSVC++ = big executables ?

    I like to use STL. It's not perfect, but it makes life easier.
    Several people said that using cout instead of printf and using several container templates instead of pseudo-generic void* C-style...
  4. Replies
    5
    Views
    1,302

    You have that length in characters. If you want...

    You have that length in characters.
    If you want the length in bytes, multiply that length by the length of one caracter:


    size_in_bytes = number_of_characters * sizeof(ifstream::char_type);
  5. Replies
    8
    Views
    2,704

    like Magos allready mentioned, an extern...

    like Magos allready mentioned, an extern declaration like

    extern CCamera g_Camera;
    doesn't create the CCamera object, it just brings an elsewhere declared object in scope again. Those statements...
  6. Replies
    5
    Views
    1,302

    binary numbers .?.

    Sorry, i don't really understand what you are refering to with 'binary numbers'...
    tellg() seems to return the length of the file in char sizes (for char actually length in bytes, for wchar_t the...
  7. Replies
    2
    Views
    1,288

    Hi! i would do the following: #include...

    Hi!
    i would do the following:


    #include <ctime>
    using namespace std;
    char cur_date[9];
    char cur_time[9];
    _strdate(cur_date);
    _strtime(cur_time);
  8. Replies
    9
    Views
    2,299

    "boundaries" is an array. An array access like...

    "boundaries" is an array.
    An array access like boundaries[i] is eqal to *(boundary + i), so boundaries[0] doesn't need to be dereferenced another time.
    operator[] has already done it for you.
    ...
  9. Replies
    2
    Views
    1,069

    Try: ( additional std:: before setiosflags() ) ...

    Try: ( additional std:: before setiosflags() )


    if ( valid ){
    numVal = atof(input);
    std::cout << std::setiosflags(std::ios::fixed)<< std::setprecision(2)
    << "\nnumVal = " << numVal << "\n\n";...
  10. Replies
    4
    Views
    2,671

    Check the return value

    Are you sure that CreateThread() succeeded ?
    Check if the HANDLE you get as return value is not NULL.
    If it's NULL, call immediatelly after CreateThread() GetLastError(). Use Tools-> Error lookup...
  11. Replies
    4
    Views
    2,671

    __teneniel

    As you used CreateThread(/*...*/) you had to pass a entry function (your third parameter, i suppose).
    Just set a breakpoint within that thread entry function and VC will break anytime the function...
  12. Replies
    3
    Views
    966

    Thanks,but my real life friend was faster!

    Thank you for your replies. I have allready found out what i needed to know. If someone's interested, here's what I meant:


    unsigned long foo = 1234567;
    myfilestream myfile;
    myfile << foo << "...
  13. Replies
    3
    Views
    966

    unformatted output through operator

    i want to use streams from std lib to output int, long, __int64, etc...
    but i dont want to have them formatted, i want unformatted output. that's no problem useing write(), but if i use operator<<,...
Results 1 to 13 of 13