windows

Detect if the computer is using a mobile connection (3G/EDGE/GPRS) on Windows

I need to determine if the computer is connected to the Internet using a mobile connection (e.g. 3G, EDGE, GPRS). I found this identical question, but the accepted answer isn't very helpful to me... The System.Net.NetworkInformation.NetworkInterface class exposes a few properties, but nothing that can help me determine if it is a mobile ...

Use multiple WebBrowser tabs for 1 flex Application.

Hello everyone, I'm developing a flex application to view charts and statistic data about real-time stock price. The requirement is that 1 user can view multiple windows (or panel, or canvas) of multiple stock symbols at the same time. I want to have 1 button, when I click at that button, a new panel will be pop up in a new WebBrowser...

How to open two dialog boxes at once in C++ MFC?

Hi, Is it possible to open more dialog boxes at the same time in C++ MFC, when I press a button? How? (One for background: full-screen and semi-transparent, and one for a dialog box.) Thank you! ...

Writing apps in JScript 5.5 instead of JScript.NET

As some of you may know JScript.NET adds quite a few features to the common JavaScript language... it adds some class syntax, some type identifier etc etc.. The main reason I use JavaScript is because I love how dynamic it is, nested function calls, variables scope etc etc... All these features seem to work fine in the .NET version, how...

Is Microsoft ink and handwriting recognition built into all Windows 7 deployments?

I am trying to add handwriting recognition to my application, I see that with Windows XP the end user needs to have the Tablet PC edition for the recognition to work. However it is a little ambiguous at to the state of Windows 7 users. When I consider the deployment of my application, do I need to test for the Tablet PC edition of th...

How to compare BSTR against a string in c/c++?

wprintf(L"Selecting Audio Input Device: %s\n", varName.bstrVal); if(0 == strcmp(varName.bstrVal, "IP Camera [JPEG/MJPEG]"))... The above reports : error C2664: 'strcmp' : cannot convert parameter 1 from 'BSTR' to 'const char *' ...

Strange behaviour on Win7 embedded machine

Our application (C# .Net 3.5) works fine on WinXP machines (embedded or not). Now we move to Win7 embedded machine. If we put our application under C:\, no problem. If we put our application under "C:\Program Files" directly, we cannot launch it. Windows will popup a "... Stopped working" window. if we first put our application und...

Does anyone know how to configure eclipse NOT to copy font colors / background when doing CTRL-C

Does anyone know how to configure eclipse NOT to copy font colors / background when doing CTRL-C? Not that I would ever cut and paste code. I'm really asking this for a friend :) ...

new job choice of mac book pro or thinkpad 500

I'm going to work as java developer backend web developer at my new company. They have very generously given me the option of a mac book pro or a wintel machine. I'm a windows / ubuntu guy and havent really played with Mac OS at before. I'm kinda curious what you guys might recomend ? Obv there will be a slight learning curve with the M...

Unmanaged/native alternative for managed System::Diagnostics::Debugger::Launch function?

I have a mixed-mode application in which I want to fire up the debugger if an error is found in the internal datastructures. Strange enough, the DebugBreak and __debugbreak functions don't seem to work as expected (the .Net framework seems to intercept the breakpoint exception, leading to all kinds of nasty side effects). The solution o...

Replacing the Windows shell with a WPF app

Hi, I want to replace Windows 7 Shell (32 and 64 bit) with my WPF application which should work as a Shell. The goal is WPF application will launch my Kiosk application and provide few services. My questions are How do I replace the Windows 7 Shell by my WPF application ? Do I have to do something special in my WPF application code ...

XP Embedded attempts to start application as service

Hi, I'm having a lot of problems trying to start an application as administrator on an application I'm writing when running it on XP Embedded. The application runs as the shell for a limited user account and is touch-screen and keyboard-less with one user command being to run the touch screen vendor's calibration tool. This must be run...

RAS popup terminal window programmatically

Hi, I have a custom dialer for dial-up connections (written in delphi). It works perfectly and does a lot of great stuff... Now, i want to allow the user to configure the connection to show an after-dial terminal window as if they checked the box "Show Terminal Window" in the "Security" tab of the connection properties. I already used...

Detect registered protocols in Windows from web page using IE

Programs for MS Windows can associate some protocols with them. So when you click in browser, registered program for protocol "myprotocol" will be opened. Like "mailto:[email protected]" opens your Email programm. I have a website and want to know if visitor of my web site have registered some protocol in his system or not. So when he clic...

JAVA IPC on Windows

hey all , i want to do the following open a Named pipe using java , and extract the content of that archive (rar / zip /etc..) to a named pipe the run mplayer with the location of that pipe and play the movie , i tried open the IPC in java using this project CLIPC but , my code is freezing in the fifo.openWriter(); line FIFO fifo ...

Can anyone explain in english this piece of WMI documentation! WMI securitycenter product state

Hey guys, I am trying to decipher the productState property in the SecurityCenter.productState WMI namespace. The product state is for example an int of : 262144 - which you then look at this page of documentation decipher into an actual product state meaning : http://msdn.microsoft.com/en-us/library/bb432509(VS.85).aspx I may have f...

Safe Storage Locations for Any User, C#, Windows

I've got an application for our company that has to store settings in a global fashion so that employees with a multitude of access types can run the program. Most of our employees access the program using a Public account, which means they don't have to log on - there is a login ID called Public that anyone can use. The Public account,...

how can I get the window name? [Python]

How can I get the window name? I want to make a script where I have some keyboard event, and I want it to happens only if the window name has something in the name, like, Firefox. how can I do it? the simplest way ...

Boost + Visual Studio 2010 + Windows Platform SDK 7.1

Could someone tell me a command line switch for bjam or something else that will make boost compile with VS2010 using the new Windows Platform SDK 7.1 toolchain? It's an option you can set in a normal visual studio project. The default is v100 a variant of the platform 7.0 toolchain. Thanks in advance. ...

Where do I get Microsoft.GroupPolicy.Management.dll?

Having a look at this code http://msdn.microsoft.com/en-us/library/ee862406%28VS.85%29.aspx It says "Add the Microsoft.GroupPolicy.Management assembly to your project" but i cant seem to find out where to get Microsoft.GroupPolicy.Management from. ...