windows

PIP video programming asking for advice

Hello everyone, I want to capture screen and video (from video digital camera for current operator/speaker of compuer) at the same time, and for the output file, I want to have just one single video wmv file, which uses screen captured video as background and put video captured by video camera to the right bottom corner -- just to have...

UltraWinGrid Data Binding to Hierarchical Objects

My situation: I have a .Net Windows application in VB.Net I'm upgrading from .Net Framework 1.1 to 2.0 I'm using Infragistics NetAdvantage 2004 Volume 3 My issue: I have an object hierarchy that looks like this, where ArrayListOfBand1Objects is my DataSource for an UltraWinGrid: ArrayListOfBand1Objects [ArrayList] [Band1Class] C...

Running psexec on Microsoft Windows Server 2003 Standard Edition SP2

Hi, I am running the following statement from a client machine that has psexec installed on it: c:\pstools\psexec.exe \mmtsrv05 -u ppa99 -p password -d -i cmd.exe /c c:\test.bat This basically executes test.bat on server mmtsrv05. The test.bat program just has the notepad.exe call in it. This is what happens: it creates the cmd.exe a...

Is there any way to notify IE about changes done in registry via code?

Hi, I have done changes in registry (proxy settings) via Windows programming code. I have to restart (reopen) Internet Explorer each time I run the code to make those changes take effect. Is there any API in Windows programming through which I can notify Internet Explorer or Windows that changes are made to the registry and there will...

Choose Network Connection for Browser in Windows

I frequently work from home using our corporate vpn. I have noticed that when connected to the vpn the browser doesn't use my internet connection, everything is passed through the vpn. Is there a way to force my browser to use my local internet connection for surfing the web while connected to the vpn? ...

Limit on cout stream?

A puzzle that hit me. In some simple test harness code, if I stream too many characters to stdout, the program fails. Strange but very reproducable. This may be a Windows only issue, but it's easy to see: #include <iostream> #include <deque> using namespace std; int main() { deque<char> d; char c; while (cin.get(c)) d.push_b...

Check when a Program is Done Running using a .BAT

How would I go about checking to see if a specific program is done running? I'm attempting to make a script that runs a series of .exe's (specifically and setup program and a number of patches) in order automatically. So far I've been able to get them to run at the same time, but that's obviously not what I need. How can I get them t...

do messages sent to HWND_BROADCAST go to other desktops?

I'm trying to determine some of the details of how HWND_BROADCAST works. Unfortunately, MSDN doesn't have a specific page for this value; it's only mentioned in passing in several other articles, such as the ones for SendMessage and PostMessage. What I specifically want to know is whether messages sent to HWND_BROADCAST are received by ...

System() calls in C++ and their roles in programming

I've often heard that using system("PAUSE") is bad practice and to use std::cin.get() instead. Now my understanding of system calls is that they take a string which they enter into a system command line and talk with the OS, so PAUSE is a DOS command that pauses the output in the command window. I assume this works similarly with Mac and...

how to make better use of the coding platform if 800MB out of 4GB RAM is not used?

My coding platform is a Vista machine with 4GB RAM. And while the machine is slick, I know there are 800MB of RAM that is not used at all. (only about 3.2GB or 4GB is used). can I installed something to help my platform for coding? I think Wubi will not be able to use those RAM, but VMware or VirtualPC might be? Or a RAM disk so tha...

Determine whether or not a TCP/IP port is already in use under Windows?

The cross platform dev environment I use has a built in function that is supposed to indicate whether or not a tcp port is available. However, the function malfunctions under Vista and always returns "available". Is there an easy way, such as a dll function, I can use to correctly determine this information without needing .Net? ...

delete old PostgreSQL data directory in win7

i'm not able to delete my old data directory in windows 7. i already uninstalled PostgreSQL, but there's still the system service user account "postgres", who's the only one with access-rights to the folder. possible solution would be to develop a service, running as "postgres" user, which deletes the folder, but there must be an easier...

Retrieve network share comment

How does one retrieve a network share comment in Windows ? ...

Windows Scripting: Get Default Options for MS Access

Trying to find the object property for Access to get the default file location so I can script an update to it. Example: this grabs the stuff from Word and tells me where the user file, and template paths point Const wdDocumentsPath = 0 Const wdWorkgroupTemplatesPath = 3 Set objWord = CreateObject("Word.Application") Set objOptions = ob...

Writing Windows Port Monitor Basics

I'm trying to find a basic example, tutorial, or blog post on how to write a printer port monitor. I downloaded the Windows DDK and dug through localmon, but it appears that this sample is much more complex than just the nuts and bolts basics and from my understanding it is a bit different than an OEM port monitor because of how it hand...

Retrieve the server name from a UNC path

Is there an api in windows that retrieves the server name from a UNC path ? (\\server\share) Or do i need to make my own ? I found PathStripToRoot but it doesn't do the trick. ...

SVN Server running on Windows Vista in a Home Network, Accessing from Mac OS X

I have SVN running on my main windows development box on my home network. I access the server from various development laptops depending on what I'm doing. I also do this with a Mac OS X development laptop but I apparently have to use the IP Address of the SVN Server. This is causing problems because the IP address of the SVN server ch...

What is a Windows Handle?

What is a "Handle" when discussing resources in Windows? How do they work? ...

Compiler Error: Function call with parameters that may be unsafe

Hi, Got some code that is not mine and its producing this warning atm: iehtmlwin.cpp(264) : warning C4996: 'std::basic_string<_Elem,_Traits,_Ax>::copy': Function call with parameters that may be unsafe - this call relies on the caller to check that the passed values are correct. To disable this warning, use -D_SCL_SECURE_NO_WARNINGS. ...

How Windows (or other OSes) update client's background area?

Or to ask it another way, how OnEraseBkgnd() works? I'm building a custom control and I hit on this problem. Childs are rectangles, as usual. I had to disable OnEraseBkgnd() and I use only the OnPaint(). What I need is to efficiently clear the area behind the childs and without flickering. Techniques like using back buffers are not an o...