windows

Run a setup without admin privilages

I have a setup program that I want to install to a local folder. I also do not need it to write any settings to the registry. On Vista, and maybe on Windows 7, executables named similar to setup or install require admin privileges, I would like to be able to run it without admin privileges, to make sure that it does not write to the re...

Tomcat on windows writes files to Windows\Temp

I am raising multiple Tomcat services on Windows, and sometimes getting ClassNotFoundException for no good reason. After some investigation it appears Tomcat is storing class files in windows temp dir, and is getting confused when several Tomcat instances are raised simultaneously. Did anyone encounter this problem? How can we configure...

C++ key input in Windows console

I'm currently developing various console games in Windows that won't really work using regular input via cin. How can I (In a simple way using only standard windows libraries available in MSVC): Make the program wait for a (specific?) key press and return the key ID (It would have to work for all keys including the arrow keys) During ...

What's the best way to replicate the functionality of a Windows Explorer folder UI in WPF?

So I'm using FileSystemWatcher to populate and update a playlist. I want to replicate many features of Windows Explorer, most importantly: * inline rename * slow double click to rename I'm having quite a hassle doing this, so I thought, maybe there's an easier way than reimplementing the wheel? Maybe I can somehow host a Windows Explo...

How to release patches for Java programs

I've recently released a cross platform Java application. For distribution we created a NSIS installer for Windows and used a DMG for Mac (that has JarBundled .app file). We also plan on creating Linux RPMs, DEBs and tarballs. In total that's 5 different distribution methods to look after. My question is: What is the best cross-platf...

Simple CRUD work with WPF and data binding.

I'm new to WPF for Windows application development, just wanted to put that out there first. I'm using Visual Studio 2010 and .NET Framework 4.0. I'm working on a rather simple administration tool. For simplicity sake lets say I'm working with Employee data. I've created a little UserControl called UserDetail that has all the fields ...

Converting NTFS timestamps to FAT Timestamps

Hello world! I'm writing a file transfer application, and I need to copy files from NTFS to FAT drives. Reading from http://support.microsoft.com/kb/127830, I understand that a time such as #11/29/2004 7:31:06 PM, 250ms# should get translated to #11/29/2004 7:31:08 PM, 0ms# when copying to a FAT hard drive. However, what actually happen...

Implemeneting a multidock window system (like blend, visual studio) in WPF

How would you go about to implement a docking toolbox windowing system as seen in Expression Blend where you can dock toolbox windows in a lot of ways beneat each other, overlapping as tabs or as floating top level windows. My system should behave pretty much the same as in Expression Blend. Also the way I get visual cues where the toolb...

How might I obtain an IShellFolder from the active IShellView?

I'm trying to enhance a CFileDialog, and we're using the older version of it (the non-vista one that doesn't use IFileDialog). The older one does allow me to obtain an IShellBrowser, as well as (from that) the active IShellView. What I cannot seem to come up with is a way to get "What IShellFolder does that IShellView refer to?" Equal...

PowerShell Script Running as a Service Behaves Strangely

PowerShell Script Running as a Service Behaves Strangely The Project: Create a background process that determines if the on board network card is connected. If it is connected, disable the wireless network card. When the onboard network card is not connected, re-enable the wireless card. Why: Users hot-dock all the time, getting funky ...

Using data from Google Maps in a C# Program for Windows Mobile

Hi everyone, I'm making a charity Windows Mobile 6 app in C# to help those affected by Alzheimer's. The aim is for this app to let the carer set a boundary by tapping in Google maps to set points. The carer would then put the windows mobile device in the patient's hand bag or coat, so that when the patient walks out on their own, think...

sending mail with attachment in c++? (or How do I construct a MIME encoded email message that I can send to SMTP?)

is it possible to do it without any third-party lib. i can send mail to gmail with a simple socket functions. i can send files one computer to another too. But i need to send with attachment to any mail account... can it be done with smtp? (i searched in here but the answers, that i looked, are not in c++ or not on windows or not ope...

new returns NULL when initializing static global variable in windows?

I'm working on integrating rLog with our code base, and I'm noticing a problem on Windows that I don't have on linux. In a header file I have a static variable that gives me a "verbose" logging channel (one up from debug basically), defined thusly: static RLogChannel *rlog_verbose = DEF_CHANNEL("verbose", Log_Debug); There's no probl...

What would a script to replace \ with / in many files look like?

Yes, this is a really lazy question but I figure this is problem that people have often enough that someone here would have something already written to share. I have a ton of C files with #include statements using Windows relative paths. I'm working on compiling the code on other operating systems (immediately, on my OS X development m...

Reloading code-based workflows

We need to run different version of the code-based workflows without closing application. Our workflows are packet in assembly, for example, WorkflowSet.dll. Here we have a workflow Workflow1: public sealed partial class Workflow1: SequentialWorkflowActivity {… } We can create workflow instance: Assembly workflowAssembly = Assembly.L...

Tracing the arguments of an external .EXE called within a VB.net app

A program for which I do not have the source code to is executing a third-party EXE file. I'd like to find out the arguments that it is sending to the EXE file (i.e. thirdparty.exe -c "foo" -d "bar"). I do know that the initial program is written in Visual Basic. Are there any tools that I can run that will monitor the execution call a...

PHP sending emails

In my application we have a lengthy script that writes multiple records to a database, copies multiple files from one location on the server to another then sends multiple emails. Weve noticed that intermittently the process will timeout. After some debugging we noted the timeouts generally occur during sending the mail, we are using PH...

Trigger some action on Ctrl-Right Click on Desktop ( using JAVA ).

I need to write one JAVA application. The requirement is , when the user clicked anywhere in the screen ( It may be upon an icon in Desktop or upon one word in Microft word ) , my java program should be notified to do some action. How can I write such an application. ...

Problem with workflow on SharePoint email enabled document library

SO ... here is the scenario ... i have a workflow on a document library that copies a file to a windows directory ... this workflow is set to be started at the time when a new item is added to the document library ... so everything works fine when you are manually uploading files to the doc library ... but the problem occurs when we use ...

How Symfony did its command alias ?

Apologies my french english ... I would like to create an alias in Windows XP cmd, like Symfony. This code works perfectly, but resets every system boot : doskey kCLI= php C:\wamp\www\KinkamaCLI\KinkamaCLI.php I tryed to put a .bat in "start" folder, but I think it's not beautifull, and I feel it doesn't work, because I can't see th...