windows

Windows Forms, tutorial?

Question: Looking for a simple, Windows Forms tutorial: Get some user input from a text box into a variable ...

ItemDataBound for a Windows Forms DataGridView?

I am binding an array to a DataGridView. I have a column containing file paths which maps to a column of push buttons. I would like to pre-process the file path so that the DataGridViewButtonColumn displays only the file name (sans the parent folders). How do I intercept and pre-process values before they are bound to the columns of a D...

How to stop script from running?

I have the following Script, more +1 "C:\Documents and Settings\Administrator\Desktop\Backup Data\import file\1.txt" > "C:\Documents and Settings\Administrator\Desktop\Backup Data\import file\2.txt" "C:\Program Files\Microsoft Office\Office11\MSACCESS.EXE" "C:\Power Play\Daily\Daily.mdb" /x "Macro1" DEL "C:\Documents and Settings\Admi...

How to protect a file in Windows

Update 3: the restrict access, using the security tab works now. (that's manually) now looking to do it programatically (using Visual C#) and also how to access a file using administrator account in a simple user account. hint - I noticed this feature in Windows, right click and use 'Execute as', enter the administrator password and then...

Getting a handle to controls in Internet explorer web pages

I have an Internet Explorer browser embedded in a Windows forms application and do not have the ability to modify the source code of this form. However, I have gotten a handle to the IE window and can perform various SendInput functions. If I click on a control how can I tell if it was a TextBox, and then how do I send characters to th...

How to remove StartMenu shortcut using C#

Hi, How can I remove a shortcut folder from Startmenu in Windows using C#, I know how to do that using this code: private void RemoveShortCutFolder(string folder) { folder = folder.Replace("\" ", ""); folder = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.StartMenu), folder); try ...

What choices do I have on MS Windows platforms for the equivalent of SUID from Unix-based platforms?

To understand what I'm asking, it's important to distinguish from among the several uses of SUID in Unix. I have a project that uses an executable in the user's PATH which is owned by the project and which has the SUID bit set. In this way, when it runs, it runs in the context of the file's owner, not the calling user. This way, it has ...

Win32 current directory, locking & shell integration

In Win32, your main thread's current working directory is set to the location the executable was launched from. My problem is that even after a call to SetCurrentDirectory() to somewhere else, the process apparently still has a filesystem object referencing this initial startup directory (verifiable with a tool like Process Explorer) - w...

What is the opposite of Wine?

What if I want to run native Unix-like applications on Windows? What's the best application out there? ...

Customizing Windows Right-Click menus with multiple levels

Hey all: I understand the process needed to customize a right click menu going through the regedit etc. However I need to the ability to go multiple levels such as in applications like WinZip. Here's a picture for clarification of what I need ...

How to make a shareware program with a free demo

I have a game that I'd like to sell with the following system: give away a demo (say, with the first few levels) and sell the full version. I'd like to make the transition to the full version as seamless as possible for the user. I've never sold anything before online, so I'm not sure how that would work (even if there were no free demo)...

how to control which proxy a internal xamp install uses

Hi We have an internal xamp install running wordpress Mu behind our firewall. I need (if possible) to control the proxy address that the server uses when it tries to talk to the internet. Can this be done if so how? Paul ...

Wanted: Cross-process synch that doesn't suffer from AbandonedMutexException

I have several threads that acquire Mutexes and then terminate. The mutexes are stored in a main repository, and are properly released when the program exists. However, when the thread that allocated a Mutex exists, the mutex gets released automatically, and subsequent acquire AbandonedMutexException (also according to the documentation...

How to configure IPython to use gvim on Windows?

This really looks like something I should be able to find on Google, but for some reason I can't make heads or tails of it. There's the EDITOR environment variable, the ipy_user_conf.py file, the ipythonrc file, some weird thing about running gvim in server mode and a bunch of other stuff I can't wrap my head around (probably because of ...

Trying to compile and debug C++ from Vim

I've been learning C++ and Allegro using Code::Blocks on Windows XP, and recently felt like learning Vim. However, I have no idea how to compile a program "manually" (i.e., without using an IDE). For compiling from within Vim, I have gotten as far as setting the makeprg to gcc, but I understand I also need a makefile. What is that and h...

Killing a "Critical Process" In Windows (C/C++)

What is the best way to kill a critical process? ...

Help! error C2040: 'HWINEVENTHOOK' : 'DWORD' differs in levels of indirection from 'HWINEVENTHOOK__ *'

I'm compiling my application on a new box (vista 64) and now it doesn't compile anymore. The compiler gives me the error in the title. The problem seems(?) to be that HWINEVENTHOOK is defined twice in windef.h #if(WINVER >= 0x0400) DECLARE_HANDLE(HWINEVENTHOOK); #endif /* WINVER >= 0x0400 */ and then in winable.h it's #if WINVER < ...

windows 7 don't include .net 3.5 why?

i set up windows 7 two days ago. But i downloaded .net framework 3.5 . i think windows 7 included .net 3.5 ...

How to tell if a network adapter is removable on Windows

Hello, community! How can I tell if a given network adapter retrieved through the Win32 GetAdaptersInfo() or GetAdaptersAddresses() functions is a removable one, like USB, SmartCard, etc? The documentation for these functions does not seem to contain any means of getting that information, so I'm assuming I have to go ask Windows for ea...

Windows implementation of Mac Spaces

I've just listened to episode 6 of StackOverflow podcast, and I just wonder, is there a free and good enough implementation of Mac Spaces for Windows? ...