windows

Random MoveFileEx failures on Vista (access denied, looks like caused by search indexer)

I noticed that writing to a file, closing it and moving it to destination place randomly fails on Vista. Specifically, MoveFileEx() would return ERROR_ACCESS_DENIED for no apparent reason. This happens on Vista SP1 at least (32 bit). Does not happen on XP SP3. Found this thread on the internets about exactly the same problem, with no re...

Add to right click application menu in taskbar in .NET

Most applications only have "Restore, Move, Size, Minimize, Maximize and Close", however MS SQL offers extra options "Help, Customize view". Along those lines, is it possible to add to the right click menu of an application in the task bar? Note: I'm not referring to an icon in the notification area next to the clock. ...

What are some good profilers for native C++ on Windows?

I'm looking for a profiler to use with native C++. It certainly does not have to be free, however cost does factor into the purchase decision. This is for commercial work so I can't use personal or academic licensed copies. The key features I'm looking for are: Process level metrics Component level metrics Line-level metrics Supports ...

Last Modified of Folders

How does Windows determine the last modified date of a folder? ...

How do I add a multline REG_SZ string to the registry from the command line?

As part of a build setup on a windows machine I need to add a registry entry and I'd like to do it from a simple batch file. The entry is for a third party app so the format is fixed. The entry takes the form of a REG_SZ string but needs to contain newlines ie. 0xOA characters as separators. I've hit a few problems. First attempt use...

Are there any better command prompts for Windows?

For some reason the Windows command prompt is "special" in that you have to go to a properties dialog to resize it horizontally rather than just dragging the corner of the window like every other app. Unsurprisingly this feature made it into P-P-P-Powershell as well -- is there any way around this via command prompt replacement or Window...

Using the DOS "start" command with parameters passed to the started program

I have a Virtual Machine in Virtual PC 2007. To start it from the desktop, I have the following command in a batch file: "c:\program files\Microsoft Virtual PC\Virtual PC.exe" -pc "MY-PC" -launch But that leaves a dos prompt on the host machine until the virtual machine shuts down, and I exit out of the Virtual PC console. That's an...

Why do my files need dos2unix? only in eclipse though

When I open a file in eclipse it shows with the improper line spacing showing an extra line break between every line. When I open the file with notepad or wordpad it doesn't show these extra line breaks that only eclipse shows. How do I get eclipse to read these files like notepad and wordpad without those line breaks? -edit: I don't ha...

Stuff in Windows Form Move When Maximized - C#

It's been a while since I've programmed a GUI program, so this may end up being super simple, but I can't find the solution anywhere online. Basically my problem is that when I maximize my program, all the things inside of the window (buttons, textboxes, etc.) stay in the same position in the window, which results in a large blank are...

Windows path searching in LoadLibrary with manifest

If you call LoadLibrary without a path (e.g., LoadLibrary("whatever.dll"), Windows will generally follow its standard search algorithm, the same one it uses to find EXEs. My question is this: suppose that an application manifest specifies specifies a particular version of a system DLL, say, comctl32.dll 6.0. In that case, will LoadLibra...

Novell client and windows SSO

Does the novell gina install a specific security provider that can be used via SSPI? Does it have to called out specifically or is SPNEGO good enough? Will that support single sign on if the novell gina is installed on the remote server? ...

Windows API commctrl.h using application doesn't work on machines without the Platform SDK

I have written something that uses the following includes: #include <math.h> #include <time.h> #include <stdio.h> #include <stdlib.h> #include <windows.h> #include <commctrl.h> This code works fine on 2 machines with the Platform SDK installed, but doesn't run (neither debug nor release versions) on clean installs of windows (VMs of c...

How do I get PHP to work with ADOdb and MySQL?

I'm trying to get a PHP site working in IIS on Windows Server with MySQL. I'm getting this error Fatal error: Call to undefined function mysql_connect() in C:\inetpub...\adodb\drivers\adodb-mysql.inc.php on line 363 Update This link outlines the steps I followed to install PHP on my server: How do I get PHP and MySQL working on IIS...

bandwidth and traffic simulator for web apps ?

hi there :P can you suggest how to create a test enviroment to simulate various types of bandwidths and traffic in a web app ? Or maybe a program open source wich does this against localhost ? I think this is a very important subject when programming web apps but it is not a usual topic, the only way i can imagine to create such kind o...

How do you loop through each line in a text file using a windows batch file?

I would like to know how to loop through each line in a text file using a Windows batch file and process each line of text in succession. ...

Increase Stack Size on Windows (GCC)

Is there a way to increase the stack size of a Windows application at compile/link time with GCC? ...

Do you know an alternative to balsamiq mockups for wireframe building?

I am searching for something like http://www.balsamiq.com/products/mockups . I like the program and would buy it if it were 20 bucks a licence. Do you guys know something in the range from 0 to 20 bucks which can do what this thing can? Give me some more answers there is no real answer here and I don't want to waste 100 rep points! ...

Date change notification in a Tkinter app (win32)

Does anyone know if it is possible (and if yes, how) to bind an event (Python + Tkinter on MS Windows) to a system date change? I know I can have .after events checking once in a while; I'm asking if I can somehow have an event fired whenever the system date/time changes, either automatically (e.g. for daylight saving time) or manually....

What GUIs exist for Git on Windows

I use Subversion via TortoiseSVN but I hear good things about Git. Are there any similar tools available for Git on Windows? Feel free to answer with tools which still in early development. ...

How can I save a screenshot directly to a file in Windows?

In Windows XP, one can press Alt-PrintScreen to copy an image of the active window, or Ctrl-PrintScreen to copy an image of the full desktop. This can then be pasted into applications that accept images: Photoshop, Microsoft Word, etc. I'm wondering: Is there a way to save the screenshot directly to a file? Do I really have to open Ph...