windows

Resize Windows OnScreen keyboard programmatically

Hi, I wonder if it is possible to resize Windows OnScreen-keyboard in my program? What Windows methods to use for that? ...

How to connect to SQL Server 2008

I have a desktop, and a Laptop. The Desktop has Windows 7 64-bit and the Laptop has Vista Ultimate 32-bit. On both machines I have SQL Server 2008 Standard installed. On the laptop, I open SQL Management Studio and try to connect to the SQL Server on the desktop. It times out. With SQL Server Config Manager I Enabled TCP/IP and Named Pi...

ODBC Data Source Administrator access

Is it possible to give a non-administrator rights to modify data sources with Microsoft ODBC Data Source Administrator without adding them to the administrators group? Some users can currently view this information but if they try to make changes, they are not retained. This is on Windows 2003 Standard Server. ...

Is there a library / api for reading the contents of a .hlp help file?

I have a help file for my program and was asked to add a description of the menus in a toolbar as the user browses them. So I thought I could just use the beginning of the menu's description of the help but just cant find how to access the contents of it. I saw WinHelp has a macro language, so I figured maybe through this, but I couldnt...

How to read or capture Ctrl+some key or Alt+some key in C ?

For example I want to do some thing when some combination of Ctrl key with any other key is pressed (or it may be Alt key).Then from the standard input how to read that key combination in C program as an input. I tried with simple getchar() to know the ascii values of these combinations. But it was some 1 to 25 and some other values for...

Moving applications between desktops in Windows

Hello, I am trying to figure out how can I send a running application do a new Windows desktop created with CreateDesktop. I can create a new Desktop, and then launch an application in it, bug I can't find the way to do it with a running application. All functions related to Desktop management (i.ec, SetThreadDesktop) always apply only...

Use of GetGuiResources

Hello, Is it a good idea to use GetGuiResources(GetCurrentProcess(),GR_GDIOBJECTS) at the start of winmain, and before the last return to detect GDI leaks or more specifically objects I forgot to release ?Also I'm currently wondering why the first call in my progam returns 4 when there's no window yet. ...

How to copy a directory structure but only include certain files (using windows batch files)

As the title says, how can I recursively copy a directory structure but only include some files. E.g given the following directory structure: folder1 folder2 folder3 data.zip info.txt abc.xyz folder4 folder5 data.zip somefile.exe someotherfile.dll The files data.zip and info.txt can ap...

Locking a file while copying using Commons IO

I am using the Apache Commons IO: FileUtils.copyFileToDirectory(srcFile, destDir) How do I make Windows lock the destination file during copy? Windows locks the file correctly if I use: Runtime.getRuntime().exec( "cmd /c copy /Y \"" + srcFile.getCanonicalPath() + "\" \"" + destDir.getCanonicalPath() + "\"")...

Eclipse external tools, white space in path vars

I am setting up a external tool but when I use the argument variables like this one: ${resource_path} for resources that contain spaces in the path (e.g. C:\Program Files) it seems the arguments get passed in split on the spaces in the path. Does anyone know how to make this work? ...

Help me make my windows cmd.exe console work more like a Linux terminal

The windows terminal (the user-interface around text-applications like cmd.exe) really sucks. There is so much that the Unix-style terminals do that the windows terminal apparently cannot do, for example what if you want to re-size the window in both dimensions by dragging the border. The Windows terminal only allows you to change it's ...

Memory management in memory intensive application

If you are developing a memory intensive application in C++ on Windows, do you opt to write your own custom memory manager to allocate memory from virtual address space or do you allow CRT to take control and do the memory management for you ? I am especially concerned about the fragmentation caused by the allocation and deallocation of ...

Where can I learn the pros and cons of the various Source Control systems available?

I want to compare and contrast the various source control systems out there. Any good references? ...

Qt Toolbar button icons show in Windows after MinGW build, but disappear after being built with g++

I'm developing a PHP IDE similar to Eclipse, but much more light weight. For the interface I'm using Qt 4.4.3 which seems to be working great. I've primarily been using my Windows machine to do most of the coding in Eclipse CDT and using MinGW as the compiler. A couple of days ago I took the code an put it on my Eee PC with Linux just ...

Creating a network driver

I'm pretty much a total idiot when it comes to writing hardware drivers, however I'm fairly decent at C/C++. I have a for fun project I want to work on that is attempting to use a device as a network tether proxy. What I would like to do is create a driver that appears to be a network driver to windows, but actually sends/receives thro...

Can I use CreateFile, but force the handle into a std::ofstream?

Is there any way to take advantage of the file creation flags in the Win32 API such as FILE_FLAG_DELETE_ON_CLOSE or FILE_FLAG_WRITE_THROUGH as described here http://msdn.microsoft.com/en-us/library/aa363858(VS.85).aspx , but then force that handle into a std::ofstream? The interface to ofstream is obviously platform independent; I'd lik...

how to create Toolbar in window Application using C#

i want to create toolbar using window application in dotnet.it will use yahoo,gmail API. please anybody have any solution pls send me. ...

The OLE way of doing drag&drop in wxPython

I have wxPython app which is running on MS Windows and I'd like it to support drag&drop between its instances (so the user opens my app 3 times and drags data from one instance to another). The simple drag&drop in wxPython works that way: User initiates drag: The source window packs necessary data in wx.DataObject(), creates new wx.Dr...

Windows window docking

I'm wondering how to dock / snap a window to the side of the screen in Windows, preferably with straight Win32 API. The effect I'm looking for is like the task bar -- a window that has a reserved space on screen, so that maximizing another window makes that window take up the rest of the screen, but leaves my window in place and visible....

Windows kernel driver for direct I/O - anyone been there?

I need to handle direct I/O to a parallel port in a better way that we are doing it at the moment - presently we use a kernel driver that 'opens up' useable addresses using the I/O protection map. This works ok but is getting more and more left behind. We still wish to continue using a parallel port and there are very satisfactory parall...