I'm trying to develop a keyboard emulator, controlled by the mouse, but with only partial success. The first mouse click on my keyboard emulator window kills the focus of the keyboard receiving window. After returning the focus (SetForegroundWindow()) some programs lose possition of the cursor...
Is this
strncpy(comment, "Minne", sizeof(comment));
correct approach? The statement copies characters outside of the constant string "Minne". Couldn't it lead to segmentation errors too in case when the string is the last one in the code section?
You should have and investigate it, when you make applications, oriented to customers, some of them probably use Vista. You cannot say them "don't use Vista". (Though MS says: "don't use Vista incompatible applications".)
First of all, bugs generally should not be target of somebodys hate, it is natural satellites of any new software version, but they make little bit angry however.
a) Happy you... I got my sound back by rolling SP1 down, but suddenly Iomega ZIP drive disappeared then... Fortunately I didn't throw...
Not about what I do "hate", but one thing made me laugh was MS commercial puff about extra new feature - 3D windows. I even started to imagine, how everything will change in Vista 3D era...
It is perhaps UAC heuristical analysis - it can not decide, should application be elevated to admin level, or probably not... Or may be yes?.. No, no, no way... :-)
1. Opposing to dilettante
I would say it is too aggressive. Well, some of system files/keys could be inaccessible even for admin by default, but I don't see any simple way to switch off that protection, if I really know what I am going to do. Only user SYSTEM has access to everything, so I am...
It should be according to msdn specifications. Unfortunatelly, neither VC 6.0, nor Watcom, nor Mingw libraries do not contain such enter point. Is that probably a macro definition?
I found it under different name - IsUserAdmin(), undocumented though.
At first, may be somebody knows some easy way to know, am I privileged user or not? Until now I tryed to write to certain registry key in HKEY_LOCAL_MACHINE, in case of success I decided I am an admin. Now, in Vista, it does not work - Vista allows for everybody to write to system area of...
No, by the rules we played in Win2000. In Vista there is virtualization switched on by default, allowing old programs to do bad things without any hint about any rules and even about what is actually going on.
I see one good further application for virtualization - allow users to install and...
Found the solution:
1. Install Microsoft Application Compatibility Toolkit 5.0
http://www.microsoft.com/downloads/details.aspx?FamilyID=24da89e9-b581-47b0-b45e-492dd6da2971&displaylang=en
2. Run Compatibility Administrator, press toolbutton "Fix", enter your application name, location...
strncpy() does not add terminating null, when length of source string is equal or bigger than count of bytes parameter. This parameter actually means "destination buffer size". So strncpy() should be followed by
confpath[len-len1] = 0;
Well, now I know it - it's a brand new MS invention - Virtual Storage. They proclaim they have some new API to swich the stuff off, or at least to enter desired files/keys to non-virtuable lists. I'm on the way now, but may be somebody has already heard something about it ant hint me where to...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.