windows

Handling streamed data via pipes

A Win32 application (the "server") is sending a continuous stream of data over a named pipe. GetNamedPipeInfo() tells me that input and output buffer sizes are automatically allocated as needed. The pipe is operating in byte mode (although it is sending data units that are bigger than 1 byte (doubles, to be precise)). Now, my question i...

Installing Fabric On Windows (Error No Module Called Readline)

I'm trying to use the Fabric 0.1.1 deploy tool (http://docs.fabfile.org/) on Windows and we're running into an issue with the readline module. I've been through various threads but can't seem to solve the issue. It's important because we can't deploy applications from Windows based machines. C:\Documents and Settings\dev\Desktop\deplo...

Disable Control+Alt+Delete without modifying GINA?

How do I disable Ctrl+Alt+Delete sequence without modifying GINA or just blocking out Task manager? ...

How to use HTTPS with HttpReceiveHttpRequest()?

I'm using the Windows HTTP API to process web service requests in C++ (not .NET) and everything works just fine for HTTP requests. When I change the URLs I'm expecting with HttpAddUrl to https://example.com:443/foo/bar my tests from Internet Explorer no longer connect. My code does not get called at all and the calls to HttpReceiveHttpRe...

Detecting application hang

I have a very large, complex (million+ LOC) Windows application written in C++. We receive a handful of reports every day that the application has locked up, and must be forcefully shut down. While we have extensive reporting about crashes in place, I would like to expand this to include these hang scenarios -- even with heavy logging...

Make a tkinter window appear over all other windows

#!/usr/bin/env python # Display window with toDisplayText and timeOut of the window. from Tkinter import * def showNotification(notificationTimeout, textToDisplay): ## Create main window root = Tk() Button(root, text=textToDisplay, activebackground="white", bg="white", command=lambda: root.destroy()).pack(side=LEFT) r...

How to make a Windows Service terminate when one of its sub-threads terminate

in the ServiceStart() call of a windows service, I create a thread and start it. Thread1 = New TThread1(false) In the Execute procedure of the subthread, there is a loop that runs forever and does that the service is supposed to do. The problem is that when I get an error in this thread, I want to terminate the thread, and stop the ser...

How to lock pages in memory using WinAPI?

I need to prevent application's memory pages from being swapped out of RAM on Windows. Is there a WinAPI function equivalent of POSIX mlockall() to achieve that? ...

Not able to access network drive from VB.net Windows Service

Hello, I have a windows service developed in VB.net. This Windows Service every night at 8 PM picks a file from copies a file from my C:\ftpDocs to Y:\FtpDocs folder. Y: is a mapped drive which is \sourceServer\Output files. when I run the same code from VB.net Windows Application instead of windows service it is working absolutely fine...

Can't compile with zlib dependency on Windows?

I'm trying to port a program that uses zlib to Windows with MSVC. Unfortunately, though, after many hours of trying I can't seem to get anything referencing zlib to run. Here's a dummy program I'm using to test whether zlib can run: #include <zlib.h> #include <stdio.h> int main(void) { z_stream zst; zst.zalloc = Z_NULL; zs...

Keep getting gcov error when trying to run lcov in Windows command line

Hi all: I was wondering what else is actually needed in order to run lcov in windows command line? Every time when I run perl lcov, I always get a reminder or errors similar to the following: geninfo: ERROR: need tool gcov! I looked into my bin directory, and couldn't find a gcov.exe. I normally do perl genhtml filename to get a ht...

How can i be able to run a visual studio 2008 application on linux plateform?

How can i be able to run a visual studio 2008 application on linux plateform. is there plugin that can convert my project exe to linux run able file? ...

Recommend a PDF Printer Driver

I'm writing a PDF viewer/annotator for Windows and require a PDF virtual printer driver. Can anyone recommend one? It needs to be brandable, so it doesn't mention the 3rd party vendor's name on it, just our name. In fact it could ideally be so simple it featured no branding. NovaPDF looked promising, but they expressly forbid anyone cr...

Using Qt in a pre-existing x-platform project?

I have an existing cross platform project that runs on Mac, Linux and Windows. Now, I want to add a 'native' UI to it - the ability to show some popup windows (to request user credentials) and perhaps FileOpen dialogs. By native I mean I want to use the systems build in file-open dialog - so on the Mac the mac file finder is shown and ...

help: Call C# winforms dll from VB6 project?

I have a VB6 project(windows application) and I have to redevelop a module in the existing VB6 project in C#.net. The module that I develop in C#.net should be a dll and should contain some windows forms. I was able to successfully call a c# console applicaiton dll from my vb6 project but I am facing issues when i try to call a C# clas...

How to programmatically set volume in Windows, Mac and Ubuntu?

I'd like to programmatically set volume in Windows, Mac and Ubuntu using C/C++. Command line also can but C/C++ preferred. Thank you in advance! ...

Ant exec - cannot run program 'start' CreateProcess error=2

Hi I can't run the windows 'start' using ant exec. Ant version 1.7.1. Here is sample build.xml to recreate the problem <project name="test" basedir="." default="test-target"> <target name="test-target"> <exec executable="start"> <arg line="cmd /c notepad" /> </exec> </target> </project> getting t...

Which headers should I not use if I don't want my program to be linked with any of msvc*.dll's ?

Which headers should I not use if I don't want my program to be linked with any of msvc*.dll ? At the moment my application uses: kernel32 user32 shell32 msvcp90 msvcr90 I want to get rid of the bottom two files. I don't mind if I will have to rewrite certain aspects of the program. Because I know if you code in C and then link it ...

A Reliable way to Identify a computer by its ip address

I have a network of computers that they will connect to the a server with DHCP, so I don't know what Ip address a computer will get when I connects to the server. If 192.168.0.39 for example is connected to the server can I identify the real computer behinde this ip address? ( I can install an external application on each client in order...

SQL Server Security Configuration Options for Windows Desktop Client/Server application

I am developing a windows desktop client/server application in .NET where the client application connects to SQL Server Express 2005 via the SQL native client and a connection string. The client then executes SQL over the connection on the database directly (no stored procedures). How can I configure SQL Server (or windows) security in...