Type: Posts; User: spoulson
Search took 0.01 seconds.
March 20th, 2007, 03:45 PM
The reason I believe that defragmentation isn't done in native C++ is because it's too low level.
Managed C++ is another layer of abstraction on top of C++, where it includes a higher level memory...
March 19th, 2007, 10:17 AM
If enabled on the web server, web logs can show response time in ms.
March 19th, 2007, 10:09 AM
It looks like you're passing a function pointer, whose types aren't a perfect match. Let's see the code you've written.
March 16th, 2007, 09:43 AM
You can do a search on "Design Patterns". This looks like the Factory design pattern, in which some subset of code instantiates the proper class object.
In this case, it always instantiates Dog...
March 16th, 2007, 08:55 AM
I like this method better:
sizeof(ar) / sizeof(intArr)
March 15th, 2007, 03:01 PM
March 15th, 2007, 02:23 PM
Use private key encryption. This way, the algorithm and public key can remain in your code, but the private key secured on your end to be used your key generator tool.
March 15th, 2007, 02:10 PM
Does the missing file error come from make or g++? If from make, then you have a rule somewhere that defines that header as a requisite for compiling the source file.
March 15th, 2007, 02:07 PM
What is the third parameter intended to be used for?
February 28th, 2007, 09:52 AM
You didn't mention what database version you're using.
If using SQL Server 2000, you can use the Data import/export wizard to copy all objects and data.
If using SQL Server 2005 (which it...
February 22nd, 2007, 08:59 PM
That's understandable. My response was for something else, though. However, XML serialized objects should work fine for you.
February 21st, 2007, 09:19 PM
Care to explain why? There were more responses for alternatives than for using XML.
February 21st, 2007, 11:45 AM
I would choose XML only if it were necessary to read or edit it from a text or XML editor. Otherwise, I don't see any reason why you couldn't just use a disconnected DataSet and serialize to binary...
February 15th, 2007, 12:00 PM
Why is the virtual destructor called at all? An assignment operator is supposed to assign values, not destroy them.
Flaws aside, what was the author of that snippet trying to accomplish exactly?
February 15th, 2007, 11:53 AM
What class(es) do you recommend?
February 14th, 2007, 11:46 AM
The data type is 'unsigned int', so it is not possible to be negative. I would expect that it should function just the same as any other unsigned int (or signed int for that matter), but with more...
February 13th, 2007, 07:54 PM
The issue is not the compiler, but the platform portability. If you're compiling on a Intel, it'll use MSB (Most significant bit) order; whereas, if you compile to an LSB platform, like Motorola...
February 13th, 2007, 01:46 PM
Many compilers will pad your structure to a default boundary, such as dword. Say you have a structure containing 24 bits of data, it may well be represented as sizeof(yourStruct) = 4 bytes, instead...
February 13th, 2007, 09:29 AM
Well, it looks like cilu assumed your intentions were to clear the map<> of all elements. But after re-reading your post, I guess that's not what you're asking. So yes, feel free to set...
February 9th, 2007, 01:02 PM
I disagree about AJAX being nonessential. The problem with a lot of web sites built even today is that they refresh the whole page to change something relatively small. Whether CGI, ASP, or...
February 8th, 2007, 08:25 PM
Could you explain this bit?
new(&foo)CFoo; // constructor called twice
February 8th, 2007, 08:58 AM
constructor != initializer
The constructor can do anything you want, including initialize. I think the advise already posted here should suit your needs.
February 8th, 2007, 08:56 AM
For controls like the Listbox, you can suspend updates while making multiple changes. I haven't tested this myself, but CWnd::LockWindowUpdate() and CWnd:UnlockWindowUpdate() seem to be what you're...
February 8th, 2007, 08:50 AM
I like to brainstorm some key words to describe the product, like say: learn, mentor, develop. Then, I'll go to thesaurus.com and find some synonyms I didn't think of. Sometimes the name jumps...
February 8th, 2007, 08:47 AM
I've wondered the same thing. However, lots of features of HTTP, HTML, CSS, and other technologies were not heavily used even when browsers supported them fully. Simple things like CSS-based...
Click Here to Expand Forum to Full Width
This is a Codeguru.com survey!