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...
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):
http://support.microsoft.com/default.aspx?scid=kb;EN-US;180548
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...
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...
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...
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...
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...
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,...
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...
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...
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...
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).
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...
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:
...
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...
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...
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...