Type: Posts; User: Zaccheus@Work
Search took 0.02 seconds.
November 11th, 2009, 03:00 PM
D'oh, of course!
November 11th, 2009, 11:47 AM
No idea how it does it, but does the OS need to do something similar when it reads/writes to/from the page file? :)
November 11th, 2009, 11:08 AM
Not being funny here but ... what if someone takes a photo of the screen with a digital camera?
.... oh edit: ProgramArtist beat me to it.
November 11th, 2009, 11:06 AM
Could the source code being saved as Unicode cause such a problem?
November 11th, 2009, 10:52 AM
For the actual question, please see below the [ code ] section, but first some background:
The CPImportKey function is listed in Visual Studio 2005's MSDN as being part of the "Platform SDK:...
You are right, I've edited my post!
No, that's an indexer.
C# does not support indexed properties - something which C++/CLI (and I think VB.net) does support.
That is C and therefore you should really ask here: http://www.codeguru.com/forum/forumdisplay.php?f=9
The answer to your question is that you should use == instead of = in the if statements.
Yes, of course you would.
You could include the ActiveX DLL in your EXE as a resource. At runtime you extract the DLL to a folder, register it, and then create the ActiveX control.
Perhaps ask in the Win32 section: http://www.codeguru.com/forum/forumdisplay.php?f=47
April 24th, 2009, 09:36 AM
There's really not enough info here for me to answer the question.
In which function does the following take place?
April 24th, 2009, 08:32 AM
Well then I would hope that Chuck Norris doesn't write checking tools ... tools which really SHOULD know. :D
April 24th, 2009, 04:21 AM
Even a try-catch block in a destructor is not enough - if the destructor is called due to an exception being thrown and it then somehow throws its own exception, we suddenly have two active...
April 23rd, 2009, 11:15 AM
This is the C++ forum. Matlab forum is -> that way -> I think.
April 23rd, 2009, 07:29 AM
His example uses classes which can generate errors (exceptions?) in their destructors - that is something I try to avoid.
April 23rd, 2009, 04:42 AM
I always use the local static approach:
static Something& Instance();
April 20th, 2009, 11:10 AM
One difference is that 'global data' usually was lumped together in one big interdependent mess, while singletons can be used on their own. If a class uses a number of singletons, those singletons...
April 20th, 2009, 05:52 AM
What do you need help with?
Do you know how to input and output the numbers?
Do you know how to use the functions in the <cmath> header file?
April 20th, 2009, 05:02 AM
Not to mention holding financial information in floats!
April 6th, 2009, 12:30 PM
BYTE *ba = new BYTE[len];
You are allocating far less bytes (len) than you are using (sizeof(ba)*len).
Note that sizeof(ba) is 'size of pointer to byte'...
April 3rd, 2009, 07:43 AM
You could do this:
: my_array( 1000, std::vector<MyStruct>(500) ) // 1000 vectors with 500 MyStruct-s each.
April 3rd, 2009, 05:51 AM
As kempofighter indicated, std::list (and std::vector) uses an allocator class to get (and free) the memory it needs:
template < class T, class Allocator = allocator<T> > class list;
April 3rd, 2009, 04:59 AM
That is correct and would normally be the best solution.
No, a BSTR is UNICODE in Windows:
If he should not return a...
Click Here to Expand Forum to Full Width
This is a Codeguru.com survey!