So, say you're sitting in your bed and you want to turn off your monitors after watching a movie? You have to get up, and turn them off, or put the computer to sleep or something.
I want to know what I need to do to access the functions required to turn off a monitor like one can adjust in the normal power settings.
...
I am using the gleamtech filevistacontrol for a back-end of a website. When i load the page which contains the control i get an error that a language file could not be found.
I get an 404 response when calling the webservice. The application is running on a windows server 2008. On my development machine the application is running witho...
I have a 32bit application running on Windows 7 64bit. The application (written in C++) hosts a WebBrowser control.
When the WebBrowser control is asked to popup a new windows (through a javascript window.open() call), it launches a new Internet Explorer process. In particular, this new IE process is a 64bit IE process.
Since web pag...
I want to sniff network packets without wincap library, kindly give me some hints or direction so that I can make it possible.
...
Currently I am working on signing a 64-bit driver for a USB tool which is used to scan areas of the skin.
My setup is like this:
DTM Controller and DTM Studio are
running on a Server machine (Windows
Server 2003 R2 SP2)
DTM Client running on a Client Machine (Windows 7 64-bit)
I have managed to run tests on the client, using DTM Stu...
I would like to write a program that reads all the unused clusters on an NTFS volumne. (I'm looking to recover data from a file that was accidentally truncated).
According to this page I can call SetFilePointer() and ReadFile() on the volume handle to go through each logical cluster on the volume. But how do I know which clusters ar...
I have an executable which has to be elevated to succeed (but the debug build has no manifest).
Now, I want to debug it with Visual Studio 2008 and actually it fails due to not beeing elevated. I don't want to run VS as Administrator.
Is there an option in VS or does anybody know another (easy) solution?
...
I'm looking for a pattern to organize header files for multiple platforms in C++.
I have a wrapper .h file that should compile under both Linux and Win32.
Is this the best I can do?
// defs.h
#if defined(WIN32)
#include <win32/defs.h>
#elif defined(LINUX)
#include <linux/defs.h>
#else
#error "Unable to determine OS or current OS is n...
I want my program to be able to launch any Windows game, and while the user is playing it, intermittently display some text or pictures in some part of the game window. The game may be in windowed or full-screen mode. From what I have been able to figure out from online resources, this could be done using a graphics library that supports...
I know you can edit a hosts file to redirect a URL to an IP address as so:
127.0.0.1 google.com
but how do you force a redirect to a URL instead of an IP address?
e.g.
mysite.com/welcome.aspx google.com
The explicit URL doesn't work and assuming mysite.com's IP is 222.222.222.222, the following doesn't work either:
222.222.222.222...
I got a lot of theoretical answers from Google that WCF is better than Web Service etc. etc. But I want to know from the programming and implementation point of view. I am very new to coding and want to know that how do we implement all three of these technologies? How are they different and in which scenario we should used which technol...
I'm reading real-time data over USB, but the data is buffered. How do I stop the buffering?
...
I'm really quite frustrated at this point. I have an existing hg repository that has months of coding history in it, and I want to get this into a private Github repository so I can work on it from there. Unfortunately I use Windows and I can't seem to find any way to convert the repository that I can actually get to work properly. Pract...
I tried Sysinternals - Process Monitor, but there is no way to dynamically attach filters for child processes
...
I am trying to get unicode working on windows in a visual studio 2k8 project, and I am not sure why I can't get my project to work. My machine has all the Eastern language support installed. I went to properties->project defaults->character set: and it is set to "Use Unicode Character Set". Here is my test code:
#include <stdio.h>
#incl...
#include <errno.h>
/* compress until end of file */
do {
strm.avail_in = fread(in, 1, CHUNK, source);
errno; //<-----DEBUGGER "CXX0017: Error: symbol errno not found"
perror("Error:");
if (ferror(source)) //<--ferror = 32 but there is no string from perror?
{
//error handling
...
Let's say I have an allocation in memory containing a string, "ABCDEFG", but I only have a pointer to the 'E'. Is it possible, on win32, to free that block, given a pointer that is within the block, but not at the start? Any allocation method would work, but a Heap* function would be the path of least resistance.
If not a native solutio...
In order to make one of my programs more aesthetically pleasing I'm using images to create the boarders, however I want to create a non square boarder so the program looks kinda like this
___________
/ /
/__________/
How should I go about this?
This is on windows 7, btw.
Edit:
A tried to make a pseudo-edge using tra...
icacls d:\users\dptname\username /grant:W company-domain\username:(OI)(CI)(M)
error says: invalid paramter "/grant:W"
why?
...
I installed eclipse, cdt and mingw on my windows XP machine. added C:\MinGW\bin to my PATH.
Created a new c++ project, with one file in it, test.c. the code in it:
int main(){
int i=1;
}
Trying to build, I get the error:
/mingw/lib/libmingw32.a(main.o):main.c:(.text+0xd2): undefined reference to 'WinMain@16'
Notice it's not compl...