Search:

Type: Posts; User: what3v3r

Page 1 of 3 1 2 3

Search: Search took 0.01 seconds.

  1. Replies
    3
    Views
    1,831

    awww... my bad... that solves the problem...

    awww... my bad...

    that solves the problem completely...

    thank you!!!
  2. Replies
    3
    Views
    1,831

    LoadBitmap image not shown problem

    Hi guys,

    can you shed some light on my problem?

    I'm try to study (again) win32 programming and i want to do is to show a bitmap image. i'm using LoadBitmap and it compiles but when i run no...
  3. Replies
    4
    Views
    1,170

    ahh I see what is wrong... thanks!

    ahh I see what is wrong... thanks!
  4. Replies
    4
    Views
    1,170

    delete problems visual 2008

    Hi guys,

    I'm hoping you can help me with my problem. I'm using Visual C++ 2008 and i'm having _BLOCK_TYPE_IS_VALID Debug Assertion Failed! problem when i try to delete this array:



    if i...
  5. @Ken Fitlike Thank you for suggesting that i...

    @Ken Fitlike

    Thank you for suggesting that i should convert the number into string.

    Anyway i have solve the problem by using SendDlgItemMessage(...) instead. It seems it needs to know the...
  6. no it doesn't. will it should have a return...

    no it doesn't.

    will it should have a return value of the selected index? it only returns nothing in my case...
  7. Getting index of chosen item in the combo box

    How do you get the index of the chosen item in the combo box...



    if( HIWORD(wParam)==CBN_SELCHANGE)
    {
    int index = SendMessage( hwnd, CB_GETCURSEL, (WPARAM) wParam, (LPARAM) lParam ); ...
  8. virtual function only works on dynamic declaration? (use of new)

    I tried to find an answer on google but no luck..

    considering this code...


    #include <iostream>

    using namespace std;

    class A
  9. Replies
    2
    Views
    770

    that can be a possibility, thanks!!

    that can be a possibility, thanks!!
  10. Replies
    2
    Views
    770

    member templates question

    I'm trying to learn member templates on this site..

    http://www.informit.com/guides/content.asp?g=cplusplus&seqNum=263

    http://www.informit.com/guides/content.asp?g=cplusplus&seqNum=263


    this...
  11. Replies
    21
    Views
    4,483

    just an idea... :D can i use an unallocated...

    just an idea... :D

    can i use an unallocated memory, or a random memory address, cast what3v3r values it has as an integer and use it as a random number. provided that it will not change it in...
  12. ahhhhh! Thank you i got it now! :D

    ahhhhh! Thank you i got it now! :D
  13. thanks! but i've tried your suggestions(...

    thanks!

    but i've tried your suggestions( moving things around, adding classes, adding static variables after or before...) it still have the same output.

    I'm still confused...

    if i am...
  14. non-static member functions, called without an object problem...

    #include <iostream>

    using namespace std;

    static int i;
    class x {
    int i;
    public:
    x() { cout << "In HERE" << endl; }
    int geti() { return i; }
  15. @John_ even i am not sure of the value of 4...

    @John_

    even i am not sure of the value of 4 but from what i know it returns the size of the pointer. not the one it points to. i know that pointers also occupies its own memory address so...
  16. @joni, ok there is no information, but how...

    @joni,

    ok there is no information, but how can i find the size of the array which the pointer points to?

    or really, it can't be done... :D

    i just found out that this is not equal


    ...
  17. @joni, ok there is no information, but how...

    @joni,

    ok there is no information, but how can i find the size of the array which the pointer points to?

    or really, it can't be done... :D

    i just found out that this is not equal


    ...
  18. @joni unfortunately i will only work when the...

    @joni
    unfortunately i will only work when the character pointer has values. i need is to know the size of the character array so i could determine the maximum number of character that i could place...
  19. char x[90]; std::cout

    char x[90];
    std::cout << sizeof(x); //will result to 90 the size of x


    @7stud
    lol. what if a function has an argument of pointer to a char and i need to determine the size of this char. i...
  20. sizeof: determining the size of char array problems...

    how would i know the size of a character array created on heap...



    char * x = new char[90];
    std::cout << sizeof(x); //returns 4 assume the size of pointer
    ...
  21. Replies
    7
    Views
    1,094

    Ok thank you. i'll try adding a copy constructor...

    Ok thank you. i'll try adding a copy constructor that takes A object as an argument...
  22. Replies
    7
    Views
    1,094

    ok... let's add something on the sample code:...

    ok...

    let's add something on the sample code:



    class A{
    //ctor
    //dtor
    //cctor
  23. Replies
    7
    Views
    1,094

    sorry, but what do you mean?

    sorry, but what do you mean?
  24. Replies
    7
    Views
    1,094

    implicit/explicit? conversion of classes?

    this is bothering me for a while...

    what i want to achieve is that the same instance of the inherited class will have the same value of the parent class like so...



    class A{
    //ctor
    ...
  25. Replies
    2
    Views
    834

    @jwenting don't you have trouble finding help...

    @jwenting
    don't you have trouble finding help especially for borland specific problems??
Results 1 to 25 of 51
Page 1 of 3 1 2 3