windows

In Java, How can I read file name from the context menu in Windows

Hi Evrybody. I'm new here and in Java programing I'm trying to write program that cath the context menu command and read the file name and his full path for example when I'm clicking (right mouse) on some file and getting the context menu and I selecting any option (copy, or send to, or open with) I want that my program will read the f...

DLL with invalid PDB path

I'm trying to get one of our old games to work so we can re-release it. It works other than the fact that when I initially run the executable, I get the following error message: "There is no disk in the drive. Please insert a disk into drive \Device\Harddisk4\DR4" Then when I click on either "Cancel" or "Continue" it then goes on to lo...

socklen_t undeclared when compiling .c code

I am trying to compile this .c code in windows using MinGW (gcc file.c -o compiled.exe): /***************************************************/ /* AUTHOR : LAW CHIU YUEN */ /* FILENAME : smtpr.c */ /***************************************************/ #ifdef WIN32 #include <windows...

How can I find the IP address of a mapped network drive in C++?

I have a list of possible paths to use for a default input data directory (X:\Data; Y:\Data; Z:\Data). All of the possible paths are mapped network drives. I can check this using GetDriveType(pathStr) == DRIVE_REMOTE. To determine the best one, I have narrowed down the list by selecting only paths that exist. Sometimes there will be more...

Program for Tv Tuner

I want to develop my own tv tuner program mainly for live stream. Looked at OpenCV but I still prefer to have something that I own, mainly due to customization. Search over the web and cant seem to find a good site on how to start. The only clues that I have are things like DirectX, DirectShow. From what it seems, i believe web cam and ...

C# Video Player Component with Stream Access for Decryption

Hello everyone, I am searching for a video player component (windows), usable in .Net (C#). What is required, is an access to the underlying stream, because parts of the video should be decrypted on the fly, and the decrypted video should never be stored on the hard disk. Ideally, it should also be portable for Linux and Mac. Anyone kn...

How do I access a raw sector of disk in XP with a c program?

I want to know that how to access a sector of the hard disk in Windows XP with a C program? ...

C++/Windows: How to report an out-of-memory exception (bad_alloc)?

Hi, I'm currently working on an exception-based error reporting system for Windows MSVC++ (9.0) apps (i.e. exception structures & types / inheritance, call stack, error reporting & logging and so on). My question now is: how to correctly report & log an out-of-memory error? When this error occurs, e.g. as an bad_alloc thrown by the ne...

What is the value of HSHELL_FLASH?

What is the value of HSHELL_FLASH ...

Adding Meta Tags to Files and Folders in Windows XP

Is there any softwares available in Windows XP for adding meta tags to files and folders. i am looking for a tools similar to Tags/Punakea in Mac OS. Thanks ...

windows apache dynamic domain

Hi all, I have Windows 7 + Zend server In httpd.conf file i have: NameVirtualHost *:80 <VirtualHost *:80> ServerAdmin keyne@localhost ServerName local-izbori.bg ServerAlias *.local-izbori.bg DocumentRoot "C:\Program Files\Zend\Apache2\htdocs\izbori-www" <Directory 'C:\Program Files\Zend\Apa...

log rotation for nginx on windows

I've found plenty of references on the web for rotating the nginx logs under linux.. just send the USR1 signal to the process. But... unix like signals don't exist on windows and I haven't been able to find any information on this. How can I accomplish the same thing with nginx on windows?? ...

Getting File Associations using Windows API

I'm working on a console based file browser for Windows in C++ and am having difficulties getting together a context menu that lists actions associated with a file and calls commands on them. The biggest issue right now is getting the actions tied to the file types. I know of the process to open and tweak the registry keys in HKEY_CLASS...

sox FAIL util: Unable to load MAD decoder library (libmad) function "mad_stream_buffer"

I compiled libmad for sox. When I try to read an mp3 I get this message: sox FAIL util: Unable to load MAD decoder library (libmad) function "mad_stream_buffer". Did I compile the project incorrectly? ...

Maybe (... yeah right) solved: Double checked locking on C++: new to a temp pointer, then assign it to instance.

Hi all, This is a follow up of this post on double checked locking. I am writing a new post because it seems that posting a follow-up on "aged" posts doesn't make it as visible/active as sending out a new post, maybe because most people do not sort posts in stackoverflow by level of activity. To all who responded, thank you for all you...

Drag anything onto the desktop

Hi All Is there a way that we can drag text or images onto the desktop itself from within another application? Say for example there is some text in my app, and the user wants to drag it right onto the desktop, and be able to move it around and edit it right on the desktop... Would this be possible at all? Thank you :) I mainly use C...

Reset all setup settings to their default values

Is there any way to "reset" all setup settings in Inno Setup into their default values? I want to add Reset options button into my setup, and clicking that button would set all the options to the same value as if the user never changed anything, but was clicking just Next, Next, Install. But please note that those values ale slightly d...

Using modal progress bar dialogs in Windows CE?

Hi, I'm writing a Windows CE application in C++ directly applying the WINAPI. In this application I parse a text file, which may or may not be large and thus may or may not take a while to load; and as I will add functionality to load files across the wireless network, I figured it would be best to add a progress bar. My aim is to disp...

Windows API. SendMessage. Help

int x = 5; int y = 10; y = y << 16; int coord = x | y; NativeMethods.SendMessage(hwnd, WM_LBUTTONDOWN, new IntPtr(0), new IntPtr(coord)); NativeMethods.SendMessage(hwnd, WM_LBUTTONUP, new IntPtr(0), new IntPtr(coord)); Using the above code (ref: MSDN), I'm able to select a row in a datagridview in an external application. I would like...

Implementing a simple XML based Scripting Language for an XNA Game

Hello, I'm working with a team on a RPG engine in C# and XNA. We're planning on targeting Windows and Windows Phone 7, but are running into issues with AI interactions and controlling player actions during cutscenes. FOr the most part, everything is extracted using the MVC design pattern, but abstracting all logic and movement into a con...