windows

What is MSSRPD?

Recently, I found that some searches in Firefox are redirected to Bing. (Instead of my primary search engine Google.) I am not sure, but it seems that it is not bound to search but rather a hostname resolving. Since entering a single word that might be a hostname redirects to Bing. But entering more words searches using my primary searc...

unattended install of binary python packages (modules) for windows

Is there no sane way to peform a scripted install of binary python packages for windows? Unfortunately it seems like several essential windows python packages like pywin32 and py2exe are only available as EXE's not MSI's (and as far as I know only the latter are scriptable). Easy_install/pip also seems no use since they apparently only f...

How Do I Execute A DLL File....

I have a DLL file and want to execute it on Windows. I obtained this DLL from a Challenge site which alleges the DLL should be executed independently. ...

Switched to windows authentication in MVC and screen goes blank!

hi there Have switched to windows authentication in the debug mode, set NLTM in the project options but when i press play it just gives me a blank screen! Any ideas what I can do now? thanks! ...

What should I use to replace the WinAPI Beep() function?

I've got a Visual C++/CLI app which uses beeps to signify good and bad results (used when the user can't see the screen). Currently I use low pitched beeps for bad results and high pitched beeps for good results: if( goodResult == true ) { Beep(1000, 40); } else { Beep(2000, 20); } This works okay on my Vista laptop, but I've...

Attempted to access an unloaded AppDomain, Windows Azure

I created a cloud service with a worker and a web role. While running the app, the system says "Attempted to access an unloaded AppDomain" any solution ? ...

Monitoring UDP socket in glib(mm) eats up CPU time

Hi, I have a GTKmm Windows application (built with MinGW) that receives UDP packets (no sending). The socket is native winsock and I use glibmm IOChannel to connect it to the application main loop. The socket is read with recvfrom. My problem is: this setup eats 25% percent CPU time on a 3GHz workstation. Can somebody tell me why? The...

Windows based development for ARM processors

I am a complete newbie to the ARM world. I need to be able to write C code, compile it, and then download into an ARM emulator, and execute. I need to use the GCC 4.1.2 compiler for the C code compilation. Can anybody point me in the correct directions for the following issues? What tool chain to use? What emulator to use? Are there ...

How to set webcam parameters programatically on Microsoft Lifecam Cinema (e.g. switch off autofocus)

The Microsoft Lifecam Cinema software has serveral options to control focussing, exposure and so on. I need to control these programatically for a machine vision project. How can this be achieved? ...

program "is not up to date" execution error in wedit lcc-win32

I'm attempting to compile a simple hello world program in c with lcc-win32/wedit, and i'm a little unfamiliar with windows c programming. #include <stdio.h> int main(void){ printf("hellow\n"); return 0; } When I compile the program the console output is: Wedit output window build: Tue Jun 15 09:13:17 2010 c:\lcc\lib\lcccrt0.obj ...

How can I work out what events are being waited for with WinDBG in a kernel debug session

I'm a complete WinDbg newbie and I've been trying to debug a WindowsXP problem that a customer has sent me where our software and some third party software prevent windows from logging off. I've reproduced the problem and have verified that only when our software and the customers software are both installed (although not necessarily ru...

Validity of a Socket

I have created a socket using the following lines of code and i get a valid socket and connection is established between the client and server machines. Is there a possibility that the socket becomes invalid due to network disturbances or any other reason. If so how do we check whether the socket is valid or not. SOCKET SocServer; ...

CreateThread() fails on 64 bit Windows, works on 32 bit Windows. Why?

Operating System: Windows XP 64 bit, SP2. I have an unusual problem. I am porting some code from 32 bit to 64 bit. The 32 bit code works just fine. But when I call CreateThread() for the 64 bit version the call fails. I have three places where this fails. 2 call CreateThread(). 1 calls beginthreadex() which calls CreateThread(). All th...

How to set file permission for linux host under windows ?

For example, i want a file has permission of 644 automatically when i uploaded it to my linux host, before upload, it is under windows. How could i do this? Btw, i use Filezilla for upload Updated: Before post this question, actually, i ever thought it is impossible too. But, as i has many wordpress sites, i remembered that i never nee...

Windows C/Sleep() function during clock drift.

If I run something like Sleep(10000), and the system clock changes during that, will the thread still sleep for 10 seconds of wall-clock time, or less or more? I.e. does the Sleep() function convert milliseconds into hardware ticks? ...

#define far, #define near Windef.h

Possible Duplicate: Is there a clean way to prevent windows.h from creating a near & far macro? What's the point of these two defines in Windef.h? #define far /* nothing */ #define near /* nothing */ I know it has to do with near and far pointers and the fact they're no longer used, but, is it safe to #undef them, so...

Is it possible to Create a Named Pipe on a remote machine (by IP address)?

Is it possible to Create a Named Pipe on a remote machine (by IP address)? ...

How to delay shutdown of an application when user logs off or shuts down Windows?

I am writing an application that runs in the background from startup to shutdown, and in some circumstances I need the application to display a dialogue for the user to choose whether or not to continue shutting down. This application will only be running on Windows, but may be running on any version from 2000 onward. While I have certa...

What do the & and | operators do in a batch file?

I'm debugging a batch file left behind by an old employee and I've come across the line: @nmake -f makefile /E 2>&1 | tee %LOGFILEPATH% What does this do? I know what @nmake -f makefile /E does and I know what tee %LOGFILEPATH% does, but I can't find anything on what the 2>&1 | means. Thanks ...

Which "platform" should we use for a notifier-component?

Hi all We need to develop a notifier component. What it will do, is to scan a database at given intervals (say, every 15th minute), to see if any notifications needs to be sent out. We're running on Windows, and so we've been looking into either a Windows Service or the Windows Task Scheduler. Our biggest concern is the robustness of ...