windows

Notify user if file is used by other user in windows

Hi , I am working in a project where all developers are working in a single windows system through remote sessions(remote desktop).Where we all have to share a common workspace folder..We have an issue, some times multiple user may work in same file at the same time..So when both user do some changes in the file..Only the data saved by ...

Unable to access Windows Authentication controlled ASP.NET web site from browser on local machine..?

Hi, I have set up a web site on a Windows 7 machine (Application PC), and have configured it to use Windows Authentication. I have set up the User, and can access the site from a remote PC (Remote PC), logging in with the user name and password. My main issue is that I cannot log into the web site when I am on the local machine. Regar...

Retrieving stdout from subprocess in Windows.

I can call FFmpeg with subprocess.Popen and retrieve the data I need, as it occurs (to get progress), but only in console. I've looked around and seen that you can't get the data "live" when running with pythonw. Yet, waiting until the process finishes to retrieve the data is moot, since I'm trying to wrap a PyQT GUI around FFmpeg so I c...

Drag & Drop from Windows Explorer into my application’s TextBox

Why is the dragdrop event never entered? private void textBox1_DragDrop(object sender, DragEventArgs e) { Array a = (Array)e.Data.GetData(DataFormats.FileDrop); e.Effect = DragDropEffects.All; Debug.WriteLine("were in dragdrop"); } private void textBox1_DragEnter(object sender, DragEventArgs e) { if (e.Data.GetDataPres...

Installing a driver using Inno Setup

I'm creating setup for my application in Inno Setup, and I will probably need to install driver sometime in the future. However, I need to know some tips about installing drivers in Inno Setup now, so I can easily add the driver into the setup when it's needed. Should I force the user to install program only into C:\Program Files\<ap...

Anonymous Pipes

I've written a two short programs that use anonymous pipes to communicate. The parent process shares the pipe handles by setting the standard IO handles for the child: // -- Set STARTUPINFO for the spawned process ------------------------- ZeroMemory(&m_ChildSI, sizeof(STARTUPINFO)); GetStartupInfo(&m_ChildSI); m_ChildSI.dwFlags ...

Unable to connect to the remote server from Windows service

When I try to connect to remote server from dot net windows service installed at local machine. It is working correctly. But when install the window service in the same server where the web application is installed. Then it give this error "Unable to connect to the remote server" This is urgent. Thanks in advance. ...

Python Server Help

I have written a small HTTP server and everything is working fine locally, but I am not able to connect to the server from any other computer, including other computers on the network. I'm not sure if it is a server problem, or if I just need to make some adjustments to Windows. I turned the firewall off, so that can't be the probelm. I...

How to get taskbar background color

Hi I have notifyIcon located at the notifyArea of the Win7 taskbar. This Icon contain dynamic text info - Black text on the trasparent bitmap. So, with Standard Windows theme (light) information readable but with other "dark" windows themes not. I want to get taskbar background color and eventually draw Icon with appropriate color (ex...

Decompress "wmz" file

Hi, When we try to save msword doc file as html file we get "wmz" files for the math equation objects. I tried decompressing the wmz file and saving the content as jpg. I can open this jpg file in the "Microsoft Picture manager" properly. But trying to open the file in browser displays the error message "The image cannot be displayed, ...

Why do neither Visual Studio 8's built-in memory leak detector nor Visual Leak Detector generate output for my C++ code?

I'm running windows XP and Visual Studio 8 on a C++ project. It's obvious from the performance profile of my program that there is a memory leak, and when I downloaded the trial version of Purify it confirmed that I have at least two leaks, although, irritatingly, it would not tell me where they are. However, neither Visual studio's bui...

Teradata FastLoad Inmod Compilation on Windows or Unix

Hi, I have an inmod for processing one file records and eliminate some unwanted rows and then feed the records to fastload utility. But I am not able to find a correct way to compile it and use it. I have GCC (GNU C Compiler) and TCC (Tiny C Compiler) on my windows macine and I got Fastload utility also installed. I tried to compile the...

Is there a function to convert EXCEPTION_POINTERS struct to a string?

Does anybody know of a function to convert the EXCEPTION_POINTERS structure returned from GetExceptionInformation() into a string that I can log? I don't want to roll my own if it's already been done. EDIT: Basically, I've added the __try{} __except(){} blocks to help the app fail gracefully on a critical error. While I'm at it, I'm t...

How to read ManagementObject Collection in WMI using C#

I found a code on net and have been trying to get more information about mo[]. I am trying to get all the information contained in ManagementObjectCollection. Since parameter in mo is looking for an string value which I dont know, how can I get all the values without knowing its parameter values. Or if I want to get all the indexer val...

Which are the best sources for learning the Windows Installer technology?

Hi, I would like to know if you could share some (trusted) sources of information (books, URLs) that you consider the most relevant for learning Windows Installer. They could be for starting on this technology or for an advanced or professional level of knowledge. I'll be really grateful. UPDATE: I would like to know where a future dep...

XNA Window Scaling Performance

In my XNA game, I program and design the entire thing for 1920x1080 resolution and then scale scale and letterbox to fit the running system (XBox or PC). This has been a great solution as it allows me to only ever worry about one resolution. However, I'm now wondering if this will come back to bite me in the future as the game becomes ...

XNA Content.Load() Memory Usage

In XNA, when calling Content.Load() to load in a resource, if you load the same resource into multiple objects (i.e. the texture for a projectile of which there can be many) are you getting a copy for each object, or is the system just internally referencing the same memory for each one? I was realizing that having a separate Texture2D ...

Inno Setup jump to specified wizard page

Is there a way to jump to the specified wizard page? Backward and forward? For example, I would add "Configure again" button in the wpReady, and when the button is clicked, I want to jump to wpInfoBefore. ...

Detecting a drag operation from another application

I have an application that runs elevated (yes, it has to be elevated) but it needs to detect when another application is dragging an object over it. My application doesn't care what the object is, it doesn't want to receive the object, it just needs to know if something is being dragged. In a normal application this isn't an issue, but b...

Change WizardSmallBitmapImage in Inno Setup Uninstaller

In installer, you can easily change the small bitmap in wizard's top right corner using this code: [Setup] WizardSmallImageFile=gfx\bitmap.bmp Hovewer, how to change that same bitmap in uninstaller's wizard's top right corner? There doesn't seem to be any parameter for this. I think one of the solution is to let the installer extract...