windows

windows service

I need to write a windows service which executes an application after a certain amount of time. I have checked out the code in MSDN and found an example in which the System.ServiceProcess.ServiceBase class is sub-classed. I did the following. created a new C# console application copied the code from the MSDN example Run I get the fo...

System calls on Windows

Hi, I just want to ask, I know that standart system calls in Linux are done by int instruction pointing into Interrupt Vector Table. I assume this is similiar on Windows. But, how do you call some higher-level specific system routines? Such as how do you tell Windows to create a window? I know this is handled by the code in the dll, but ...

Recommend a dedicated Windows Server Host

I will soon have the need to purchase dedicated windows server hosting. I'm looking for a higher quality of web hosting, so I am not adverse to spending more for a better/more reliable host. I've heard some good things about RackSpace - anyone else have opinions of good hosts? Again, quality is more key for me than price, but price doe...

Does GTK+ on Windows and OS X use the native widgets or are they emulated?

Do GTK apps look native in those environments? ...

How to identify deadlock conditions in a third-party application?

I am using a third-party application to handle batch CD audio extraction via multiple FireWire attached devices, but the application frequently (though non-deterministically) hangs during the extraction. I suspect that the multithreaded application is deadlocking over some shared resource. The developer, however, suspects the problem lie...

mysqldump generating an empty file

Hello all! Im trying to use mysqldump like below: mysqldump -hlocalhost -uadmin -padmin shop> D:\b2\shop3.sql When i execute it in command prompt, the file shop3 is generated with all the tables from the shop database. But, when I use it in my php file like below, it generates an empty file. $cmd = 'mysqldump -hlocalhost -uadmin -pad...

How to hide and disable cursor globally?

I have two questions: How to hide cursor for all programs? I tried to hide the cursor by using ShowCursor, but it only works in my program. The cursor still appears when moving cursor outside of my program. How to disable mouse operations for all programs? I use SetWindowsHookEx to hook mouse and prevent other programs to processing th...

How do I tell cmake to do these two steps to use winpcap?

Quoted from here: If your program uses Win32 specific functions of WinPcap, remember to include WPCAP among the preprocessor definitions. If your program uses the remote capture capabilities of WinPcap, add HAVE_REMOTE among the preprocessor definitions. Do not include remote-ext.h directly in your source files. Has anyone managed t...

How to resolve location of %UserProfile% programatically in C++?

I'd like to find the directory of the current user profile programatically in C++. ...

Why can't nvcc find my Visual C++ installation?

I'm running Windows 7 Pro x64 on a Core i5 with a NVIDIA 3100m, which is CUDA compatible. I've tried installing both the 32-bit and 64-bit CUDA toolkits from NVIDIA, unfortunately from with either of them I cannot compile anything; nvcc says "cannot find a supported cl version. Only MSVC 8.0 and MSVC 9.0 are supported". I have the x86 ...

[C# Thread] I'd like access to a share on the network!

Some Details I am working with VisualWebGUI, so this app is like ASP.NET, and it is deployed on IIS 7 (for testing) For my 'Web Site', Anonymous Authentication is set to a specific user (DomainName\DomainUser). In my web.config, I have impersonation on. This is how I got my app to access the share in the first place. The Problem T...

What's the purpose of the lua "stub" dll for windows.

I'm looking at incorporating Lua into a C++ project, and am a bit confused by the presence of the two binaries (lua51.dll and lua5.1.dll) in the distribution from Luabinaries. According to the docs... In Windows your library or application must be linked with a stub library. A stub library is a library with only the function d...

WCF Windows Service Monitor and process emails

Hello, I need your suggestions in solving this issue. Here is the requirement. We have a Microsoft Exchange server and we have a service email account [email protected]. We have scanners all owner the company when a user scans a document and email is sent to [email protected] as attachment. Now I need to write a Windows service which...

Windows 7 catch sleep/suspend messages

I'm wondering if it's possible to catch Windows 7 Sleep/Suspend Messages. http://stackoverflow.com/questions/727154/cant-catch-sleep-suspend-messages-winxp ...

How can I get network speed in Windows Mobile?

when i access webservice,How can I get windows Mobile Application's network speed? ...

Make WebStart Java desktop application to start on system startup on Windows and Mac

I developed small cross-platform (Windows and Mac) SWT desktop application. It is distributed with WebStart. So far so good, everything works. I've got a new requirement to make my app start on system startup (with no user interaction). What is the best way to accomplish that? In JNLP file I've got this: <shortcut online="false"> ...

Windows GUIs for git (Updated)

I am aware of this question, but it is a bit old now, and some of the answers seem outdated. Question: please write one answer per GUI you have used, including pros and cons (for example, as far as I can tell, with git gui, you can't manage the stash). ...

How do I use Python to prevent a file from being copied?

I have a file that I need to "protect" so that it cannot be copied! I am using Python on Windows XP. I think it may just be changing file permissions?? ...

I am using Python on Windows. How do I delete my script after it is run?

I have written a Python script and compiled it into a MS Windows EXE file. I can modify the code, but how do I make it remove itself after running? ...

SvnDumpFilter 2,3: Error parsing header. How to fix?

I use SVN from Collabnet, 1.6.9 version. I tried to separate my project on two parts with SvnDumpFilter and encountered an error because some folders (includeing the one I want to separate) had been moved. Then I googled that SvnDumpFilter 2 and 3 can solve this problem. I tried to use them but in both cases encountered an error: Error p...