I'm writing a 3D application for Windows, using OpenGL. For now it renders a simple test scene with one model of about 50000 polygons and it renders smoothly at 60FPS.
However, the framerate gets very uneven whenever the mouse is moved over the application window. It fluctuates from 400 FPS to 20 FPS randomly. Is there any reason for th...
In Win32 C is there an API call to flush (dump) the contents of a COM port recieve buffer? I could only find functions to flush the transmit buffers.
...
I'm working on a video display device that uses custom timings for resolutions at848x480 and 800x480 that do not conform to any VESA standard. The device has an EDID that specifies these timings.
I would like to know the process that Windows XP uses to determine the resolution to display at, and how it presents the user with a list of c...
In Windows, using mingw's gcc, is there anyway to specify that the output exe file is to take an icon file, so that the exe file shows with that icon in explorer?
...
I need to enable the "Allow service to interact with desktop" option in the service properties through command line. How to accomplish that. I tried the "sc" command. But I can't achieve what I need.
...
I have a large project with several 3rd party libraries. I want to build everything for 32 and for 64 bit architecture. Several libraries create shared libs (dlls). What is the best way to provide those dlls to the compiled executables from my project? I thought off I can put all those dlls into a directory which is added to the PATH var...
I have to use AT commands to setup my dial up modem (modulation seleccion, speed, etc), and dial other modem. Once the connection is stablished I have to transfer/receive files via zmodem, xmodem...
I have to run a batch of tests with different speeds, modulations (v.92, v.90, v.34...) so i need a scriptable terminal program (hyperterm...
Hello everybody,
I'm having problems with a scheduled task running in a windows 2003 server scheduled task
Task is running under the nt authority/system account sending files to another windows2003 server in same domain.
Machine where task is executed runs under a domain account with limited permissions in domain and machine
Folder ...
Does WaitForSingleObject() with timeout = 0 ms result in thread context switch immediately and the thread to loose its remaining timeslice?
...
Hi
How can I capture multiple key downs in C# when working in a windows form? I just cant seem to get both up arrow and right arrow at the same time.
...
How do I create a new registry value using PHP?
The following code doesn't work:
function registry_write($folder, $key, $value, $type="REG_SZ")
{
$WshShell = new COM("WScript.Shell");
$registry = "HKEY_LOCAL_MACHINE\\SOFTWARE\\" . $folder . "\\" . $key;
//$result = $WshShell->RegRead($registry);
$result = $WshShell->RegWrite(...
We have a script to backup files. After the backup operation is over, we would like to send a report as an email notification to some of our email addresses.
How could this be done?
...
There has been a lot of talk surrounding the likes of WPF. I am wondering if WPF will become a new standard for graphical interactive user interface design. Is this where we are headed in terms of windows interfaces? Will it really take off like everyone says it will?
See also
Learning Windows Forms vs. Windows Presentation Found...
So I'm trying to debug this strange problem where a process ends without calling some destructors...
In the VS (2005) debugger, I hit 'Break all' and look around in the call stacks of the threads of the misteriously disappearing process, when I see this:
This definitely looks like a SO in the making, which would explain why the proce...
I am trying to write a utility that will allow moving files in Windows, and when it finds a file in use, will set that file to be moved on reboot.
It seems that MoveFileEx (http://msdn.microsoft.com/en-us/library/aa365240(VS.85).aspx) is the right call for this, however I cannot figure out what error code I'm looking for from GetLastErr...
How do I delete the last line of a text file using the echo command in windows?
...
Recently I was talking with a friend of mine who had started a C++ class a couple months ago (his first exposure to programming). We got onto the topic of C# and .NET generally, and he made the point to me that he felt it was 'doomed' for all of the commonly-cited issues (low speed, breakable bytecode, etc). I agreed with him on all thos...
I've just installed PHPUnit and wrote a quick class which I saved to C:\PHP and it worked fine. If however I move the php file containing the test class to the tests directory of my application, it returns the error Class firstTest could not be found in ..
How do I resolve the problem such that it can see the class in the application t...
I'm running Windows Server 2003 x64 with 8GB RAM and SQL Server 2005 64 bit. I have SQL set to use loads of memory, but the SQL process only ever takes under 100 MB RAM. Is this normal? It is accessing data with indexes many GBs in size.
Moreover, no process is taking over 100MB, yet there is only a minimal (<100MB) amount ofree memory....
I have several slave machines and a master machine which together run a distributed application. Processes on each slave machine have to have a GUI and network access (I think it would be called an interactive process then). For ease of use it would be nice if the master machine could start/stop the processes on those slave machines.
My...