windows

Painting directly on the Windows desktop

I'd like to play animations on the Windows desktop without relying on 3rd-party products such as StarDock DeskScapes or Windows DreamScene. What APIs should I look into? ...

install/uninstall a Windows Service

Hello everyone, I have created a Windows Service project using VSTS 2008 Windows Service type project and now I want to write scripts to install/uninstall it using PowerShell. Any reference samples or documents? thanks in advance, George ...

Install Shield 2009 Premier : Install Windows Installer 3.1 or 2.0 (best fit for system) with any sysem restart

Basic MSI project, from release wizard I chose Install Windows Installer 3.1 or 2.0 (best fit for system), extract from setup.exe. When in installation, after installing Windows installer system restarts. Can this restart be stopped anyway? ...

Weird Makecert problem

I have a WEIRD certificate problem with makecert and it is driving me crazy. I created a root certificate with: makecert -e 12/31/2222 -a sha1 -len 4096 -n "CN=RootCA" \ -r -sv RootCA.pvk RootCA.cer Then I went on to create my client/server certificate (mutual authentication): makecert -e 12/31/2222 -a sha1 -len 4096 -n "CN=...

About RTC(system clock) issue in Win7

I encountered a very very very strange issue, if My SW is still running in Idle mode on Win7, the RTC(system clock) delay 25 sec during 3 days, I addressed it's WM_TIMER issue. If I remove the timer, the issue will disappear, but I really want to know how to avoid it and why. Thanks. ...

global keyboard hook in windows mobile 5 or above (smartphone platform), how?

so, i guess i must do it in c++, anyone know about this problem? i already searching everywhere and i found some articles about keyboard hook on windows ce, windows mobile is windows ce, isn't it? another questions: which free compiler, ide for windows mobile i could use? ...

How to programmatically convert SVG to PDF on Windows?

I'm looking to programmatically convert SVG to PDF documents on a server. What are my options for doing that on Windows? I've seen links to Inkscape, Batik, and svg2pdf, but I'm not sure if these can easily be automated to perform the conversion on a Windows server. There's an unusual solution here which involves automating OpenOffice ...

Is it possible to use a 32-bit ODBC driver with a 64-bit application on windows?

I have a 64-bit application and an ODBC-driver which only comes in 32-bit-flavour. Is there any way to have the application connect to the datasource through the driver? I realize the short answer is NO, related to 64-bit applications not being able to load a 32-bit dll, but I am looking for a slightly longer and more positive answer. ...

Limit number of lines in .net textbox

I am using the winforms textbox with multiline option ON. I want to limit the number of lines that can be entered in it. User should not be able to enter lines more than that. How can I achieve that? ...

Accessing Windows system variables in Java 1.4

What is the best/foolproof way to get the values of environment variables in Windows when using J2SE 1.4 ? ...

Debugging without a debugger

I have some crashes in some C code, built without debugging symbols, and I have only a backtrace with the absolute addresses of the call stack. This is on windows (64 bits). I am more of a linux guy, so I am a bit lost at how to look into debugging this - on Linux, I would run the code under valgrind, but AFAIK, no such tool exists for w...

Validating WinForms TextBox (in C#)

In TextBox_Leave event i need to check whether numbers entered in textbox is in serial number or not.If it is not in order then i need to display a message as "number" is missing For example : In textbox i have entered 3 and click tab : I need to display message as "Number is not in order , number "1" and "2" is missing " ...

How to make your software able to run only when the original CD is present in CD Drive

How can I restrict my .net based windows application to run only when the original CD is present in CD drive. Also the user shouldn't be allowed to create copy of CD. ...

Where does Subversion save to?

I'm learning to work with SVN using Visual Studio.NET. Everything works fine and all but I couldn't figure out something: I have my original source code at c:\source I created a repository at c:\repo (svn://localhost) I added my solution to repository using VS.NET at svn://localhost/MyProject/trunk I checked out a working copy from r...

detect client process termination from EXE COM Server

I'm writing an EXE COM Server that exposes a class that lock a system resource. In normal execution the client release the resource (the COM executable shutsdown a couple of seconds later. In abnormal execution, the client app crashes, leaving the com sever with an instance having a positive reference count. The COM executable runs for ~...

Windows 7 & VB Classic Code: Any runtime issues?

Microsoft has promised that VB6 code will continue to work on Windows 7, but has anyone noticed any gotchas specific to running VB6 code in the Windows 7 RC? And for that matter, any issues with COM objects and ActiveX controls outside of VB6? I remember Microsoft saying that they'll ensure THEIR controls continue to work and end it at...

Correct behaviour for tray icon click?

When an application adds an icon to the system tray and minimises to it, there must be a way to restore it. However, when it comes to restoring the window I'm not sure what the 'correct' behaviour is for applications. Do I restore on a double click, on a single click, or not at all? What's the Windows standard? ...

PHP new COM("word.application") SaveAS causes "Disk is Full" Error

Hello, I have a PHP script running on XAMPP in Windows XP that will open a .doc file and then save it as a different copy. This was working fine earlier on, but out of nowhere the error message keeps appearing. $path = "c:/xampp/htdocs/"; com_load_typelib('Word.Application'); $word = new COM("word.application") or die("Unable to instan...

Is there a good GUI Mercurial Client for Windows?

Other than Tortoise HG, what is a good GUI client on windows? I've already looked at: http://mercurial.selenic.com/wiki/OtherTools ...

How do I add CRRedist2008_x86.msi to Visual Studio Deployment Project?

I need to add CRRedist2008_x86.msi to my deployment project as it is a requirement for my app. However, I want it to run automatically. I don't want it to be just added as a file and then the user has to click on it for it to run after my app installs. Can someone guide my on how to do this? It seems like it should be very easy but ...