windows

Silent crash in Visual Studio 2008 c++ application

Hi We have a unmanaged C++ TCP server application running as a Windows service that is silently crashing after few days of run on Win2003 server. There is no Dr. Watson log file getting generated (no issue with Dr. Watson log as it catches other crashes in same application). Due to lack of Dr. Watson log file, we are unable to progress ...

How to escape sprintf() % marks so they wont be recognized as variables?

So is this even possible? If i some day wanted to sprintf(str, "%doodle %d", var); output "%doodle 123" and not "123oodle", how can i stop the first %d from being processed? ...

Windows LDAP Authentication in C++

I am currently trying to authenticate users in a c++ application in Windows. I need to display a dialog for username and password and verify that they are an authenticated user on the Windows machine. Are there any libraries that allow for this functionality or a good way to go about it? ...

Hudson on Windows not detecting CVS checkins

I'm getting odd behaviour from my Hudson setup on Windows when monitoring a CVS repository; access is via extssh. After checking in a change to the repository, if I run "cvs status filename.ext" against the changed file in Hudson's working copy, I can see that the repository has a newer revision. However, Hudson (which is set to poll t...

After Deploying ASP.NET 4 web application to IIS6 server, worker process recycles cause it to stop working most of the time

This is a really odd situation, so hopefully I can explain it well enough. I am deploying an ASP.NET 4 webforms application to a Windows Server 2003 SP2 server running IIS6. Here's the problem -- when the application pool recycles its worker process (w3wp.exe), about 80% of the time, I will get an ReflectionTypeLoadException error t...

How can I cin and cout some unicode text?

I ask a code snippet which cin a unicode text, concatenates another unicode one to the first unicode text and the cout the result. P.S. This code will help me to solve another bigger problem with unicode. But before the key thing is to accomplish what I ask. ADDED: BTW I can't write in the comman line any unicode symbol when I run the ...

Where can I get a prebuilt tcldot dll for Windows?

I have built a tcl program using tcldot on MacOS. I have to supply it to someone who uses Windows 7, but I do not have development tools for Windows 7. The prebuilt binaries for graphviz at http://www.graphviz.org/Download..php for MacOS contain what I need (at /usr/local/lib/graphviz/tcl), but I cannot find the corresponding dll in the...

SetWindowPos Not Working On Windows Server 2003?

I've got a legacy VB6 app that I recently added SetWindowPos to the application to keep it on top. Long story why, but customer requested it. On "normal" Windows machines (2000, XP) it keeps the window on top, but on the Server, it does not. Does anyone have any idea why? Are there any security settings, patches, etc that have disabled ...

Getting 'Access is Denied' exception message when running WCF service on Windows Azure

I am trying to build a Healthvault WCF web service that requires an x509 certificate to deploy on Windows Azure in C# using Visual Studio 2010. When I debug the solution on my local IIS7, I can perform all functions no problem. When I deploy to Windows Azure and try to run any of my methods, I get this error. The server encountered ...

Using Python Image Library with VirtualEnv on Windows.

I'm attempting to install the PIL library in an Virtual Enviroment that I have created. Usually to install PIL I'd grab the install, however this won't allow me to choose my virtualenv only my root Python folder (C:/Python26). I tried both pip install PIL and easy_install PIP but they didn't work. I've also tried downloading the TAR, e...

Information about computer in python

Hi, How would i go about gathering information about a system in python? Seems most of the commands are made for Unix... Are there any options in windows? Thanks, Jake. ...

Apache ant deleting directories no matter what

How do i get apache ant to delete a directory no matter what, even if there are locks or usages of the directory on windows. I am using a continuous integration remote agent on a windows box which fails to delete the build directory and as a result fails the builds which is extremely annoying and is disruptive to the statistics. There ...

Looking for a way to preview an image in my wmv player

Shouldn't be to hard, but I have little experience with this stuff...I want to have a preview image instead of just black for my windows media player. here's what I'm working with: <div id="embed"> <OBJECT id='mediaPlayer1' width="360" height="240" classid='CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95' ...

Callstack on Windows and Mac OS X/Linux without Symbols

On Windows if there is no symbols for a module involved in a callstack, say of a crash dump, then all the call below that module in the callstack would be wrong (not only the names are missed, but also the sequence). On Linux or Mac OS X, if symbols are absent, the function names are not shown, but the call sequence are still remain. W...

With multiple users running the same Windows application from a network file share; what should I look out for?

Currently we deploy one of our applications to every individual user's PC. However, all our users have access to the same intranet. I'm wondering what is stopping us from just putting the binaries on a network file share and letting multiple users run it from there. So my question is: Are there any gotchas with multiple users accessing...

Retrieve all the controls of any window with their types and value

My application is something like the Spy++ application: i want to be able to automatically retreive all the different controls of the active window (any application) and their children, and for each control i want to know the type, the name, and the value (caption or text). I am using a C# windows app. what is the solution to iterate ...

Joomla crash after installation.

http://localhost/joomla/administrator/ The web browser returns an error that the page does not exist after I complete the installation and deleted the folder. I have to use apache2. I am also using the latest version of apache, mysql. Im using php 5.2.13 VC6 x86 Thread Safe. I used a combo of two tutorials: Tutorial 1 Tutorial 2 When...

How to fill memory fast with a `int32_t` value?

Is there a function (SSEx intrinsics is OK) which will fill the memory with a specified int32_t value? For instance, when this value is equal to 0xAABBCC00 the result memory should look like: AABBCC00AABBCC00AABBCC00AABBCC00AABBCC00 AABBCC00AABBCC00AABBCC00AABBCC00AABBCC00 AABBCC00AABBCC00AABBCC00AABBCC00AABBCC00 AABBCC00AABBCC00AABBCC0...

Best way to convert ODBC DATE_STRUCT to a localized short format date string

I found GetDateFormat, but that doesn't work with null dates (where I want 00:00:0000) as output. Is there any localized, ie. using the 'Short date:' field of 'Regional Options' from the 'Regional and Language Options' Windows configuration dialog, API I can use? ...

Determine if Linux or Windows in C++

I am writing a cross-platform compatible function in C++ that creates directories based on input filenames. I need to know if the machine is Linux or windows and use the appropriate forward or back slash. For the following code below, if the machine is Linux then isLinux = true. How do I determine the OS? bool isLinux; std::string sla...