I need to check which key the user must hit to boot their PC from a USB key or a CD.
Does it depend on the BIOS maker, or on the maker/model of the motherboard?
I was told about the nice, open-source Speccy to get some information on the hardware, but is there a library that I could use to get the same info from a (.Net) program and te...
I saw IsInRole method but I can't find information on how to use it with C++.
...
Hi there,
I want to access some pictures saved in a windows folder which is shared to a local network. Is there an easy way to access this folder using cocoa touch on the ipad (connected via wifi)?
Thank you!
...
Hello, I'm using the zend community server on windows vista. I'm following the tutorial in the book Zend Framework 1.8 by Keith Pope.
$this->_view->headLink()->appendStylesheet('/css/main.css');
is not finding the main.css file (404). The actual file path is htdocs/myapp/public/css/main.css . When i take out the slash and chang...
i have a window service program and i need to start another executable from it ,but non of the functions are executed in SvcMain. I searched for the solution but found somewhere written that the initialization should be completed in less than one second or else it wont execute so was the failure of my createprocess
they say for this to...
In C++ is there a way to unconditionally kill a process?
No matter what state this process is in.
I know about TerminateProcess, but it can still fail. What if you don't want it to fail.
Like when you kill a process in Task Manager, it dies; no matter what. That's the kind of killing I'm looking for.
...
I am considering developing a php/MySql website on my Windows machine. But I am worried about complications when I go to put it on the the server at, say, GoDaddy and the issues that may arise from their LAMP (they would use LAMP, right?) stack.
Are they too perilous and/or numerous to rationalize development with the XAMPP (what about ...
When using a HTTP binding in WCF, I need to grant myself special permissions to be able to bind to that port/path. I understand this is because WCF accepts HTTP traffic through the http.sys driver.
In the olden days, we could new up a socket and bind to any old port that wasn't in use, without being an admin. NetTcpBinding is still abl...
I want to add a file type extention called .phtml to the set association page.
In this case I want eclipse to automatically open Zend .phtml files
Control Panel\Programs\Default Programs\Set Associations
...
I'm creating a program that installs a keyboard hook to capture all keys and display some text related to them.
However, I've hit upon a snag, and that is some keys change behavior when the hook is installed.
I'll see about posting a small, but complete, test program, but for now I'll just describe the problem.
The problem exhibits it...
How to well use the WinAPI to manage the fullscreen mode on windows's window ?
Here is my problem :
I have an application which has to be fullscreen.
I use ChangeDisplaySettings() function (winuser.h) with the CDS_FULLSCREEN value to put my window to fullscreen mode when receiving a WM_ACTIVATE with (wParam == WA_ACTIVE || wParam == WA...
When I compile and run my C++ program that deletes a file called example.txt (below)
#include <stdio.h>
int main ()
{
if( remove( "example.txt" ) != 0 )
perror( "Error deleting file" );
else
puts( "File successfully deleted" );
return 0;
}
It comes out like this...
cd c:\Users\Mark\Desktop
C:\Users\Mark\Desktop>app.e...
I know I can use subprocess.Popen to run an executable, and potentially redirect stdin and stdout to files / using pipes to my process. Is there a way to run an executable such that the spawned process has no relation to the current Python process, however? Meaning, I want to start a process in the same way as if I would double-click on ...
I'm having problem at mipmapping the textures on different hardware. I use the following code:
char *exts = (char *)glGetString(GL_EXTENSIONS);
if(strstr(exts, "SGIS_generate_mipmap") == NULL){
// use gluBuild2DMipmaps()
}else{
// use GL_GENERATE_MIPMAP
}
But on some cards it says GL_GENERATE_MIPMAP is supported when its not,...
Below is something that did happen to me and I couldn't get what's wrong. My coworker and me screwed our heads around this. It was in a cross-platform library using the cross-platform toolkit wxWidgets on Windows
#include <wx/wx.h>
class Graph {
public:
// ...
// main1.cpp:4:10: error: expected identifier before '(' token
double...
Is there a way for a batch file (in this case, running on Windows XP) to determine whether it was launched from a command line (i.e. inside a console window) or launched via the shell (e.g. by double-clicking)?
I have a script which I'd like to have pause at certain points when run via the shell, but not when run at a command line. I'v...
Hey StackOverflow, first time posting here after having so many of my Google results come up from this wonderful site.
Basically, I'd like to find the name of the variable stored at a particular memory address. I have a memory editing application I wrote that edits a single value, the problem being that every time the application holdin...
Hi,
I am trying to put together a portable set of files/scripts that will enable me to mimic a unix like environment on Windows.
I do not want to install anything. The setup needs to be able to live on a thumbdrive for example. Currently I am using UnxUtils to provide grep, and more. Im adding these to the Windows PATH environment vari...
TARGETNAME=OneOfMyDrivers
TARGETTYPE=DRIVER
INCLUDES=..\inc;..\..\Common\Crypto
TARGETLIBS=$(SDK_LIB_PATH)\wdmsec.lib
SOURCES=OneOfMyDrivers.c \
OneOfMyDrivers.rc\
..\..\Common\Crypto\aes_modes.c \
..\..\Common\Crypto\aescrypt.c \
..\..\Common\Crypto\aeskey.c \
...
Hello,
I have a site on my server that only works with a www.
example:
http://www.dartmouthplayers.ns.ca/
works but without it, it does not.
http://dartmouthplayers.ns.ca/
But the site's bindings has both listed:
and the DNS has the blank host record:
What did I not set right?
It's odd because:
http://dartmouthplayers.ns.ca/ - re...