windows

How to test a cron job in Local Server like WAMP?

How to test a cron job in Local Server like WAMP? ...

tipc protocol in windows

Hi, Any idea for TIPC protocol on Windows systems or any similar protocol which is available on windows ? Thanks Arpit ...

Synchronization primitive for shared usage counter?

Is there a Windows (or .NET) synchronization primitive that: can be shared across multiple processes on the same PC; represents a counter of how many threads are currently depending on a shared resource; is automatically decremented by the OS when a process abnormally terminates; and can be waited on by another process (and signaled wh...

python execute remote program

I'm re-writing a legacy Windows application using Python and running on Linux. Initially, the new application needs to call the legacy application so that we have consistent results between customers still using the legacy application and customers using the new application. So I have a Linux box, sitting right next to a Windows box a...

%CD% variable behaviour differs when right click and use run as admin

I have a windows cmd file that is making use of the %CD% environment variable to determine the execution directory of the cmd file. When I run the cmd file from the command line it works correctly, meaning that the %CD% variable contains the working directory. If I double left click the cmd it also works as I expect. However if I right ...

Do threads created in Java behave differently on Windows and Linux?

As what I know, Java is using operating system threads (in contrast to i.e. Erlang), that means that the threads created with Java on Windows and Linux may behave different. Are there any differences on Java threads on Windows and Linux? What is the biggest difference? It's maybe only a difference in performance? ...

asp.net mvc hosting on windows azure

Hi there I d like to enquire how best to go about upgrading or modifying an existing asp.net mvc project to work with Windows azure. Thanks ...

IIS7: Internet explorer cannot display a web page

Hallo, I am tryiing to migrate an application written with visual studio 2008 from windows XP IIs 6.0 To Windows 7 with IIS 7.5 and I have this problem: Sometimes when I post the page, the server does not respond and after some minutes i receive e message "Internet explorer can not display a web page" With IIS 6.0 the application wor...

starting TS and TSNoise via batch and closing TSNoise when TS is quit

ok, i know how to start both programs parallel, but i'd like to make TSNoise close on closing TS. atm my .bat is this: @ECHO OFF start /b E:\Programme\teamspeak2RC2\TeamSpeak.exe start /b I:\Programme\TN1.0.4\TS-NOISE.exe ECHO. EXIT ...

Passing a file location to an external process using Win32/MFC

Hi all, I'm trying to fulfill a client request here, and I'm not entirely sure I can actually do it. I have an MFC application that relies upon ShellExecute to open files in their appropriate viewer, which spawns multiple viewers if you try to open multiple files one after the other. If you open one .txt document, and then open another,...

Windows propagation of Credentials to Java desktop application

Is it possible to Use the credentials (or even a token, that a user entered when he logged in windows, lets say XP). what I am in search here is not applying a single sign on (which requires signing in again), but the single sign on would be that of the MS windows log-in window. Is this possible??? I understand security in windows is of...

standard ActiveXObject refrence list

Is there a reference for the standard available ActiveXObject objects? so far I know of: Excel.Application Excel.Sheet Scripting.FileSystemObject ...

How to pull and check-out remote Git repository

OK, total noob question, for msysgit on Windows 7, but I have a remote repository (on unfuddle), create on one PC, and now I want to pull it down to another PC. I tried 'Fetch' using Git Gui, but the folder still only has a .git subfolder. It took a while pulling it down, so I assume there is something in the repo, but how do I check ...

Weird error when trying to write to an mmap under windows

This simple python code: import mmap with file("o:/temp/mmap.test", "w+b") as fp: m = mmap.mmap(fp.fileno(), 0, access=mmap.ACCESS_READ|mmap.ACCESS_WRITE) m.write("Hello world!") Produces the following error (on the mmap.mmap(...) line): WindowsError: [Error 1006] The volume for a file has been externally altered so...

Windows: Get LID from locale string?

I have string data representing locales, like "fr" or "en". I need to convert it to the appropriate LCID values, like 0x80c or 0x409. Is there a function or macro to do so? I'm using C++ on Windows 7. ...

at runtime, how can I tell if I'm on WinXP+? win32

I'm making some win32 string API calls and am assuming that the strings come out as wide strings, which is valid on XP and newer. How can I assert this? Is this a runtime check or a compile-time check? Am I doing it wrong? Here's an example: typedef std::basic_string<TCHAR> TString; inline TString queryRegStringValue(HKEY key, const TS...

How to move all files except the newest one to a folder?

Hi all, I have a Windows box and a folder containing such files: 2010-07-04 20:18 81 in01_Acct_20100704001.r 2010-07-07 05:45 165 in01_Acct_20100706001.r 2010-07-07 19:41 82 in01_Acct_20100707001.r 2010-07-07 10:02 81 in01_Acct_20100707002.r 2010-07-08 08:31 ...

JPOS Configuration Problems for an Epson POS printer in Windows

Hello, I'm trying to print using jPOS in Windows and get the following exception: jpos.JposException: Could not connect to service with logicalName = Printer: Exception.message=jp.co.epson.uposcommon.util.EpsonJposServiceInstanceFactory at jpos.loader.simple.SimpleServiceConnection.connect(Unknown Source) at jpos.BaseJposContro...

Including extra libraries on the link line

When linking an executable, if it does not make reference to any of the symbols in one of the DLLs on the link line, will it still depend on that DLL at runtime? To make the question concrete, suppose I am building an application from Visual Studio project foo. Under Project Properties > Linker > Input > Additional Dependencies I have ...

proper style for interfacing with legacy TCHAR code

I'm modifying someone else's code which uses TCHAR extensively. Is it better form to just use std::wstring in my code? wstring should be equivalent to TString on widechar platforms so I don't see an issue. The rationale being, its easier to use a raw wstring than to support TCHAR... e.g., using boost:wformat. Which style will be more c...