windows

How to show another window from mainwindow in QT

Platform: QT, Windows XP I am new to Qt. I want to show another window(what to do to open it as dialog) from mainwindow. I did "add New Item ->Qt Designer Form Class", named it say MyWindow. But how to show this MyWindow from mainwindow ? ...

AJAX Testing Tools

I am looking for Ajax testing tools . is there any free tools avilable for testing ajax Edit 2 : apart from firebug is there any other tools ;) ...

Using default printer source tray

In one of my apps I offer the user the ability to change the source tray used when printing. This is straight-forward enough - you modify the dmDefaultSource member of the DEVMODE structure, call ResetDC and all is well. However, I now want to use the default source tray as set on the printer's control panel (ignoring whatever the defa...

Closing child windows in Cocoa when the main window is closed

I'm a Cocoa newbie so it is likely that my approach is wrong but .. I have an app which opens several child windows (after the main/parent window has been loaded) using NSWindowController and InitNibWIthName. This works fine. But when I close the parent window (using the red x) these remain open and prevent the app from closing until t...

How can I display an operating-system environment variable from within Excel?

I have an application written in Excel plus a bunch of C++ / Python addins. The location of the various config files used by the addins is determined at startup time by a number of environment variables. I'd like to debug a problem related to these environment variables by the most direct possible means: Can I simply type in an Excel f...

Page File Usage

I run a script which does text manipulation on the files system. The script runs on text files ( .h, .cpp ). As the script runs i see that the PF usage increases up until it reaches the amount of VM allocated for the page file. Is there a way to flush the VM during the run or after it? I have opend another question regarding it ( tho...

Custom WM profile - issues with codec

Hello I create my custom WM encoder profile. The reason I need a custom, non standard WM profile is that I need that the video resolution must be the same as input video stream. I created below profile but after I encode my video and audio with it, the WMP while loading says that the WMV1 codec is not found and prompts me for downlo...

What is the correct way to dynamically set environment variables before running Excel?

I have a bunch of Excel addins which are configured by an environment variable. Normally these are set in the registry on a system-wide basis. When I want change the value non-dynamically I go to: my-computer -> properties -> advanced -> environment variables -> System variables I have verified that when I set an environment variable ...

IP security policy on windows 2003

Does anyone know how I can: create IP security policy manage IP filters and IP filter actions PROGRAMMATICALLY on windows 2003? Not use Microsoft GUI utility. I tried to achieve this by programming with windows registry, all data I need that is under HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\windows\IPSec\Policy\Local but I h...

Windows batch file - check if file has been modified

I'm configuring a windows machine to continuously run a powerpoint presentation. The ppt file is located on a samba share (windows file sharing) and will be updated periodically. I need a way to make a batch file that will restart the ppt slide show if the file has been changed. The batch script will run on a a regular interval, and w...

how can I get the set of open handles for all processes

I would like to know if a file is open by any process (including the caller) There are a number of suggestions already posted, which tend to revolve around trying to open the file exclusively and catching the exception. This has not proven to be a fool-proof method in my instance. I beleive in my specific situation I can get by with s...

How can I communicate between two C++ MFC plugins?

I have a plugin for a c++ MFC app. I'm working with the developer of another plugin for the same app, that's trying to get notifications of events in my code. Both plugins are in the form of c++ dlls. How can I pass messages from my plugin to his plugin? The solution needs to be robust to mismatched versions of our two plugins, as we...

CMD Script: How to close the CMD

Hello all, I have created a small command that will let me launch Internet Explorer. However, I wish to close the small command prompt that shows up when I launch IE. How can I do this? This is my current code: "%ProgramFiles%\Internet Explorer\iexplore.exe" http://localhost/test.html PAUSE I am guessing if I take out the Pause. It w...

Usability of applications without the traditional "menu" bar

I've noticed recently that it seems to be a trend in Windows applications to no longer include the menu bar in an application (the "File Edit ..." menu), instead having the functionality linked to icons seemingly randomly spread around the application window. for example: IE8, Windows 7 media player. Is there any usability evidence dri...

Teaching a layperson to write a website

Background. An intelligent marine ecologist student would like help with her University-hosted project website. Proposed Solution. I installed an open source website authoring tool (Amaya) on her Windows-based laptop and began to teach her to craft websites. Result. Amaya is too complicated, too buggy. CSS and HTML are too complicated ...

Win32Api - Window Name Property

Is there any way to get a control's name through win32api? (c++) I'm talking about the property that in C# is 'Name', like 'frmMain', or 'btnNext'. Is there any way to retrieve this data through the win32API? I've tried GetWindowInfo() and stuff but I think I'm not heading in the right direction.. thanks edit: I'm iterating with Enu...

How to create local broadcast of webcam feed

An application I am using can embed a streamed video from a URL. So I would like to use my webcam feed by broadcasting to http://localhost%3APORT On Windows I think Windows Media Encoder will do this. But is there a more lightweight solution? Right now I am just looking at Windows but am also interested in Linux. ...

UDP multicast using winsock API differences between XP and Vista

Hi, It seems to be that the implementation required to set up a UDP multicast socket has changed between windows XP and windows vista. Specifically: Under windows XP, you must call bind() before you can reference any multicast-specific socket options. However, under windows vista, you must not call bind() when dealing with multicast s...

How to enumerate audio out devices in c#

I would like to know how to get a list of the installed audio out devices (waveOut) on a machine OS: Windows (XP, Vista, 7) Framework: .Net 3.5 Language: c# When iterating through this list I would like to get information like Identifier, Manufacturer, ... per device. Any hints? ...

Slick Looking UI for Windows-based Desktop Kiosk App!

What are some of the good options for doing a slick looking UI for a windows-based kiosk application? Some of the ideas I have so far: Flex Application WPF Application Hosted Internet Explorer based App My constraints are: Choose the most mature technology with A large developer base and community Easy to maintain and enhance You...