Type: Posts; User: Sef
Search took 0.05 seconds.
August 21st, 2007, 08:42 PM
There is no difference. It's all a matter of perspective. Multidimensional arrays are represented as arrays of arrays so something like:
can be thought of as a single array...
November 4th, 2006, 12:57 AM
On my relatively modest 2.4 MHz machine, I can load a "std::vector" with a 100 "std:string" objects and then copy it a million times in about 7 seconds. For the vast majority of programs with far...
April 22nd, 2006, 10:14 AM
Sorry, didn't realize you already cited that article. If you're experiencing the problem on WinXP or Win2003 then it may be a Windows bug.
April 22nd, 2006, 10:08 AM
On Win2000 or NT you need the SE_TCB_NAME privilege. See KB article 180548 for another way to do it (no special privileges required):
April 14th, 2006, 11:03 AM
A domain user is authenticated by the domain controller. The short story is that If I'm logged on under a domain account, and then try to access another machine in the same domain (connecting to a...
April 14th, 2006, 10:53 AM
What do you mean by "invalid" user?
February 28th, 2006, 07:43 PM
I hope you're right in this case but unfortunately, it's probably an idealistic and optimistic view of the world (with all due respect). The sad truth is that there's rampant incompetence in this...
February 20th, 2006, 08:14 PM
First of all, I suggest you reconsider Win98 and Win Millenium. MSFT's retired their support for it and even paid support ends at the end of this June. As for the various issues you've raised, I...
February 19th, 2006, 04:00 PM
BTW, the user you're logging on also requires the appropriate logon right on the machine you're logging them onto. That is, if you pass LOGON32_LOGON_SERVICE to "LogonUser()" for instance, then the...
February 19th, 2006, 03:46 PM
Why isn't "LogonUser()" working? The most likely causes is that on Win2000 you need the SE_TCB_NAME privilege to use this and only administrators normally have it. This isn't an issue on WinXP and...
February 19th, 2006, 03:22 PM
Actually, the SYSTEM account has unrestricted access to your entire machine and is also an administrator by definition since it contains the local administrators group in its access token. Moreover,...
December 5th, 2005, 04:38 AM
You can find all interactive users on the system by enumerating all processes and looking for SECURITY_INTERACTIVE_RID in each process' access token (among the group SIDs). You can then grab the...
December 5th, 2005, 02:41 AM
As a side note, a common trick to perform rounding by exploiting the truncate feature is:
int i = int(99/10+0.5);Won't work for this particular example (as is) but I know...
December 5th, 2005, 01:56 AM
It results in 9, not 10. Integer division truncates the fractional portion. Rounding of native types never occurs in C++ unless you call a function to implement it. The op should Google for "Usual...
August 24th, 2005, 06:19 AM
ODBC is antiquated. Depending on what he's doing, new development should usually rely on ADO which is just a high-level (COM) wrapper around OLE/DB (also COM). He should check out the #import...
August 20th, 2005, 10:57 AM
Favorite pet peeve? Most programmers are lousy at what they do, even after many years of experience. Fix that problem and the rest go away (as if you ever could).
August 13th, 2005, 10:08 AM
Or alternavely look in the "Memory" window if you know how to properly read this (if not it's good learn)
August 13th, 2005, 10:01 AM
The API *is* returning the correct string (or should be if you're compiling for Unicode). Run an experiment to confirm it in your own mind. Loop through the string character by character and dump...
August 7th, 2005, 12:26 PM
Heed the advice of the others - don't shut something down unless you really know it's safe to do so (and understand the ramifications involved). If so then try this:
August 7th, 2005, 11:51 AM
std::cout << "bye bye";
July 23rd, 2005, 12:34 PM
Actually, while this is all a religious issue anyway, in the language itself the "*" actually binds with the variable name. Dan Saks (former secretary of the ANSI and ISO C++ committee and all-round...
June 19th, 2005, 11:37 AM
This is referred to as a template specialization which you can read about in your favorite C++ book. Unfortunately, VC 6.0's support for templates is weak and sometimes buggy. Moreover, member...
December 23rd, 2004, 03:51 PM
[QUOTE=NoHero]Now I will explain you the following code:
TCHAR szStr = _T("");
January 1st, 2004, 12:34 PM
From the "Tools" menu select "Options", go to the "Debug" property page and check "Display unicode strings".
January 1st, 2004, 12:22 PM
First, you can't pick up PSDK help from Visual Studio. It's a foolish decision by MS however (or more accurately they don't care since VC6 is a legacy product now). The MSDN and PSDK help are...
Click Here to Expand Forum to Full Width
This is a CodeGuru survey question.