Type: Posts; User: Gabriel Fleseriu
Search took 0.11 seconds.
April 1st, 2006, 01:21 PM
Well *(ticketGame +i) is the same as ticketGame[i]. The assignement should work if your game is assignable, as ticketGame[i] is a lvalue -- or should be one.
However, I think you miss some basics...
April 1st, 2006, 11:55 AM
Well, that is a strange requirement you have. I think you won't be able to limit the physical transport rate ovet the network, because of obvious reasons. The only thing I can think of is an...
April 1st, 2006, 11:01 AM
Maybe I don' understand your question right, but networks don't work that way. If you want to "tunnel" a serial connection through a network, then you write a "server" program taht reads from the...
April 1st, 2006, 08:42 AM
I've tested your code on WinXP Pro, and it works. However, on Win2k Pro it doesn't, WTSEnumerateSessions() constantly returns error 1151 (The specified program is not a Windows or MS-DOS...
April 1st, 2006, 06:07 AM
Thanks you guys. You saved me a lot of time skimming thru MSDN. :wave:
March 31st, 2006, 01:24 PM
This is a bit complicated, so stick with me.
I have following scenario: I have a service that needs to detect whether a user is locally logged on (Win2k). Normally, it is no problem...
March 26th, 2006, 07:09 AM
Am am of course aware that boost::serialization offers non-intrusive serialization for a large number of well known constructs, like std::vector or boost::shared_ptr.
However, there is no...
March 25th, 2006, 04:39 PM
Has any of you found a generic method of making boost::any serializable? The net doesn't provide anything more than a couple of unfinished ideas, as far as I have searched.
March 17th, 2006, 05:51 AM
Assuming that you use 16 bits for such a number, then you will use 12000 bytes disk storage. The os will allocate at least one block for that -- so you spend something between 12 k and 32k or so....
March 17th, 2006, 05:41 AM
Because the standard sais that the smallest addressable entity the byte is.
A general note: the minimum size a file can have is platform dependant and file system format dependant. This because...
March 10th, 2006, 04:14 AM
Please don't start threads for the sake of it. We have enough nonsense threads already.
This thread is closed.
March 4th, 2006, 10:32 AM
Which is not that bad, actually. You mostly won't need 'export' for template metaprogramming.
Herb Sutter has made some pertinent comments on 'export' -- you might want to read it if you come across...
March 4th, 2006, 10:00 AM
Very interesting. Google certainly has some power many people oversee. Put it this way: many people use Google as a universal information source and tend to belive in the results Google returns for...
March 4th, 2006, 09:23 AM
You can register a free email address with a zillion providers nowdays. And you can choose an alias that's not offensive.
November 22nd, 2005, 01:42 PM
What's wrong with templates? The standard library is full of them and they are one of the major strengthes of C++. And my example won't involve a more extensive use of templates than it does when...
November 22nd, 2005, 11:51 AM
It's quite simple. In my example, the "parse" function simply prints the input, but it could do whatever. It works with a file, with the console or a stringstream:
August 26th, 2005, 03:07 PM
No, they are not. A long long can have 64 bits, but it isn't required to. The _int64 is a type that always has 64 bits. I'm unsure whether there are standard types with fixed bit sizes (I think there...
August 26th, 2005, 05:38 AM
There also is a button below your post, that says "Edit". You can correct your own posts.
As for the integer size, the C++ Standard doesn't say how large the intgral types have to be. Many...
August 9th, 2005, 05:56 AM
The global namespace is "the area" surrounding any namespaces declared explicitely, regardless whether these are named or not. The purpose of namespaces is to group together things that logically...
August 7th, 2005, 09:43 AM
August 7th, 2005, 05:22 AM
That you get banned if you post things like this again. Do you understand?
July 31st, 2005, 10:28 AM
People, I have to remind you that posting code for viruses and the like is forbidden here on CodeGuru. Please refrain from such posting in future.
It is ok to talk about security which of course...
July 25th, 2005, 05:20 AM
There are two issues when converting strings to numeric types: correctness and performance. The problem is that many people seem to concentrate on the latter and to forget correctness.
Thanks for your comments, people.
So I just re-invented the wheel, it seems :)
I came around a construct that works, but is a bit strange, to put it mildly. I was wondering if it is legal. I didn't dive into the Standard -- I didn't have the time... Here it is:
Click Here to Expand Forum to Full Width
This is a CodeGuru survey question.