windows

SqlCipher Mingw/msys problem

I have a problem - i can't compile SqlCipher. I'm using this http://groups.google.com/group/sqlcipher/browse_thread/thread/55c6296b56bf4533/c792bbec6df7d4f4?tvc=2#c792bbec6df7d4f4 instructions (thx to Sam) but still can't compile it. I do the following: $ ./configure --disable-tcl CFLAGS="-DSQLITE_HAS_CODEC -I/usr/usr/src/openssl/i ncl...

Visual Studio Recompiles Project Every Time I Try to Run it

Hello, I have a Visual Studio 2005 solution. Every time I try to run the startup project (C++), the project gets build again, although I did not make any change. How can I get the normal, sane behaviour, where projects get built only when needed? How can I debug the problem further? Thanks, ...

Windows Services in Win7?

I am trying to make a service that spawns a desktop application, and then watches to make sure it restarts again if it is closed. . I would like it to basically spawn the process and then forget about it, allowing to act like a normal interactive application. (Apparently this is much easier to do in XP and before, but I need this for XP...

Tag a process with a string

Hi guys, I am trying to reproduce Process Exporer's feature to tag a process running on the current machine with a Comment (Please see the Comment section in the Process properties in Process Explorer). I couldn't find any way to do it with managed code, had a try with wmic utility but I wasn't able to find a way to set a property to ...

Removing file locks in Windows and Java

I have a Java program that opens a file using the RandomAccessFile class. I'd like to be able to rename that file while it is opened by Java. In Unix, this isn't a problem. Does anyone know how I can do this in Windows? Should I set Java to open it a certain way? Thanks in advance. Edit, clarification: I'd like to be able to set this...

What to use instead of getaddrinfo() and freeaddrinfo() targetting legacy Windows?

By requirement, I'm targeting old legacy Windows systems (9x branch) where getaddrinfo() and freeaddrinfo() are not available. What can I use instead of that? The code I'm using right now is extracted from the MSDN site (I'm testing it in a Vista computer): ... /* WinSock data: */ WSADATA wsaData; /* Initialize the WinSock data: */ sho...

Windows application data directory

With the environment variable %allusersprofile% I can get the directory where common settings are stored. But most programs store their settings in the sub-folder "anwendungsdaten" (German, application data). Is there a way to get the direct path to this folder? The problem is that its name is language dependent. Thanks. ...

How do I unmangle Windows filenames in Java?

From Java, I'm extracting an executable into a location specified using File.createTempFile(). When I try to run my executable, my program hangs when it tries to read the first line of output. I have discovered that if I try to run the same extracted executable from another program, it works if I specify the directory as C:\Documents a...

Is there any way to use getaddrinfo() and freeaddrinfo() and still be the program compatible with legacy versions of Windows?

Hi, in the Winsock2 library getaddrinfo() and freeaddrinfo() was only added in Windows XP and on. I know how to replace them in legacy systems, but a conditional use depending on the Windows version won't help. The application won't start in 9x with a message saying that it was linked to a missing export in WS2_32.dll. I'm using MinGW ...

What are some choices to port existing Windows GUI app written in C to Linux?

I've been tasked with porting an existing Windows GUI app to Linux. Ideally, I'd like to do this so the same code base can be used to build either the Windows version or the Linux version. I'll be doing my work on Ubuntu 9.04. After searching around, it's unclear to me what tools are best suited to help me with this. A list of loos...

Alternative Input Device(Midi) doesn't prevent Screen Saver in Winforms application

I have developed a c# winforms application whereby the user is providing input via a midi connected device. The user will go for long periods without using the keyboard or mouse. When I receive a midi message is there anything I can do to "tell" the system that this counts as user activity (ie key press). I don't want the screen saver o...

How to write a Media Center plugin like the Netflix plugin? Source code/reference samples?

I am looking to write a Windows Media Center plugin just like the Netflix WMC plugin. Once logged in, I know the streaming urls that I need to hook in to. Any source code, reference samples would be great. Found one on codeplex for swedish TV channels, but right now it's not working for some reason... Previously asked the following qu...

DMProcessConfigXML fails while loading dlls on the windows mobile 6.5.

What I want to do is uninstall my program on the device Programmatically. So I trying to use DMProcessConfigXML() as this site It seems to work well on the emulator, but it didn't work on my device. Application goes exit after calling DMProcessConfigXML() without return result code. This is a part of code. after line 2, program is ter...

"Insufficient permission" error while installing C# 3rd party application to WM Smartphone

Hi, I am trying to install C# 3rd party application to Wm Smartphone.But i am getting insufficient permission Error.May i plz know wat exactly the problem is? Thanks in advance ...

easy way to see dos command return code

Sometimes I run a command in cmd such as: fc /b file1 file2 and would like to see the return code from fc. Is there a simple way to do this? ...

Discovering maximum packet size

I'm working on a network-related project and I am using DTLS (TLS/UDP) to secure communications. Reading the specifications for DTLS, I've noted that DTLS requires the DF flag (Don't Fragment) to be set. On my local network if I try to send a message bigger than 1500 bytes, nothing is sent. That makes perfect sense. On Windows the send...

Run an application as background process

Hi there, I have developed a Java application. I want to run it as a background process. It should not be displayed as Running Application in task Manager, but it should be displayed in Processes List. Help me out. Regards, Jigar ...

Hook filtering Keybords HKEYS issue in c

I am filtering the HKEYS by using Hook filtering function, I use the following code to disable Alt+Tab, Alt+Esc, Ctrl+Esc, Windows Key if (((lParam.vkCode == 9) && (lParam.flags == 32))|| ((lParam.vkCode == 27) && (lParam.flags == 32))|| ((lParam.vkCode == 27) && (lParam.flags == 0)) || ((lParam.vkCode == 91) && (lParam....

Win32/MFC: How to find free memory (RAM) available?

Any suggestions/hints/links/tutorials would be appreciated! :) ...

How to debug command line file with symbolic data

I have a compiled .exe file (compiled with gfortran and -g option) that crashes. I can attach the WinDBG program to it using the WinDBG -I command. Funny enough it generates a stack overflow: (38f0.2830): Stack overflow - code c00000fd (!!! second chance !!!) However, the output says that there is no debugging information in my progr...