windows

How do I specify the manifest for side-by-side assemblies in my header file?

I am developing in Visual C++ 2008 using MSMQ. In Windows Vista, the application cannot locate the mqrt.dll which is found at C:\Windows\winsxs>cd x86_microsoft-windows-msmq-runtime-core_31bf3856ad364e35_6. 0.6002.18005_none_574cf1cdb624ee17\mqrt.dll. The description of the manifest in WinSxS is: <assembly xmlns="urn:schemas-microsoft-...

How to apply MVC in Windows application?

I applied MVC (Model View Control) in web application but I never applied MVC on Windows application. How can I apply it in a Windows application? If any good link? ...

Overriding system shortcut keys

A friend of mine has difficulties in using both hands in the keyboard. He always use his left hand only. He asked me to write a C# program to send key combinations to the system so that it override the default shortcut keys. For example he wants to replace LWin + D with Ctrl + L so that when he presses Ctrl + L it'll show his desktop. ...

How to know TabletPC is in 'Laptop' or 'Tablet' mode

I'm writing a Touch-enable application for DELL TX2, for text input, I need to know whether the TablePC is in 'Laptop' or 'Tablet' mode, then change the text input mode. In 'Latop' mode, don't call virtual keyboard, vice versa. But I didn't find any useful information from MS website and google. Is there any Windows API? Thanks in advanc...

How to reproduce "Show in Folder" / "Find Target" via C#

When using Chrome, if you download a file you can then choose an option (Show in Folder) which will open the containing directory and highlight the file. Similarly, if you view the properties of a shortcut you can choose the "Find Target" button for that same functionality. I have tried numerous searches, as well as looking over a dece...

Get a user's group memberships from Active Directory

How can I about getting a user's group memberships from AD, preferably using the same pattern as I use to get the user's Department property, as below? I have found several examples, but the intersecting set of all example techniques is quite small, and lacks the tightness and simplicity of this Department query: var adServer =...

nmake.exe keeps complaining about flags I'm not giving it. (U1065)

When I run nmake.exe from make I get this error: Microsoft (R) Program Maintenance Utility Version 8.00.50727.42 Copyright (C) Microsoft Corporation. All rights reserved. NMAKE : fatal error U1065: invalid option '-' But I'm not passing in '-' as an option anyplace. If I run the same command from outside of make it works correctly....

Capturing window output in another window

I am building a C++ (Qt) based application for controlling a flash based UI. Because the flash runtime leaks spectatular amounts of memory, we execute the UI as a .swf loaded in the standalone flash player separate from the command-and-control app written i C++. The C++ starts the flash player as an external process with appropriate par...

What characters are forbidden in Windows and Linux directory names?

I know that / is illegal in Linux, and the following are illegal in Windows (I think): * . " / \ [ ] : ; | = , What else am I missing? I need a comprehensive guide, however, and one that takes into account double-byte characters. Linking to outside resources is fine with me. I need to first create a directory on the filesystem usin...

How to program voice modem?

I'm looking into writing a small custom app for a small business that can utilize a voice modem on Windows to pick up a phone call and play a customized voice message based on time of call. The API on Windows that controls modems is TAPI, but it seems complex and low level that I'm not sure I can complete the app in time. Any higher ...

Starting a program fails with error code 1

Hi! I made an application and a dll, which are working this way: I have to register the dll. After registering the dll if i right click on an .exe file, the pop-up menu appears, and i have inserted into this menu one line ("Start MyApp"), and if i click there, it should start MyApp. MyApp has one parameter which is the full path of the ...

windows service to generate html?

I have a windows service (Win32 Service API) mostly designed that will generate images from data in a frequently updated text file. The idea being that these images can then be referenced by an html file to satisy a client requirement. There will also be varying text data from the file in that html. what I'm wondering is..... --- whet...

How to copy bitmap to clipboard using the win32 API?

How do I copy a buffer that would save to a ".BMP" file to the clipboard using the win32 API? I.e., I have a raw buffer of a Windows V3 Bitmap (including the header) that I can literally write() to a file and will result in a valid .BMP file, but I want to copy it to the clipboard instead. On OS X, in plain C, the code would look someth...

Inter-thread communication. How to send a signal to another thread

In my application I have two threads a "main thread" which is busy most of the time an "additional thread" which sends out some HTTP request and which blocks until it gets a response. However, the HTTP response can only be handled by the main thread, since it relies on it's thread-local-storage and on non-threadsafe functions. I'm l...

C# Set Window Behind Desktop Icons

Hi all. Assume i have an empty form 100px by 100px at 0,0 coordinates on the screen. It has no border style. Is there any way to have this positioned BEHIND the desktop icons? I would assume this would involve the process Progman because thats what contains the desktop icons. But no matter what i try... getting window handles and changi...

Is There a Way to Tell What Language Was Used for a Program?

I have a desktop program I downloaded and installed. It runs from an .exe file. Is there some way from the .exe file to tell what programming language was used to write the program? Are there any tools are available to help with this? What languages can be determined and which ones cannot? Okay here are two of the sort of things I'...

How to: get Date, Time and Time zone from single DateTimePicker Control

Hi All, I am developing an application in which I am trying to fetch Date, Time and Time Zone from single DateTimePicker control. Can anybody help to resolve this? Thanks in advance. EditV1: I am using .net framework 2.0. Now I am able to fetch Date and Time with Single DateTimepicker by setting its CustomFormat property as; dtpicker2....

The current user folder will be changed on Window Vista and 7

I have a application need to run under Administrator right, If I run it with Guest user account, after click the UAC dialog, using Windows API to get the current user folder in AP will be changed to Administrator folder, not Guest folder. How to solve it? Thanks in advance. ...

Thread dispatching - what is it?

Can someone give me a simple definition for kernel thread dispatching or just thread dispatching if there's any difference between the two? ...

Hooking into a wave-out on different platforms

I am going to apologize in advance for being extremely vague, but my knowledge in this area is somewhat limited so I don't know the neccessary "keywords" to make my point/question clear. Sorry. What I want to do is to find a way to obtain access to raw audio data as it is being output, say, when some external application is playing back...