windows

Web Application IPC/RPC with Client Applications

Background I'm at the planning stages of a DIY project that'll help me automate some hardware at my house. It's probably also worthwhile to mention that I've got almost no experience with web-related development. The Basics http://img7.imageshack.us/img7/4706/drawingo.png -- I can't seem to embed the diagram. In order to simplify ...

Make one sticky key not sticky on Windows

I don't use the right control key at all and I like to utilize it as a conveniently placed hotkey for some custom function which I can do easily with Autohotkey. The problem is I also use sticky keys for convenience and if I hit right control then the new function bound by Autohotkey is activated, but the control key also goes into stic...

convert batch files to exes

I'm wondering if it's possible to convert batch files to executables using C++? I have plenty of batch files here and I would like to convert them to executables (mainly to obfuscate the code). I understand that there are 3rd party tools that can do this but I was thinking that this would be a good opportunity for a programming project. ...

windows.form c# moving between forms

I am designing an installer interface for a already written program. It is my first windows.form. I see three approaches to solving my "problem" of needing multiple "screens". I can add all the labels/buttons/interface, and then hide/show them at events. Or I can close and open a new windows? Or do I somehow load my next form into the wi...

Writing Windows GUI applications with embedded Python scripts.

What would be the optimal way to develop a basic graphical application for Windows based on a Python console script? It would be great if the solution could be distributed as a standalone directory, containing the .exe file. ...

how can I get the file version on the Internet but not download it ?

I get a file url,for example, http://cidian.youdao.com/download/YoudaoDict.exe how can I get it's version but not download it ? nots 1: if you download the file first on your computer,there are many ways to get it's version, for example ,you can use the window tools "filever.exe" to get the version. but i want to not download it ,at...

Application hangs or crashes when unloading WinInet

I have a VC++ application that uses WinInet. It does the following: calls LoadLibrary() to load WinInet.dll calls InternetAttemptConnect() calls InternetOpen() calls InternetConnect() providing INTERNET_SERVICE_FTP as dwService If the last call fails (usually because of wrong password passed) InternetConnect() returns 0 and this shou...

Listing nfs shares exported on windows

I want to view the nfs shares that are exported on a windows server from a linux client. I know how to view the cifs shares(by using samba's "net rpc share .." command). How do I view the nfs shares? ...

how do I print an itf barcode in c#

I need to print and interleaved 2 of 5 barcode (18 digits no checksum) using GDI+. I have done this for code 128 barcode using some code found on web. The barcode scanner unfortunatley does not read code 128 so I have to resort to ITF barcodes. Thanks, Ken ...

Use Windows Explorer in .NET code?

Hi, Does anyone know if it's possible to use the bits and pieces of Windows Explorer in .NET code? That would be nice, for example, to write file management forms in other programs, and get that to look just like the explorer, and "follow" the different Windows versions. ...

Calendar UI widget for wscript/vbscript

I'm a newbie to windows scripting. Is there a Calendar UI widget which I can use from wsh to get user input? I basically need to get a Date from the user. ...

environment variables propagation on Windows system...

It is possible to propagate in already opened application the value(environment variables of Windows) of a variable of Windows after its creation or its modification without having to restart the applications which turn? How to? Perhaps, using server fault to post a such question would be better? ...

System-wide focus

Is it possible to get HWND of currently focused window? For the whole windows station, not the current application. Target application is Win32. I can get current window using :GetForegroundWindow() however, this is the main window only. I can enumerate child windows, but how do I determine if it's focused? ...

How to delete folder into recycle bin in C++

I am programing under C++, MFC, windows. I want to delete a folder into recycle bin. How can I do this? CString filePath = directorytoBeDeletePath; TCHAR ToBuf[MAX_PATH + 10]; TCHAR FromBuf[MAX_PATH + 10]; ZeroMemory(ToBuf, sizeof(ToBuf)); ZeroMemory(FromBuf, sizeof(FromBuf)); lstrcpy(FromBuf, filePath); SHFILEOPSTRUCT FileOp;...

Need access to "NtSetUuidSeed" from a non-LocalSystem process

I was trying to get a Uuid via NtAllocateUuids or simply calling UuidCreateSequential, but Windows wasn't able to get an Ethernet or token-ring hardware address for my laptop. And so, when the system is booting, windows sets the UuidSeed to a random number instead of a given MAC. --> uniqueness is guaranteed only until the system is next...

System.Threading.Timer

Hi I am new to VC++ .net programming. Please help me out how to use System.Threading.Timer in a windows service VC++ .net code. I tried using form.timer and system.timer class but as it turns out it's a known windows bug and it won't work reliably. I am not able to use system.threading.timers. Please give an example. Nitin ...

Dimming screen around dialog

A popular feature in many applications - dimming a screen around a modal dialog. I need to implement this feature on Windows Mobile, C++. The main wnd is fullscreen, but contains many subwindows. How can everything be dimmed around specific rectangle(bounding required modal window) ? ...

How to create focused ImageButton in Windows Mobile application?

I have Windows Mobile 6.0 application. I have ImageButton control given by Microsoft. I want my ImageButton control to have focus border like any standard button. How I can do it? Thanks in advice! ...

c# cross-thread help

I've got some backgroundworker threads that are working on calculations or saving data. Every time a thread is done working I'm first adding a message to a static messagelist and then I'm showing this in a richtextbox. The message contains the hour, a label, the message and a message type. This message type I'm using to show the message...

Why does Windows Installer display a popup for each user at first login?

I have an MSI that I created using a Windows Installer project in Visual Studio 2008. It installs COM dlls, that were built using VB6 and just packages them up on the build server. We install it on several servers using an admin account. When other administrators log onto the server and launch a program from the package, we get a dialo...