Hello is there any windows API function that would return if drive is writable. Sometimes drive is visible under drives but when trying to programaticly write to it, it gives you a msg box error wich freezes the application until user presses the ok button. Is there any built in function that would check if drive is writable without the...
Hi.
I am compiling this program on Windows, with gcc (MinGW) and GTK+:
#include <gtk/gtk.h>
void *destroy(GtkWidget *widget, gpointer data)
{
gtk_main_quit();
}
int main(int argc, char *argv[])
{
// Initalize GTK+
gtk_init(&argc, &argv);
// Create GTK+ window
GtkWidget *window = gtk_window_new(GTK_WINDOW_TOPLEVEL...
VIDEOINFOHEADER *pVih = (VIDEOINFOHEADER*)pmtConfig->pbFormat;;
...
WriteFile( hHandle, pVih, sizeof(VIDEOINFOHEADER), NULL, NULL );
Through debugging I found WriteFile reports exception, how to solve it?
...
Possible Duplicate:
clear terminal in python
How can I clear the window for all text, so that it looks like it has just been opened?
I've heard os.system("clear") works, but it didn't.
Using Python 2.6.5 on Windows 7
...
My question is what is needed and what are the restrictions of deploying a .Net web application to a specific server.
Does the server need to be running windows?
Does the server need to have the .Net framework installed on it? (is this possible with non-windows servers?)
Does the server need to have IIS installed on it? (is this poss...
I am trying to find a solution to monitor the traffic (in and out) through a specific port. It is not required to capture the packets, or do anyting else. What it does is to be a traffic listener to make sure there are messages sent to or received from this port every 10 minutes. It has to be running at the background all the time (like ...
I need to secure a Solr/Tomcat instance running on Windows 2008. All read/write clients are within the LAN, so I have followed the Tomcat instructions here and the Solr instructions here. I am unsure that is enough,
could you offer me any additional suggestions? or share how you go about securing Solr/Tomcat+Windows.
I also would appr...
Is it possible to compile a Win32 program on a Linux computer without the use of an emulator or Wine or anything?
...
Can anyone point me in the right direction as to what is all involved in developing an interface that will use the COM port to switch a set of dry contacts on and off?
I have an application that I am developing at present that needs to control an external switch that uses wires. The COM port should switch between a short and an open.
C...
I am writing an XML file in rails(running on RHEL) and will then need to post this file across to a windows share.
Sambala was installed so that we can SMB to the share, but after running some test code I get the error:
uninitialized constant ApplicationController::Sambala
samba = Sambala.new( :domain => 'myDOMAIN',
...
I'm writing a software for a call-center. It's somewhat like a ATM program: user can only interactive with it, not with underlying Windows. It takes controls when user logs in to Windows, and when user exits, it logs off Windows.
How can I do that in .NET? A demo will be much appreciated.
Thank you.
...
The following C file gives a bogus result when NUL is piped to it:
int main()
{
printf("_isatty = %d\n", _isatty(0));
}
the result is:
C:\Users\Edward\Dev\nulltest> test.exe < NUL
_isatty = 64
I'm pretty sure NUL (aka /dev/null) is not a terminal device! So I need to detect in another way whether or not the file descriptor corres...
I have an executable that needs to run as an administrator on a Windows system, and it's started by a service. For the sake of simplicity and security, I'd prefer just to let the service run as the 'system' account, but would like the executable that it spawns to run with administrative privileges.
Is there anything like a chmod +s on ...
Can you describe the steps for debugging Perl XS dll on Windows. A UI debugger like Windbg is preferred. I want to be able to set breakpoint on the routines in the dll and examine stack etc.
I have debug build of perl on my box.
...
I want to access a mobile phone connected through a USB port through a simple Windows Application. Is there any tutorial such as http://www.robbayer.com/files/serial-win.pdf (for serial port) which can help me understand the basics of USB port programming in C/C++ ?
...
Hi,
I installed visual studio 2003 on windows 7.But I am getting following error on when I press the F5 for debugging.
Thanks
Error while trying to run project: Unable to start debugging on the web server. Could not start ASP.NET or ATL Server debugging.
Verify that ASP.NET or ATL Server is correctly installed on the server.
...
Hi all,
I am trying to find some info about the nature of name server in Windows server, like BIND stands for Unix or Linux, for instance.
Does anyone know where can I find some tech info about the based system of a name server in Windows? Does it use a file based configuration?
Thanks in advance.
...
I used following line of code to change my computer name:
std::string mystr="MY-PC"
bSuccess = SetComputerNameA(mystr.c_str());
if( bSuccess == 0 )
printf("Unable to change computer name | ERROR %d |", GetLastError());
else
printf("Name changed successfully");
Upon executing the program, 'Name changed successfully' message...
Is there any way to Install and program windows azure in Windows XP operating system?
Any help would be appreciated.
...
I have created a NamedPipe inside a Windows Service and starting the Service Manually or as the System Starts up.
EDIT:
lpszPipename = TEXT("\\\\.\\pipe\\1stPipe");
OVERLAPPED m_OverLaped;
HANDLE hEvent;
hPipe=CreateNamedPipe (lpszPipename,
PIPE_ACCESS_DUPLEX | FILE_FLAG_OVERLAPPED,
PIPE_...