Every files are "binary files". Text files are just a special case of binary files, where all the content are characters in some character encoding.
Also, if you are looking for a "simple" way to...
Type: Posts; User: foxman
Every files are "binary files". Text files are just a special case of binary files, where all the content are characters in some character encoding.
Also, if you are looking for a "simple" way to...
Here's two way to save your primary partition table :
with dd - save the whole MBR (simpler than just saving the partitions descriptors) with a command like "dd if=/dev/sda of=mbr.bin bs=512...
I might have talked too soon. Actually, it looks like compilers doesn't support the kind of padding I was talking.
Anyway. In your case, you would be better with an union instead of a struct....
No.
if (R == 255 && G == 255 && B == 255)
{
}
It's fine, the sendto function doesn't care about what you are sending, if it has been unitialized or not, as long as it can be read (i.e. the memory belongs to your process).
But I wouldn't...
Well, you create a socket for each interface (i.e. you bind each socket to a different interface).
I don't know if there's other way to do it in Winsock.
Well, this guy has 4 air-cooled GTX295 in his system and he says heat is under control. :D Must say, he's not running his system in a case. He have that much GPU power because he's building an...
That's a nice setup you have there, but isn't the PSU too overkill for the (current) application ?
As for the motherboard not supporting the CPU by default, I find it quite "normal" on...
Well, I don't know me neither. :)
Guess you should try with a debugger. And personally, I find it a bit weird to develop on Windows 7, but that's just a personal opinion, have nothing against it.
I'll add, for more info on Visual Studio, go look on MSDN: http://msdn.microsoft.com/en-ca/library/52f3sw5c.aspx.
You'll find all the answer to your questions there.
Well, if data is an array, to access the ith element of it, you just need to use "data[i - 1]". But then, that's pretty basic.
I don't know what you are trying to do, but you look a bit lost. You...
Also, as far as I can see, your loop condition is constant, so you'll either have an infinite loop (if you don't have any return statement in it like you currently do) or you'll never enter your...
I would also add that there might (read, certainly) be more important things to consider if your goal is to use the minimum of CPU ressource. Also, don't try to create problems where there's not. Do...
If the connection is refused it might be because the host doesn't allow connection on port 80.
Did you tried to connect normally to the site ?
Do some search on the web and you'll find answers to...
One way to make your source code portable is to use only portable construct. Especially when the non-portable functions you are using aren't adding value to your application, i.e. when you can afford...
I believe that most users would find the plethora of options in dd-wrt rather intimidating. But yeah, I could have tried to sell it that way, if I knew I was going to brick it...
As for how to...
While trying to restore the original firmware of my WRT54G (v5), it actually got bricked. I was doing this so I could sell it... guess it won't happen any time soon. :)
I did follow the procedure...
I don't know which environnement (C runtime) you are using, but look for the documentation on the system function call. Then, check the return value of the system call. Because I don't see why your...
You can't. At least, not with a console application.
You could ask your user if the information he entered is correct before processing.
This should go in the Windows section.
Here's what you are looking for if you want to do it with the Win32 API: http://msdn.microsoft.com/en-us/library/bb762159(VS.85).aspx
If you don't have a...
I heard some good things about the Samsung NC10.
http://www.bit-tech.net/hardware/2008/11/26/samsung-nc10/1
:)
Right.
Here's my entry. It follows the contest rules. I'm targeting the best user-time possible.
Oh man, what a waste of time.
By "primary" he means primary partition vs extended partition. If your hard disk have a IBM-compatible MBR, you can only have 4 primary partitions. If you want more than 4 primary partitions, you...
Depending on exactly which CPU he has, SSE3 might not even be available (SSE4 was introduced in Penryn, so we can forget about it, but I don't think it would have been useful anyway).
abachler,...