windows

Where can I learn to build desktop applications with C#?

My background is in web programming, mostly scripting with Perl. And I've recently been tasked with creating a desktop application. I'm wondering, where can one learn such concepts like making executables, what DLLs are for, how UIs are made, what threads are, etc. I already have C# in Depth by Jon Skeet and C# in a Nutshell. I'm not wo...

How do I retrieve a list of logon/logoff/lock/unlock times in Windows?

Is there any way to get a list of times that a user logged on, logged off, locked, or unlocked their computer for the past week or so without adding a service to track it as it happens? Does Windows even keep that information for that long? ...

Bug Tracking for Windows and SVN

I'm working as part of a volunatry team creating an open source product with a permissive license. We are currently using Visual SVN Server/TortoiseSVN for source control and TeamCity for our continuous integration builds. I would like to add a bug tracking component into the mix that will integrate into SVN. Ideally, I'd like to use Fo...

In Windows cmd, how do I prompt for user input and use the result in another command?

I have a windows bat file which I would like to accept user input and then use the results of that input as part of the call to additional commands. For example, I'd like to accept a process ID from the user, and then run jstack against that ID, putting the results of the jstack call into a file. However, when I try this, it doesn't wor...

What is the best inline file comparer for Windows?

My Source Safe file comparer (diff) doesn't say where in the line there are differences. Which tool would I use for that? And before someone tries to move it to SU, please note that we developers rely on these diff tools more than anyone else. ...

Programatically press a button on another application (C, Windows)

I'm trying to use the following code to press a button on my other application: HWND ButtonHandle; if( (wnd = FindWindow(0, "Do you want to save?")) ) { ButtonHandle = FindWindowEx(wnd, 0, "SaveButton", "&Save"); SendMessage(wnd, WM_COMMAND, MAKEWORD(GetDlgCtrlID(ButtonHandle), BN_CLICKED ), (LPARAM)ButtonHandle); } It doesn...

What are the best free tools for reverse engineering on windows platform?

Are there any good free tools? I would appreciate easy scripting with preferably python, ruby or some other higher level language than C. Ollydbg is my current favourite, but I haven't found good scripting interface plugins for it. I've also tried older version of IDA pro, but I'm not so fond of it. ...

Where you you store your setting.xml?

For several of our applications we use an application configuration file. It usually just stores some directory paths and a few universal settings. We usually save it in the application directory (C:/Program Files/MyAppName) One problem we see is users want to edit this (from the application) while logged in as a user that doesn't have ...

What's the state-of-the-art in Python programming in Windows?

I'm looking to set up my development environment at home for writing Windows applications in Python. For my first piece, I'm writing a simple, forms-based application that stores data input as XML (and can read that information back.) I do want to set up the tools I'd use professionally, though, having already done a round of didactic p...

if wpf app is not responding, then auto restart

I have a WPF application that occasionally crashes, and say "not responding". Is there a way to detect if the program is not responding? And if so, restart the WPF application? This will be a temporary fix until the bugs are fixed. ...

How to recover from git-svn putting a different cased dulplicate file in the repository?

Git-svn allowed for a duplicate filename, just with different case, to be added to our subversion repository. On Windows this meant that subversion could not checkout the file, complaining of a duplicate. Another developer deleted the incorrectly cased version from the repository. Now when trying to do a git-svn rebase I get a "could n...

Is setting parent for a window from different process correct?

I have two applications having two different top level windows: App1 -- Window1 App2 -- Window2 Now, I am creating a Dialog Dlg1 in App1 and I want to set window2(App2) as a parent window. ( That is because I want my Dlg1 to come on top of Window2 ). I created the dialog by setting Window2 as parent. It worked. But is it the correct ...

Vista IPsec subnet Policy problem

I have a strange problem with Vista IPsec that I am hoping someone can help with. The exact setup below works fine on XP and Windows 7, but not on Vista for some reason: I would like to setup an IPsec tunnel between Windows and a Netgear router so that I can communicate between Windows box and the LAN side (192.168.1.0/24 below) of the ...

Should a windows Installer create desktop shortcut icons?

I hate auto-created desktop shortcut icons, but some folk seem to think that unless your installer clutters up your desktop, it hasn't worked correctly! Are there definite guidelines on this for Windows , or is it wholly personal choice? (Having a "Leave clutter on my desktop?" checkbox in the installer is one option, but to my mind, t...

Web login using windows credentials

We have an intranet site on our corporate network (SharePoint 3). If I look at it via Internet Explorer - I'm already logged in. If I look at it using Firefox I have to enter my windows username & password. My questions is this: Why is there this discrepancy between the browsers? Does Microsoft have some proprietary plugin in IE that c...

How do I capture the enter key in a windows forms combobox

Hi! How do I capture the enter key in a windows forms combo box when the combobox is active? I've tried to listen to KeyDown and KeyPress and I've created a subclass and overridden ProcessDialogKey, but nothing seems to work. Any ideas? /P ...

Intranet website authentication using windows logon

I'm building an internal website in Perl and I would like to get it to use Windows credentials for authentication. My research so far has turned up a lot of keywords: Kerberos, LDAP, NTLM, etc, but no solid information. Anyone got pointers or good tutorials? Thanks. ...

How can I access a subversion repository using a local path in Windows?

I have CollabNet Subversion server and client installed, running off of Apache that came with it. From the command line on the server, I can easily access the repository using a path like http://server:port/svn/repository but I can't access it using its actual location on the disk, like c:\repositories\repository I just get "[path]...

How to compile & use GLib with MinGW

I want to use the Gnome GLib in a Windows environment using the free MinGW compiler to develop in C. The problem is, I have absolutely no idea how to compile this library. Would any of you please explain what tools are needed to accomplish this and what instructions need to be followed? ...

How can I script resetting the mouse pointer after an application fails to reset it?

A friend of mine has to use an internally-written Windows application to perform part of their job. Something he has noticed is that the app does the bit where it changes the mouse pointer to an hourglass when it's working, sets it back to normal when it's done, etc. However there appears to be a bug where in some circumstances the mo...