windows

PNRP isn't starting and can't be found.

I'm trying to get a PNRP based C# application running but I can barely get started with it. Initially I had to download the .NET framework version 4 to get the correct references available to me. When the first call is made I get a "pnrp could not be started" exception. I tried to explore PNRP using netsh, but the command netsh p2p d...

[R] name a file using the time on Windows

I want to save the R output to a specific place, but what I want to do is add the time and day to the file(according to the system time). 29-Jul-2010 15.35.txt anyway to do it? I know about Sys.time and date() but they both contain : which windows xp doesn't like. ...

Hudson build freezes after writing 60K to disk

Environment: WinXP SP3 Git: 1.7.0.2.msysgit.0 Hudson 1.367 Git server on local network with Gitosis and GitWeb We are preparing to migrate from SVN to Git and have lots of working builds using SVN. Initial attempt at a Hudson Git build used the Git plugin. I start the build and it would get to the git clone phase. Exactly 60k of ...

How would I inform an isolated application of the location of dependent DLLs?

I have a couple of isolated applications that I am writing that all rely on dlls that are also written by myself and team. Things were fine when we only had a few dlls but not the build output directory is getting rather cluttered and hard to navigate. I would ultimately like to have the output build directory contain the following str...

Display a & in a menuitem or menustrip

I have a menu item that needs to be formated like This & That, but the & is converted to an underscore. Is there an escape character to actually be able to display the &? ...

Windows mp3/mp4 streaming

I need stream audio/video data from Windows server to iPhone application. Do somebody know any solution for this? ...

how to uninstall linux without affecting the windows xp which is in a dual boot

hi guys, i need to uninstall ubuntu from my machine where i have a dual boot with windows xp, i know what to do but problem is to do that i don't have my windows xp cd with me now! now how can i uninstall ubuntu from my machine and reset the windows loader by removing the grub boot loader? is there any such method? regards, Rangana. ...

Shared memory without memory-mapped files.

Is it possible to share memory between two MFC C++ applications without using Memory mapped files? Currently we are using this method to share structs, and it is too slow for our requirements. Is there a better way? ...

how to search the computer for files and folders.

i need a way to search the computer for files like Windows Explorer. i want my program to search lets say hard drive c:. i need it to search C:\ for folders and files (just the ones you could see in c:\ then if the user clicks on a file on the list like the folder test (C:\test) it would search test and let the user see what files/folder...

How to get a DLL loading process handle

Hi there, I'm trying to get the handle to the process which loaded a dll from the dll. My approach is: in DLL_PROCESS_ATTACH I call EnumWindows(EnumWindowsProc,NULL); my EnumWindowsProc implementation is the following: BOOL CALLBACK EnumWindowsProc(HWND hWnd, LPARAM lParam) { if(GetCurrentProcessId() == GetWindowThreadProcessId(hW...

Should I choose ActivePerl or Strawberry Perl for Windows?

I'm totally new to Perl but I'd like to try it out. I read about two rival distributions available for Windows platform (I guess there's just Perl on other OSes :). Wikipedia says that Strawberry comes with additional dev tools to compile CPAN modules if necessary. Sounds pretty good to me. It also says that ActivePerl has a lot of pr...

How to throw an error window in Python in Windows

What's the easiest way to generate an error window for a Python script in Windows? Windows-specific answers are fine; please don't reply how to generate a custom Tk window. ...

How to use xcopy to copy a file into a non existing directory?

As a part of an automated script, I am trying to do achieve something like this in windows command prompt: xcopy /I /Y resources\xyz\pqrs.txt %TEMP%\resources\xyz\pqrs.txt.bak In %TEMP%, there is no resources directory. This is the interactive output, that I get: Does C:\Users\username\AppData\Local\Temp\resources\xyz\pqrs.txt.bak ...

File Access takes me to command prompt rather than Explorer

Hi All, Whenever I go to my command prompt and type a "c:\temp" or any other file/directory, it takes me to the command prompt rather than the file explorer. Can somebody please tell me how I can fix this so that all file/directory access from cmd takes me to the file explorer. I have a Win2k3 64bit machine. Has this got a...

Solution to run a .NET component on regular intervals in Windows

I need to write some .NET code that runs on a regular interval to check for "unprocessed" items in a table in the database, processes them, and then writes back to the database that they are processed. We'll probably set it up to run every minute. How can I set up in the component in a Windows Server environment so that the code execut...

Set a transparent color

I was drawing a bitmap on the screen, and i wanted to set a transparent color on this bitmap (0xFFFFFF White) i wanted to know if its possible, and if it is, how to do so xP I use this code to load the bitmap invoke LoadBitmap,eax,10 push eax invoke GetDC,0 invoke CreateCompatibleDC,eax pop ecx mov [mapple],eax invoke SelectObject,[ma...

Loopback connections working in user's context but not working from Local System account

We have a networking application that can run from a service account as well as a regular user's account. The app tries to open up a loopback connection to another service running on the local machine. So for example it tries to connect to: 127.0.0.1 port 2000. On a very small number of Windows machines we're seeing an issue where tryin...

Android application uninstall batch/shell script?

I have developed a small application that consists of 5 different apk files. I'm developing on a lot of PCs and have a lot of developing phones. Every time I change the PC, the signature of the generated APK file is changed and I have to uninstall the applications on the phone. This is very time consuming. So is there a possibility to wr...

Using FreeGLUT, how can I create an OpenGL window, specifying both title and screen location?

The FreeGLUT API has several functions for window management: int glutCreateWindow(const char * title ); int glutCreateSubWindow(int window, int x, int y, int width, int height); void glutDestroyWindow(int window); void glutSetWindow(int window); int glutGetWindow(void); void glutSetWindowTitle(const char* title); void glutSetIconTit...

How can I query remembered UNC connections similar to "net use"?

I understand how to retrieve the UNC path for a mapped drive from the registry (HKEY_CURRENT_USER\Network), but I also have a need to retrieve remote connections to network resources that were not mapped. For example, opening the 'Run' dialog and typing <\server0123\share$>. If I type "net use", I would see this mapping, but I have bee...