windows

How could file size change without 'date modified' getting changed?

I was puzzled seeing this. My vmware virtual machine was running and I was monitoring the size of the virtual disk file. The size of the file kept increasing but 'last modified' date remained unchanged. How is this possible? Confused. My host OS is windows vista and guest (which I guess doesn't matter) is Linux. ...

Should I implement my own TCP/IP socket timeouts?

The software I'm working on needs to be able to connect to many servers in a short period of time, using TCP/IP. The software runs under Win32. If a server does not respond, I want to be able to quickly continue with the next server in the list. Sometimes when a remote server does not respond, I get a connection timeout error after roug...

What's the best way for an app on Windows to assocaite itself with a particular file type, such as .xml, .txt, etc., but share that association with other apps that support that extension?

If I create a new app, and associate with, say, the .xml file extension on a particular computer, when someone double clicks the .xml file, it will launch my app and pass the file as parameter. But Windows seems to know what other files have the ability to work with that file type. How is that set up? Also, when I save a Microsoft Wo...

How to play audio file on windows from command line?

In Windows, is there a simple way (i.e. something you could type on a single command line) to just play a couple of .mp3 files and then exit on its own? wmplayer, for example, does not seem to exit when finished, forcing the harried user to hunt it down and click it closed every time. (wmplayer 11 also seems to strangely repeat some f...

How to capture ping's return value in C++

Hi! Does anyone know, how to capture ping's return value in c++? According to this link: ping should return 0 on success, 1 on failure such as unknown host, illegal packet size, etc. and 2 On a unreachable host or network. In C++ I called ping with the system (), e.g. int ret = system("ping 192.168.1.5");. My problem is, that ret's v...

Need a Windows exe file to launch a html page in local drive without ActiveX warning

I need to distribute a flash-based application to end users. I have a very simple index page to launch another window: <HTML> <HEAD> <SCRIPT LANGUAGE="JavaScript"> function popUp(URL, w, h) { win=window.open(URL,"window","menubar=no,width=" + w + ",height=" + h + ",toolbar=no,resizable=no;titlebar=no"); self.close(); } </script> <BODY o...

Have iTunes inform me when I programmatically sync iphone using COM

I've written an application that synchronizes calendar from Lotus Notes to the iphone (using MS Outlook as conduit) and I want to tell iTunes to push the changes onto the iphone. I can do this just fine using the COM interface (IITIpodSource.UpdateIpod) but the problem is that this method return immediately when it starts the synchroniz...

How to open iphone project's .m files on windows operating system

Hi Fellas I am iphone application developer, I am just new into it. At work i use Mac for development which is quite obvious, but at home i have windows operating system. Is there any way to open iphone project codes like .h and .m files on windows through some converter n all? Coz at times i wish like going through codes back at home t...

WPF Docking library

I need to use an existing WPF docking library. There are several libraries: AvalonDock .NetBar SanDock ActiPro Infragistics does anyone has any experiance with one of those libraries? Can you recommend one of them? ...

Where to store an application log file on Windows

Where would be the best "standard" place to put an application's debug log file in a Windows user environment? In this particular case, it is an application that is run once and could go wrong. It will be run by system administrator types who may need to inspect the log after the application is run. Everytime the application is run, a...

Detecting if a COM object is registered or instantiated (iTunes)

I'm working with the iTunes COM API on Windows. I'd like to manage the enormous delay that occurs when instantiating the iTunes object (which has to launch iTunes itself). I was hoping there was a way to determine the following: if a given CLSID is registered on the system (programatically) if an instance of a given CLSID is already cr...

How do I query a MS Access database table, and export the information to Excel using Ruby and win32ole?

I'm new to Ruby, and I'm trying to query an existing MS Access database for information for a report. I want this information stored in an Excel file. How would I do this? ...

How to blank files in batch

How would I go about reading an entire directory and blanking files with a specific extension? I have an application that reads the content of a specific folder and returns an error if a file is missing, however it does't check to see if the files are valid, so I want to make them NULL to get around the checks. ...

windows version of the GDB frontend DDD

Is there a native (not cygwin) version of DDD available for download somewhere? ...

Is it possible to hijack standard out

I am trying to redirect the stdout of an already running process on Windows XP using C#. I am aware that I can do this if I spawn the process myself, but for this application I would prefer a "listener" i could just attach to another process. Is this possible in pure .Net and if not is it even possible with Win32? Thanks UPDATE: There...

How do I set the version of a DLL built in C, compiled with CL.EXE ?

If I compile the source for a C-language DLL with CL.exe, how do I set the file properties including File version Product name, Product version, Copyright and so on, so that I can view these properties in Windows Explorer? In a .NET application written in C#, I could do this with assembly attributes like [assembly: AssemblyVersion("1...

Do I need afxres.h, if I am not using MFC? How do I remove it from the .RC script?

I don't know RC scripts. I want to include Product version, File version, etc. metadata into a DLL I'm building. I'm using an .rc file to do that. The build is makefile driven. I'm following along with an example .rc scrpit I found. The template .rc file includes afxres.h , but I don't think I need that. But if I just remove it I ...

Keep window in foreground (even if it loses focus)

In my application (C', Windows Forms) I have got a telephone information screen: if there is an incoming phone call a window with additional information to the caller is shown. This window should open in foreground and should stay there even if the user is writing in another window (so the user still sees the information regarding the i...

Windows batch parse template and increment values

Hi, I'm trying to write a windows batch file that would read in a text file with certain text in it and increment some values in that file. The text file would contain text like : public static const COUNTER:int = 0 the batch file would then search for "COUNTER:int = 0" and increment the 0 value. Unfortunately my knowledge of windo...

detect File 'COPY' operation in Windows

Say I want to be informed whenever a file copy is launched on my system and get the file name, the destination where it is being copied or moved and the time of copy. is this possible ? how would you go about it ? should you hook CopyFile API function ? Is there any software that already accomplishes this ? thanks. ...