Search:
Type: Posts; User: parksie
Search:
Search took 1.92 seconds.
-
I wouldn't recommend using C++ in web development. The small potential gain in speed is totally irrelevant compared to the security implications.
-
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 /**...
-
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...
-
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...
-
Now where's my handbag ;)
-
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 ==).
-
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...
-
-
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).
-
In Windows (at least with MSVC++), you need to use _beginthread rather than CreateThread otherwise some of the C library functions leak memory.
-
An example I posted: http://www.vbforums.com/showthread.php?threadid=292784
-
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...
-
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.
-
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...
-
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.
-
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...
-
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).
-
Look carefully. That's actually not part of the compiler, it's the preprocessor. The compiler input parsing rules don't apply.
-
Use typeid:
#include <iostream>
#include <typeinfo>
using namespace std;
class base {
public:
// must be polymorphic base class for typeid to work
virtual void something() { };
-
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...
-
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...
-
Have the offenders shot. :)
-
That accounts for some of the randomness, then.
-
It's text at the beginning of the day as well!
But in the middle...who knows!?
-
-
No particular order...
Fight Club
Heat
The Matrix
Blade Runner (director's cut, of course)
2001: A Space Odyssey
-
-
There's already a function in Windows NT to do this.
-
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...
-
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...
-
This is Jenni of Jennicam fame, I assume? I recognise the number...
-
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...
-
By learning graphics programming in DOS? Something that was on its way out a long time ago, and is pretty much totally dead now?
-
Why are you still doing this in DOS?
-
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.
-
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.
-
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...
-
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.
-
-
"Normal software" problems :)
|
Click Here to Expand Forum to Full Width
|