windows

Access parent drive "relatively" on Windows

Is there any "built-in" way to access the parent drive "relatively" on Windows? i.e, instead of my program storing a path like K:\1\2\3 (K:\ being a USB flash drive), I'd like it to store the path without the drive letter, that way if the drive letter happens to change in the future, the stored path will still be valid because it's dyna...

Transfer file from Windows Mobile device to...anywhere

I can't seem to find a solution to this issue. I'm trying to get my Compact Framework application on Windows Mobile 6 to have the ability to move a file on its local filesystem to another system. Here's the solutions I'm aware of: FTP - Problem with that is most of the APIs are way to expensive to use. HTTP PUT - As far as I have been...

Can a 32 bit User-mode driver run on top of a 64 bit OS?

Hello everyone, I have been checking out some info about 64-bit driver development; I found that drivers have to be re-written in order to be compatible with a 64 bit OS. However, I was wondering if this also holds true for User-mode drivers. The reason that I am asking this is because my understanding is that user mode drivers pass t...

Quickly determining if a folder contents have been modified

I need to determine which folders contain files that have been modified "recently" (within a certain interval). I notice that folder datestamps seem to get updated whenever a contained file is modified, but this behaviour doesn't propagate up the tree, i.e. the datestamp of the folder containing the folder that contains the modified fil...

How do I prevent the Visual Studio debugger from focusing the window when a breakpoint is hit?

Many times I will set a break point in Visual Studio and run a process that might take seconds or a minute or two. While that runs, I will do something else, usually other coding in another window. When the breakpoint is hit, Visual Studio gains focus and my next several keystrokes go into the debugger and all hell breaks lose depending ...

WAMP Setup - Connection resets when php tries to access mysql

I'm trying to install wordpress on a server running windows 2000 (not server edition), apache 2.2, php 5.2.9, and Mysql 5. When I get to page 2 of the setup, where it tries to connect to MySQL to add the tables, the connection is reset. This isn't an isolated error because the same issue is happening when I try to log in to phpMyAdmin. ...

Python package for Microsoft Active Accessibility library?

Is there a package for Microsoft Active Accessibility library other than http://pypi.python.org/pypi/pyAA/2.0 which seems to have been abandoned (I can't seem to get the source code from sourceforge )and does not support Python 2.6. Thanks. ...

Hudson -- windows slave running a shell script.

I am trying to run a shell script lets call it fml.sh on my windows slave machine. I have installed msys. I can run the script from cmd with the following call. C:\msys\1.0\bin\sh.exe -e -x "C:\path\to\fml.sh" Now in my build pre-build code I run that very same line from within hudson I get the following response. AllocationBase 0x7...

Windows X Unix in USB communication

inHi, this question is fast, but from my point of view its pretty hard. I have been messing with implementing USB device built from MCU. So I found project called V-USB which is software-emulated USB interface for Atmel MCUs. But this is not so important. The question is, on their site, they say that using custom USB class, you can simp...

Safari 5.0 Extension Scripts Won't Run on Local Files

Hi, I wrote a very simple extension for Safari 5 that only outputs a single log message from a start script. This is the start script: console.log('start script running'); If I go to any internet page (eg. http://www.yahoo.com) the log message appears in the error console. But if I open any local html page no log message appears. By l...

Why does Windows start chkdsk at boot time?

We have a file system filter driver. It has a feature which encrypts some files. We implemented this feature yesterday, but after shipping the feature, when we reboot sometimes Windows will check the file system by running chkdsk. Has anyone else developing filter drivers encountered this problem? How can we solve this? ...

What is the current best practice for distributing a database with an app?

Platform: Windows / Database: Access / Language: C++ Several years ago I had a Windows app that uses a database and I just installed an empty database as part of the install process. The database had all of the queries and macros I needed. I am wondering what the current best practice for this sort of thing is: Do you build the databas...

Problem encoding accented characters with python

I'm having trouble encoding accented characters in a URL using the python command line. Reducing my problem to the essential, this code: >>> import urllib >>> print urllib.urlencode({'foo' : raw_input('> ')}) > áéíóúñ prints this in a mac command line: foo=%C3%A1%C3%A9%C3%AD%C3%B3%C3%BA%C3%B1 but the same code prints this in window...

Delimiter for meta data in Windows file name

I'm working on maintenance of an application that transfers a file to another system and uses a structured filename to include meta data including a language code. The current app uses a two character language code and a dash/hyphen for a delimiter. Ex. Canada-EN-ProdName-ProdCode.txt I'm converting it to use IETF language code and so...

Can OOPP (Out-of-process plugin) windowless?

Hi, I am trying to write a OOPP(Out-Of-Process plugin) ActiveX in vs2008. can an OOPP activevx plugin windowless? if so with out windowhandle how can we send signals to that window? ...

Sending a specific SCSI command to a SCSI device in Windows

Hi, Does windows have specific interface by which I can send a specific scsi command such Inquiry to scsi device ? I searched the net, found passing reference to SCSI Pass Through interface. But Its very Vague. Is there any documentation for that API on how to use it?? ...

Active windows in Windows and QWidget::activateWindow()

The Qt documentation for QWidget::activateWindow() states: On Windows, if you are calling this when the application is not currently the active one then it will not make it the active window. It will change the color of the taskbar entry to indicate that the window has changed in some way. This is because Microsoft does...

Distinguish between panning and normal screen modes in code - Windows

Hello. I am writing a full-screen 3D game and I have created a menu in which the user may select the screen resolution to match his hardware capacity. I am enumerating all the available screen modes with EnumDisplaySettingsExA like this : std::vector<DEVMODEA> modes; DEVMODEA modeInfo; int modeNum = -1; while (EnumDispl...

show Pop Up in Full Screen Player ?

Is it possible to show a window on top of the full screen flash player or the HTML5 player? e.g. the player that used in Youtube? ...

SWT browser doesn't scroll

I've implemented an SWT Browser on my Windows 7 machine as follows: Browser browser; try { browser = new Browser(parent, SWT.NONE); browser.setUrl(url); } catch (final SWTError e) { System.out.println(e); } I navigate to a page that contains the following source code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitio...