windows

Create a plug in for server manager

Hello. I am completely new to Windows programming and I am trying to find out if it is possible to create plugins for Windows applications. Specifically I am wondering whether it is possible to add an option under Action (in the server manager) such that some specific functionality is applied each time I the user clicks the option. I a...

Is There A System Defined Environment Variable For Documents Directory?

I know about the %USERPROFILE% system defined environment variable on Windows XP (and Vista and Windows 7). Is there a system defined environment variable pointing to the location of the "My Documents" directory? On XP by default it's %USERPROFILE%\My Documents and on Win 7 it's %USERPROFILE%\Documents. I just wanted to avoid having t...

What do I use to read from STDIN/write to STDOUT of a child process?

I have an executable which reads from STDIN and output goes to STDOUT. I need a Perl script which will fork this executable as a child and write to STDIN of that child process and read from the STDOUT. This is required for Windows. Any ideas or suggestions? ...

How to add security attributes for non admin rights account in creatnamedpipe method of win API

I am creating a named pipe in windows service running on local syastem account with security attribute as Intptr.Zero in CreateNamedPipe() method of Windows API. The problem is that this named pipe is not accesible to the user account running the client application and calling CreateFile() method. Now I have googled a lot and found ou...

libeio on windows

What would it take to port libeio to windows? ...

run perl -e from inside perl script in windows

I need to run the following command from inside a Perl script in Windows. The code can't be simpler than this: #! C:\Perl\bin\perl perl -e "print qq(Hello)"; I save this file as test.pl. I open a command prompt in Windows and run the following from the c:\Per\bin directory. When I run it as perl test.pl, I get the following result: ...

Global variable destructors not called, where to start?

I'm faced with the problem that my applications global variable destructors are not called. This seems to occur only if my application successfully connects to an oracle database (using OCI). I put some breakpoints in the CRT and it seems that DllMain (or __DllMainCRTStartup) is not called with DLL_PROCESS_DETACH, thus no atexit() is ca...

How to iterate through range of Dates ?

Hi, In my script I need to iterate through range of dates given the start date and end date. Please provide me guidance to achieve this using perl. Thank You ...

Where should I save an xml file so it can be written to by a service when Windows is logged off?

Hi all, Where should I save an xml file so it can be written to by a service (written in C#) when Windows is logged off? Thanks Steven ...

Looking for unix style 'getopt' command line parsing in a windows/dos batch file

Can anyone help me find something to parse command line args in a dos batch file like one would do in a unix shell script using getopt/getopts? It doesn't have to be all posix-y; just something that I can specify what switches I expect, which of them require/allow an argument. They don't need to be "long" switches; single characters wi...

Letterboxing AND Scaling in XNA on PC

Is there a way that I could basically develop my XNA game at 1080p (or 720p) as my default resolution and then depending upon the set resolution just scale everything in the game to the proper size, without having to set the scaling factor in every Sprite Draw() method? My thought is that, I could develop all the graphics, configure coo...

A windows php stand-alone compiler that works with the Zend GData library and PHP 5.2x ?

Hi all, I am hoping there exists a: " php stand-alone compiler that works with the Zend GData library and PHP 5.2x." For using with the following php GCAL sync software for a software called todolist. Any suggestions? ...

x86 AMD64 DLL issue - Visual Studio 2005?

Hello, I am receiving an error that says "The application was unable to start correctly (0xc000007b). Click OK to close the application." When I attempt to run a program I have compiled with Visual Studio 2005. When I run the windows program "depends" on this executable, I see a TON of DLLs which are listed as "x86" dlls. These all ap...

Common practices for SQL Server access from Windows Application on remote network?

Background We have a Windows .NET application used by our field employees who travel all over the country and live out of hotels most of the time. Recently we added some features that connect directly to our SQL Server 2005 for data access (i.e. SqlConnection.Open()). Since then we have run into some issues with this generating errors...

Runtime error when calling function

I have a program that calls a function in a dynamically-linked library. All of the function calls work fine, except one. double *frameData = NULL; int frameDataSize = 0; g_BeamGage_GetSingleFrame(BEAMGAGE_ID, &frameData, &frameDataSize); //error here When BeamGage_GetSingleFrame is called when debugging my program, I get a runtime err...

Can I programatically save the data stream sent to the sound card as a WAV file?

In Windows XP, you can configure your sound card properties via the preloaded windows software. In the recording properties, if "stereo mix" or "wave out" (or something similar) is selected as the recording device, programs that can record audio ("Sound Recorder" in windows for example) record a decent quality wave file of the audio str...

gpgee command line equivalent - gpg arguments

I want to using gpg in windows batch scripts and i've got little problem. Now I'm using gpgee with nice GUI. I want to use gpg with command line interface. Gpg script should sign and encyrpt text files, so i try this gpg -u login -ser key_owner datafile but, when i try to compare file from this command and gpgee, there are differen...

WYSIWIG with Unicode

I've written a Windows program in Delphi that places and wraps text very precisely to both the screen and printer using GetCharWidth and Em-Square. This has worked well with ANSI text where you only need to retrieve and calculate the widths of 255 characters but when you go to Unicode with 65535 characters its too slow. The problem is ma...

how to find the jar file containing a class definition?

What is your favorite tool, plugin, script, to find a java class in a bunch of jar files? Very often I inherit code that complains about a class that doesn't exist, and it is just because the jar file is not included in the classpath. But, in what jar file is the class? I obviously would prefer an eclipse plugin, but I'm open to any pi...

Python: output of scapy cannot be stored in a text file?

When runnning scapy from command prompt (windows XP), the output cannot be stored. When the following command is executed in command prompt: scapy >C:\dir.txt The following error shows up: C:\automation\atg\GeneralFiles_AC\ScapyExe>scapy >C:\dir.txt INFO: Can't import python gnuplot wrapper . Won't be able to plot. INFO: Can't import P...