windows

Windows Service running but event logs not working.

I have a windows service listening to messages from a queue but the messages are not read from the queue.I created an event log to check for logs during service startup and shutdown but the logs are not written. I do not want to debug the service since it is a painful process.Is there a way to solve this issue.The messages need to be rea...

Error loading PHP modules

I'm running PHP 5.2.8 on Apache 2.2.11 on Windows XP SP 3. In php.ini, extension_dir = "C:\Program Files\PHP\ext" extension=php_mysql.dll In error.log: PHP Warning: PHP Startup: Unable to load dynamic library 'C:\\Program Files\\PHP\\ext\\php_mysql.dll' - The specified module could not be found.\r\n in Unknown on line 0 php_mysql....

Predefined squareroot function without using sqrt() from math.h in C

Homework question: Cygwin GNU GDB Cygwin GNU GCC Attempting to establish the length of the hypotenuse C from the square root of A power of 2 and B power of 2. Example input: Enter the length of two sides of a right-angled triangle: 2.25 8.33 Answer: The length of the hypotenuse is: 8.628523 Question: when I specify the same i...

Prefered method to map a remote filesystem in windows ?

For a current project, I need to allow users to access their files remotely from Windows. I'm looking for a solution with an explorer integration (using Shell Namespace Extensions). I first try using WebDAV and the built-in client in Windows but the client is not of equal quality in all Windows version and adding SSL and/or authenticati...

What JVM can be run under Mac OS 7.5?

I have a request for a contracting gig and one of the requirements in the first draft of the specs says the software (a GUI application for end-users) should run on Win 2000 and Mac OS 7.5. I have no idea why they would want to support such ancient systems, but I guess it leaves me with Java as the only option other than raw C, or doesn'...

C++, windows->linux porting, mapfile problem

Hello. I'm porting a small C++ console application from windows to linux, GCC 4.3.2. When compiling I get strange error that I'm unable to solve. Labels.cpp: In function ‘void DumpSymbols()’: Labels.cpp:68: error: invalid conversion from ‘int’ to ‘std::_Ios_Openmode’ Labels.cpp:68: error: initializing argument 2 of ‘std::basic_ofstrea...

getting users and groups from Windows

Hi all, I'm using a Java program that has to gather info that can be derived from the user's group. How can you get a user's group name from windows? Is it found in a file or is there some method/API for getting it? Please let me know. Thanks, jbu ...

installing subversion: how to set up server?

Hi all, I'm trying to install subversion differently from the way it's installed currently. We currently have a networked computer that hosts a SVN repository. We access the repository through windows file sharing capabilities. Currently anyone can check out as many working copies as they want. I was told by someone at work that we ...

How do I write a C++ program that will easily compile in Linux and Windows?

I am making a C++ program. One of my biggest annoyances with C++ is its supposed platform independence. You all probably know that it is pretty much impossible to compile a Linux C++ program in Windows and a Windows one to Linux without a deluge of cryptic errors and platform specific include files. Of course you can always switch to ...

What is the best way to calculate a checksum for a file that is on my machine?

I'm on a Windows machine and I want to run a checksum on the MySQL distribution I just got. It looks like there are products to download, an unsupported Microsoft tool, and probably other options. I'm wondering if there is a consensus for the best tool to use. This may be a really easy question, I've just never run a checksum routine ...

WPF equivalent of Application.AddMessageFilter (Windows Forms)

Hello. I was using Application.AddMessageFilter() in my WinForms applications (when working with unmanaged code). Now I'm switching to WPF and can't find this functionality. Please advice where it can be found or implemented. Thank you. ...

In a .NET service application, where do I add the functions that it should perform?

I know how to "create" a Service application. I know what to write in the main() function. I know how to add an EventLog (or other components) to the service. I know how to define what happens when the service starts, stops or resumes. What I want to know is this... I want my Windows Service to perform certain function (like Indexin...

How to filter windows messages from a managed DLL

How can I get UI framework independent (WinForms, WPF, other frameworks) way to filter windows messages? Thank you. ...

Wildcard Subdomain Setup on Windows 2003

I am trying to setup an internal staging server for a web application that relies on wildcard subdomains. I would appreciate some guidance in how to setup wildcard subdomains with Windows Server 2003 DNS. (I don't seem to be able to enter "*.domain.tld. IN A 1.2.3.4" directly) Thanks. More information: I have a zone MY.LAN, under...

Django Apache/mod_python Admin CSS not appearing with admin tables

I have Windows XP/Django/apache/mod_python working on localhost. All parts are working with the exception of the admin CSS not rendering. The admin works, but no html formatting. I've made additions in: settings.py INSTALLED_APPS 'django.contrib.admin', urls.py from django.contrib import admin admin.autodiscover() (r'^ad...

where property.setting value stored in c# windows application

I thought it should be a config file, but cannot find it. thanks ...

Retrieving graphics/sound card information on Windows

Hello everyone, I'm working on a bug reporting tool for my application, and I'd like to attach hardware information to bug reports to make pinpointing certain problems easier. Does anyone know of any Win32 API functions to query the OS for information on the graphics and sound cards? Thanks, Rob ...

Java: Handle logoff or shutdown on Windows and Linux

Is there a way for a Java GUI application to respond to system shutdown or logoff events, other than to use JNI? (On Windows, the JNI would use WM_QUERYENDSESSION, on Linux?) The method should allow the program to prompt users to save, etc., and then continue the logoff process. ...

Best approach to collecting log files from remote machines?

I have over 500 machines distributed across a WAN covering three continents. Periodically, I need to collect text files which are on the local hard disk on each blade. Each server is running Windows server 2003 and the files are mounted on a share which can be accessed remotely as \server\Logs. Each machine holds many files which can ...

What's the maximum number of threads in Windows Server 2003?

Does anyone know? And a bigger question is what happens when you encounter this maximum? Is this the same number with other Windows OSs such as Vista, XP etc.? ...