Search:

Type: Posts; User: Hotman_x

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Update your VC6 with SP5, and it will like std::...

    Update your VC6 with SP5, and it will like std:: very much also. :)
  2. The code seems good. What compiler are you using?

    The code seems good. What compiler are you using?
  3. Replies
    4
    Views
    1,995

    !#$*^*(^*&(^^$% Nothing weird... :)

    !#$*^*(^*&(^^$%
    Nothing weird... :)
  4. Replies
    13
    Views
    6,046

    Move your declaration of your BITMAP_FILE_TAG to...

    Move your declaration of your BITMAP_FILE_TAG to bitmapfunct.h
  5. Replies
    10
    Views
    3,444

    That's easy

    string str = string("Hello, ") + "World!" + " Some other words.";
  6. Replies
    0
    Views
    4,436

    link error: with Boost date_time library

    I use boost date_time library in my program. And I fall in trouble.
    I can not build my program, there occurs some link errors.

    I'v ran bjam in boost_1_29_0/libs/date_time/build/ , and get a lib...
  7. Replies
    9
    Views
    4,137

    I think COMMON MULTIPLE is what you need. Not...

    I think COMMON MULTIPLE is what you need. Not COMMON FACTOR.

    9 is max common factor of 36 and 45;
    180 is min common multiple of 36 and 45.
  8. Replies
    13
    Views
    1,447

    Imov is right. That is.

    Imov is right. That is.
  9. Replies
    1
    Views
    857

    SQL(Structurized Query Language) will help you.

    SQL(Structurized Query Language) will help you.
  10. Replies
    5
    Views
    23,082

    Supplement: convert everything to string with...

    Supplement:

    convert everything to string with Boost Template Library(www.boost.org):


    int my_int = 100;
    char my_char = '$';
    char *my_str = "I want ";
    string str = lexical_cast<string>my_str...
  11. Replies
    5
    Views
    23,082

    convert everything to string... with MFC: ...

    convert everything to string...

    with MFC:


    int my_int = 100;
    char my_char = '$';
    char* my_str = "I want ";
    CString str;
    str.Format("Do %s%c%d?", my_str, my_char, my_int); // just like...
  12. Replies
    21
    Views
    3,328

    It's quite challenging... Thinking... The...

    It's quite challenging...

    Thinking...

    The only imageable method I can accept is : pack two EXE file as custom resource, and , unpack them to disk(or ramdisk) and run them when you need them.
    ...
  13. Thread: clock 2

    by Hotman_x
    Replies
    11
    Views
    1,071

    Yes, it should show the same time. Because your...

    Yes, it should show the same time. Because your computer is so cool to do 500 times loop as a piece of cake.
  14. Thread: clock 2

    by Hotman_x
    Replies
    11
    Views
    1,071

    >>for(long x=0; x

    >>for(long x=0; x <=500; x++)

    for(long x=0; x<500; x++)

    >>if(x > 500)

    if(x >= 500)
  15. Replies
    4
    Views
    1,977

    Use array like this: #include ...

    Use array like this:


    #include <vector>
    using namespace std;
    typedef vector<SFont> vec_font;
    vec_font rFont(nSize);

    ...
    // use rFont just like an array
  16. Replies
    4
    Views
    1,977

    There is pointers in your struct, realloc...

    There is pointers in your struct, realloc sometimes copy your struct bitwisely, this can make your program crash.
    Do not use realloc/malloc/free in C++, you should use new/delete.
    In this case, you...
  17. Replies
    3
    Views
    920

    Change this line: cptr = strchr(bytebuffy +...

    Change this line:


    cptr = strchr(bytebuffy + a, searchnum);

    to


    cptr = strchr(bytebuffy + a + 1, searchnum);
  18. Thread: byte problem

    by Hotman_x
    Replies
    5
    Views
    968

    It is an array of char, not a string. It need not...

    It is an array of char, not a string. It need not NULL char to make end. And, maybe one of it's bytes is NULL.
  19. Thread: PhotoShop

    by Hotman_x
    Replies
    3
    Views
    1,277

    Thank you, Barjor. Let me see...

    Thank you, Barjor. Let me see...
  20. Replies
    11
    Views
    1,574

    probably you did not declare your Report()...

    probably you did not declare your Report() funtion as virtual?
    Perhaps ...
    Let's know your header file is the key.(Is there any grammar error with this sentence? )
  21. Thread: PhotoShop

    by Hotman_x
    Replies
    3
    Views
    1,277

    I wanna know too.

    I wanna know too.
  22. Replies
    4
    Views
    1,180

    Keep working hard, guys. A Chinese idiom says:...

    Keep working hard, guys.
    A Chinese idiom says: Sharping you ax will not delay your cutting woods.
  23. Replies
    11
    Views
    2,012

    Add a line as your FIRST line: #include...

    Add a line as your FIRST line:

    #include "stdafx.h"

    NOTE: this line must be first valid line for precompile header files to work.
  24. hmm... then, RTTI can help you. But it is slow...

    hmm...

    then, RTTI can help you. But it is slow and complex.
    Example:



    if(typeid(B) == typeid(*p))
    delete dynamic_cast<B*>p;
    else
  25. declare ~A and ~B as virtual function. ...

    declare ~A and ~B as virtual function.

    Remember : if any derive is needed, declare the destructor as virtual function.
Results 1 to 25 of 49
Page 1 of 2 1 2