Search:

Type: Posts; User: parksie

Page 1 of 13 1 2 3 4

Search: Search took 1.92 seconds.

  1. Replies
    3
    Views
    746

    I wouldn't recommend using C++ in web...

    I wouldn't recommend using C++ in web development. The small potential gain in speed is totally irrelevant compared to the security implications.
  2. Replies
    4
    Views
    591

    If you'll want to refer to the comments later,...

    If you'll want to refer to the comments later, and they're a higher-level than, say:


    int x = 0x123; // makes a tricky binary pattern for the disk to read

    then check out Doxygen, and using /**...
  3. Thread: New to C++

    by parksie
    Replies
    10
    Views
    842

    iostream.h was the *old* iostreams library. When...

    iostream.h was the *old* iostreams library. When the Standard C++ Library was put together, along with the STL (Standard Template Library, things like vectors, lists, strings), a new streams library...
  4. Replies
    1
    Views
    2,362

    In C, a string is defined as a sequence of...

    In C, a string is defined as a sequence of characters, terminated by NULL. Therefore, a string cannot contain an embedded NULL character. If you wish to keep those intact (and prevent buffer handling...
  5. Replies
    30
    Views
    1,583

    Now where's my handbag ;)

    Now where's my handbag ;)
  6. Replies
    30
    Views
    1,583

    Damn. I was going to say something like that when...

    Damn. I was going to say something like that when I saw the thread title ;)

    Mine's doing silly things like:
    for(int i = 0; blah[i] = 4; ++i) { /* ... */ }(the = rather than ==).
  7. Replies
    7
    Views
    2,484

    Just a couple of nitpicks: You use unsigned a...

    Just a couple of nitpicks:

    You use unsigned a lot in your code, perhaps qualifying this with a sized type for readability? (Most likely long, this seems to be 4 bytes on both 32-bit and 64-bit...
  8. Thread: new pc game

    by parksie
    Replies
    13
    Views
    827

    Postal 2 :D

    Postal 2 :D
  9. If you have access to a *nix system with Perl,...

    If you have access to a *nix system with Perl, here's something I knocked up for my own use; probably not quite as comprehensive as you'd like, but it does the heavy lifting (automatic thumbnails).
  10. Replies
    3
    Views
    751

    In Windows (at least with MSVC++), you need to...

    In Windows (at least with MSVC++), you need to use _beginthread rather than CreateThread otherwise some of the C library functions leak memory.
  11. Thread: types/classes

    by parksie
    Replies
    3
    Views
    746

    An example I posted:...

    An example I posted: http://www.vbforums.com/showthread.php?threadid=292784
  12. Replies
    3
    Views
    4,061

    Re: Re: itoa int->char ? HWND-string

    If you're already dealing with HWNDs directly, no point bringing in MFC just for CString.

    In C, NickMeuir's method is the best, although nitpickingly it should use snprintf (highly unlikely an int...
  13. Replies
    4
    Views
    750

    fprintf won't throw an exception, because it's a...

    fprintf won't throw an exception, because it's a C function. Check your input values to it (casts may be required) and that they match the format string. In other cases, errno might give some use.
  14. Replies
    4
    Views
    669

    You could be making simple apps, yes; however...

    You could be making simple apps, yes; however your solutions to problems may be suboptimal because you haven't yet come across enough code to discern the various idioms (things like quick ways of...
  15. Thread: char[]

    by parksie
    Replies
    12
    Views
    869

    Any string in double quotes in your source file...

    Any string in double quotes in your source file will be produced as a constant when compiled. In some cases they may end up in read-only memory.
  16. Replies
    31
    Views
    1,859

    Motif is an X toolkit. So is GTK. So is Qt. ...

    Motif is an X toolkit. So is GTK. So is Qt.

    The design of The X Window System explicitly separated all of this out. All X provides is the graphics primitives, drawing lines, copying some bitmaps...
  17. Replies
    1
    Views
    624

    You shouldn't be writing DOS programs anymore. ...

    You shouldn't be writing DOS programs anymore.

    If you need a console-based program, create a proper 32-bit version (BC++ 5.5 can create these).
  18. Replies
    5
    Views
    778

    Look carefully. That's actually not part of the...

    Look carefully. That's actually not part of the compiler, it's the preprocessor. The compiler input parsing rules don't apply.
  19. Replies
    2
    Views
    656

    Use typeid: #include #include...

    Use typeid:
    #include <iostream>
    #include <typeinfo>

    using namespace std;

    class base {
    public:
    // must be polymorphic base class for typeid to work
    virtual void something() { };
  20. Replies
    31
    Views
    1,859

    Inline assembler is architecture dependent, it...

    Inline assembler is architecture dependent, it may not be platform dependent.

    However, this depends on whether you class the architecture as part of the platform, for example, inline x86 assembler...
  21. Replies
    5
    Views
    778

    C and C++ compilers' parsing stages are...

    C and C++ compilers' parsing stages are tokenising parsers, i.e. they split up the input file into tokens (keywords, operators, etc.). Whitespace is ignored outside of quotes (preprocessor...
  22. Have the offenders shot. :)

    Have the offenders shot. :)
  23. Thread: Post Race!

    by parksie
    Replies
    68,852
    Views
    17,965,964

    That accounts for some of the randomness, then.

    That accounts for some of the randomness, then.
  24. Thread: Post Race!

    by parksie
    Replies
    68,852
    Views
    17,965,964

    It's text at the beginning of the day as well! ...

    It's text at the beginning of the day as well!

    But in the middle...who knows!?
  25. Thread: Post Race!

    by parksie
    Replies
    68,852
    Views
    17,965,964

    And damn proud of it.

    And damn proud of it.
  26. Replies
    43
    Views
    3,696

    No particular order... Fight Club Heat The...

    No particular order...

    Fight Club
    Heat
    The Matrix
    Blade Runner (director's cut, of course)
    2001: A Space Odyssey
  27. Thread: Post Race!

    by parksie
    Replies
    68,852
    Views
    17,965,964

    ;)

    ;)
  28. Replies
    10
    Views
    748

    There's already a function in Windows NT to do...

    There's already a function in Windows NT to do this.
  29. Replies
    65
    Views
    3,475

    This is the, "time will always find a way"...

    This is the, "time will always find a way" argument (yes, I agree).

    Even if he doesn't put a brick in, maybe someone else will throw a brick through his window, and it'll end up going through. Who...
  30. Replies
    19
    Views
    1,346

    Doing it directly with the HDD won't work well,...

    Doing it directly with the HDD won't work well, 98 can't read NTFS without messing around with NTFSDOS or similar tools.

    Easiest option in the long run will be to use a crossover Cat5e cable. If...
  31. Replies
    13
    Views
    1,137

    This is Jenni of Jennicam fame, I assume? I...

    This is Jenni of Jennicam fame, I assume? I recognise the number...
  32. Replies
    7
    Views
    822

    Well, the compiler with the fastest code will...

    Well, the compiler with the fastest code will come from the CPU manufacturer.

    For example, for a P4, use Intel's compiler. For a Sparc, Sun's compiler. For MIPS, SGI's compiler.

    Not sure...
  33. Replies
    20
    Views
    1,312

    By learning graphics programming in DOS?...

    By learning graphics programming in DOS? Something that was on its way out a long time ago, and is pretty much totally dead now?
  34. Replies
    20
    Views
    1,312

    Why are you still doing this in DOS?

    Why are you still doing this in DOS?
  35. I remember there used to be products that created...

    I remember there used to be products that created an Access "server", you needed a separate client library installed though (after that, it's just ODBC calls).

    No idea what they are though.
  36. Replies
    8
    Views
    720

    Moving up to something that's 32-bit will...

    Moving up to something that's 32-bit will probably help as well.

    DOS is dead, for the most part, unless you're going embedded.
  37. Replies
    3
    Views
    630

    Not really. The distros sometimes have to play by...

    Not really. The distros sometimes have to play by the rules (thou shalt not distribute DeCSS). The fact that the software exists doesn't mean they can put it in easily.

    Remember Red Hat and the...
  38. Replies
    3
    Views
    630

    Try: $ mplayer -dvd 1where 1 is the title...

    Try:
    $ mplayer -dvd 1where 1 is the title number.

    gxine should work as well.

    If not, then it's the distro's fault for not building in the CSS unscrambling code that you need.
  39. Replies
    16
    Views
    1,055

    Whoa Queeg.

    Whoa Queeg.
  40. Thread: oh the irony

    by parksie
    Replies
    13
    Views
    802

    Re: Re: Re: oh the irony

    "Normal software" problems :)
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width