Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. mingis

    Process mouse input without getting focus

    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...
  2. mingis

    structure that contains a pointer to a char

    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?
  3. mingis

    Vista vs. RegCreateKeyEx (non-MFC app)

    With HKEY_CURRENT_USER in Vista should be everything as usual. What do you get - error responce from RegCreateKeyEx()? What error code actually?
  4. mingis

    What do you hate most about Vista?

    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".)
  5. mingis

    What do you hate most about Vista?

    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...
  6. mingis

    What do you hate most about Vista?

    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...
  7. mingis

    What do you like best about Vista ?

    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... :-)
  8. mingis

    What do you hate most about Vista?

    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...
  9. mingis

    IsUserAnAdmin?

    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.
  10. mingis

    IsUserAnAdmin?

    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...
  11. mingis

    Vista - same file name, different file contents

    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...
  12. mingis

    Vista - same file name, different file contents

    FYI: the solution: http://www.tek-tips.com/viewthread.cfm?qid=1435573&page=1
  13. mingis

    Vista - same file name, different file contents

    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...
  14. mingis

    problem with strncpy function

    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;
  15. mingis

    Vista - same file name, different file contents

    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...
  16. mingis

    malloc error under microsoft compiler

    And you probably might want to printf("%d\n", *c++);
  17. mingis

    Vista - same file name, different file contents

    Thank you very much for responce. First impression - virtualisation is the worst thing they could have invented. Well, at first look it seems good to have possibility to perform some local installation attempts without looking for administrator password. But it means allowed writing to the...
  18. mingis

    Vista - same file name, different file contents

    Couldn't be there some additional Vista-related flags for CreateFile() API function? For instance, earlier versions of Total Commander have such fault, where the newest version 7.02a allready works correctly. I'm passing following flags to CreateFile(): my_file=CreateFile("my_file.txt"...
  19. mingis

    Vista - same file name, different file contents

    It's a repeated question, now to the right forum. http://www.tek-tips.com/viewthread.cfm?qid=1434846&page=1 Recently I was forced to switch to Windows Vista and am experiencing strange behavior of the file system. In some mystical way there are files, which contents are different when opening...
  20. mingis

    Reading parallel port voltages in C

    Why not simply CreateFile("LPT1", ...)?

Part and Inventory Search

Back
Top