windows

Process memory increases much faster with gflags +ust

Hello all! I've got stuck in a problem with gflags when trying to find some memory leaks in a windows app. When I turn on the ust flag (in order to collect memory allocations stack traces) the memory of my application increases much faster than it does when the flag is off (it reaches to 800MB in 10 min aprox. which is far from the 50-1...

finding whether an exe is dynamically linked (windows)

How to find whether an exe is dynamically linked or statically linked in windows? ...

Install Windows service for a Sharepoint application

Hi, I have written a Windows service to send mails to users in a Sharepoint list based on some condition. The development server is a stand-alone Sharepoint installation and the Windows service works fine. But,the Production environment has the application(Sharepoint) and Database(SQL) residing on different servers. So when the Windo...

Can I use C++ templates to generate Unicode/ANSI variants of a function, rather than using the preprocessor?

We've got a bunch of legacy code that doesn't support Unicode, so a transitional pattern we use in our code is to move the function to a .inl file, change char to CHAR_TYPE, and then wrap it up like this: #define CHAR_TYPE wchar_t #define STRING_TYPE std::wstring #define MyFunctionName MyFunctionNameW #include "MyFunction.inl" #undef C...

Windows 7 Application Icon and Taskbar

I have an application that uses 25x25 png image for application icon on Windows xp this fits perfectly on the taskbar however I installed Windows 7 on a virtual machine and taskbar on windows 7 resizes the icon, it becomes a big blur. What type of icon should i use the on the task bar? Forgive my ignorance, if this is a stupid question b...

Get Link Speed - Win32_PerfRawData_Tcpip_NetworkInterface

Hi, I found Determining the network connection link speed and now I am trying to correlate the data from Win32_PerfRawData_Tcpip_NetworkInterface with Win32_NetworkAdapter (or Win32_NetworkAdapterConfiguration). On the class Win32_PerfRawData_Tcpip_NetworkInterface I don't see any index or unique key that I can use to reference Win32_...

What's the best approach for creating visually appealing windows applications?

I am currently working on my final year project. I'm trying to implement a system which takes sound as a input from microphone and, according to that sound, the UI displays different images. For example, if I input the sound of a dog, an image of a dog should display. Similarly, if I input the sound of a cat, an image of a cat should a...

Validity Check, which button image should i use?

Hello, in my software there is a validity check, which checks each input in my form. The user can click on a button to do this check. My question is, if there is a recommendation which button-image should be used for a validity check, to get a homogenous gui in a windows-environment. Or are there some gui-design-guidelines which describ...

Unziping files to existing directories in Visual Studio 2005 C++?

I have a possibly pre-existing directory structure on the client machine server that looks like this: -| +css |-ABC |-EFG |-XYZ +img |-ABC |-EFG |-XYZ +js |-ABC |-EFG |-XYZ +htm |-ABC |-EFG |-XYZ When we send our customers updates to their e-commerce websites we send them in a zip file, which has the follow...

Python check windows server version

I need to log the current windows version in my python application for reporting purposes, but the built in functions I've found so far cant tell the difference between Windows client and server versions: os.sys.getwindowsversion() (6, 0, 6002, 2, 'Service Pack 2') platform.release() 'Vista' platform.win32_ver() ('Vista', '6.0.6002', 'S...

Simple check in java to find out if running as administrator

Is there a simple, quick, non-invasive windows admin task that can be performed from a java process to validate if the current process is running as administrator? I know we could run batch commands to check if current user is member of administrator group. But there are complications of portability across Vista etc. A simple example w...

What is the COMDAT section used for?

I see the /Gy option and am wondering why I would use it? http://msdn.microsoft.com/en-us/library/xsa71f43.aspx ...

Free, portable, all included, all in one, php Apache based server?

Free, portable, all included, all in one, (opensource is + ) php server? I have a USB FLASH 16gb card. I want to install on to it some kind of PHP server - some programm.exe which i could run on different computers without installing - call some localhost/phpserver and get my php scripts running. So where to go to get such thing? ...

How does a Handle relate to a thread?

How exactly does a Handle relate to a thread? I am writing a service that accepts an HTTP request and calls a method before returning a response. I have written a test client that sends out 10,000 HTTP requests (using a semaphore to make sure that only 1000 request are made at a time). If i call the method (the method processed before...

Send Ctrl-C to process open by java

Under Windows OS. I start a sub-process via a Runtime.getRuntime().exec(); I want to send a "ctrl-c" to the process. I did a small example , with Runtime.getRuntime().exec("ping google.com -n 100000"); The code can be found there : http://pastebin.com/f6315063f So far, I tried to send the char 3 (ctrl-C character) via Process outputSt...

FTP permission denied error

I am trying to FTP a RAR (zipped) file to another server but am having problems doing so. This is a Windows environment. I know that my FTP connection is setup correctly because I have already transferred over several other RARs. But the difference from what I can tell is that this RAR that is failing is larger in size. It is 761 MB....

php won't include an existing file: permission denied

You will laugh if you read to the end of this :) This is now driving me nuts - can't get php to include an existing file with proper permissions set etc. I have test.php file and "lib/tools.php" file. I run the following code: $fn = 'C:\Sasha\ThreeDiamonds\www\lib\tools.php'; if(file_exists($fn)){ echo "Trying to INCLUDE THE BLood...

Using the Python shell in Vi mode on WIndows

I know that you can use the Python shell in Vi mode on Unix-like operating systems. For example, I have this line in my ~/.inputrc: set editing-mode vi This lets me use Vi-style editing inside the Python shell. But can this be made to work when using Python on a Windows XP box? I'm using the pre-built Python for Windows downloaded di...

Printing to a Local Shared Printer When the Network is down

I have some legacy application logic that sends files to an attached printer using a DOS copy command: copy fileToPrint \myLocalComputerName\printerShareName The problem is that even though the application is running on the computer that's physically attached to the printer since it's using a network "share" it requires the network be ...

Comparing signatures in Ink Serilized Format

Hey guys, I have a load of signatures I wish to compare (all in ISF - ink serialized format). Does anyone know how to compare these signatures? Thanks in advance ...