Search:

Type: Posts; User: Stoned_Coder

Page 1 of 20 1 2 3 4

Search: Search took 0.06 seconds.

  1. Replies
    12
    Views
    4,662

    you will need these 2 books:- Programming...

    you will need these 2 books:-

    Programming windows by charles petzold.
    Programming applications for microsoft windows by jeff richter.

    From there your best reference after that is probably msdn
  2. Replies
    8
    Views
    1,698

    yes. If a variable is global, you can access it...

    yes. If a variable is global, you can access it from everywhere and in a single threaded program then your last statement above would be true. Your code is flawed mind you.
  3. Replies
    8
    Views
    1,698

    maybe. perhaps if you explain exactly what it is...

    maybe. perhaps if you explain exactly what it is you are trying to do with a small accompanying code sample we can show you how to get the effect you are after.
  4. Replies
    12
    Views
    1,841

    what does _RTLENTRY expand to? Is the expansion...

    what does _RTLENTRY expand to? Is the expansion conditional on anything else?
  5. Replies
    8
    Views
    2,987

    You can ensure that operator [] gets called by...

    You can ensure that operator [] gets called by doing this...

    MyArray.operator [](1) = 6;

    but it would be a better idea to do away with the conversion operator altogether. if you must then make...
  6. Replies
    14
    Views
    2,340

    The numbers in ASCII are contiguous so by...

    The numbers in ASCII are contiguous so by subtracting the value of '0' you turn a char into its integer representation.
  7. well im guessing here that your strings have gone...

    well im guessing here that your strings have gone out of scope and you are left with an array of dangling pointers. I'd suggest converting to std::vector for the array and std::string for all the...
  8. Replies
    9
    Views
    1,579

    Know what operator % is??

    Know what operator % is??
  9. Replies
    13
    Views
    3,164

    cPizza* add_pizza(int diameter, double cost) { ...

    cPizza* add_pizza(int diameter, double cost)
    {
    cPizza *new_pizza;

    new_pizza = new cPizza(diameter, cost);

    return new_pizza;
    }

    Could better be written as....
  10. Replies
    9
    Views
    2,328

    did you see userport??

    did you see userport??
  11. Replies
    9
    Views
    2,328

    stop whingeing because you cannot be bothered to...

    stop whingeing because you cannot be bothered to do your own research. the link i gave you will lead you to plenty of information on programming the parallel port in all versions of windows. Also...
  12. Replies
    3
    Views
    3,634

    Sure. Now just hang on a sec while I dig out my...

    Sure. Now just hang on a sec while I dig out my crystal ball and fire up the psychic debugger!!!


    Post client code here and server code in c# forum and link to it in this thread then maybe you...
  13. the first is passing by value. the second is...

    the first is passing by value. the second is passing by reference.
    its the same as(but with pointers instead)....
    void func (int); // by value
    void func (int&); // by reference

    Theres some more...
  14. Replies
    6
    Views
    1,137

    >>>is the goto method something to be encouraged...

    >>>is the goto method something to be encouraged or discouraged

    Highly discouraged. goto has its uses but they are few and far between and never should a goto be used to replace a loop construct.
  15. Replies
    5
    Views
    1,166

    Use boost (http://www.boost.org)

    Use boost
  16. Replies
    9
    Views
    2,328

    all you need to know...

    all you need to know
  17. Replies
    12
    Views
    3,928

    The general rule of thumb is if the file is a...

    The general rule of thumb is if the file is a header file always specify explicitly. you dont want a using directive in a header file. On the other hand in a source file, if its small and you know...
  18. Replies
    3
    Views
    1,460

    this is the offending bit..... localQuestion...

    this is the offending bit.....

    localQuestion == "yes"

    You cannot do that in c/c++. firstly localQuestion is only a char. that means it can hold one character. Secondly even if it was a char*...
  19. Replies
    11
    Views
    2,600

    >>the only thing that you can't really do is...

    >>the only thing that you can't really do is templates
    basic templates can be done with macros. what you cant do is encapsulation. C has no way of specifying private data.
  20. you will need a virtual destructor too

    you will need a virtual destructor too
  21. Replies
    2
    Views
    1,129

    Look through this for ideas...

    Look through this for ideas
  22. Thread: Buttons

    by Stoned_Coder
    Replies
    14
    Views
    2,349

    winprog (http://www.winprog.org) relisoft...

    winprog
    relisoft
  23. Replies
    24
    Views
    7,424

    the op asked for a way to make sure input was a...

    the op asked for a way to make sure input was a valid int. well input in hex or octal is also a valid int.
    A func that takes an int param(not const char* as atoi does, i never said that would work),...
  24. Replies
    24
    Views
    7,424

    atoi expects const char* not int Yes why not...

    atoi expects const char* not int

    Yes why not do octal too. Anything the language sees as a valid int.
  25. Replies
    24
    Views
    7,424

    yes it is but its in base 16. its a valid int....

    yes it is but its in base 16. its a valid int. oxff is 255 for example and can be passed to a func requiring an int.
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4