windows

Problem installing Mercurial Activity extension

I'm using Windows XP with installed Mercurial TortoiseHg on it. Now I need to install the external activity extension. I downloaded the extension and enabled it in hgrc. When I'm try to call it using command: hg activity I receive the following error: There are 292 changesets Hg activity options: you need matplotlib in your python p...

make problem with mingw

Hello all, I have a small problem with make and mingw. I usually use Linux and I am not really familiar with windows way of doing. C:\MingGW\bin is in my path (I can launch directly g++ or sh by the windows command line) but when I try to type make I have the following error : make: g++: command not found I do not know which make is...

Call to VB's CreateObject method in C++

Hello, I'm trying to call Visual Basic's CreateObject method from my C++ code. In VB, I'd simply type: Dim obj As Object obj = CreateObject("WScript.Network") And that returns me the object from which I can call more methods. But how can I do that in C++? I'm following the MSDN documentation in http://msdn.microsoft.com/en-us/library/b...

Problems with shared folder in IIS6 on windows server 2003

Hello, We have 3 IIS servers that. We have another file server (windows server 2003 too). The three IIS server have IMAGE folder that point with UNC to the file server. We show the images to the users with transmitFile in ASP.NET. every thing is working great but in the press hours we have every one minute delays. We change a lot of r...

Out of memory exception ? not enough Virtual address range : not enough physical memory

When will a program get an 'Out of memory exception'. Is it when not having enough virtual address range or because of not having enough physical memory? As per my understanding, it should happen only when not enough virtual address is available as physical storage can be made available by paging un-used sections. Please clarify. Than...

Windows Phone 7 Development - Do I need a Service Provider

With the upcoming WP7 release, I am wanting to develop against the framework. I have an iPhone and don't want to get away from using that service. I know Visual Studio has tools to emulate the WP7 device for testing one's apps but this is not a true test. I was wondering if it is possible to get a WP7 without a service, e.g. AT&T, and...

Windows 7 Allocation Unit Size

hello! I don't know if it's the right place to ask such a question but I wanted to know which Allocation Unit Size to use for formatting a hard drive of 320GB under Windows 7 I have 8 options from 512 bytes to 64 Kilobytes. By default it's set to 4096 bytes. so should I increase or decrease it to get optimal performance? no problem fo...

Python/Tkinter: Mouse drag a window without borders, eg. overridedirect(1)

Any suggestions on how one might create event bindings that would allow a user to mouse drag a window without borders, eg. a window created with overridedirect(1)? Use case: We would like to create a floating toolbar/palette window (without borders) that our users can drag around on their desktop. Here's where I'm at in my thinking (ps...

Are BSTR UTF-16 Encoded?

I'm in the process of trying to learn Unicode? For me the most difficult part is the Encoding. Can BSTRs (Basic String) content code points U+10000 or higher? If no, then what's the encoding for BSTRs? ...

wGet problem windows command line

Hi everyone, Basically I'm trying to download images from a website using the following command (SwiftIRC is an easy example to use): wget.exe -r -l1 -A.png --no-parent www.swiftirc.net/index.php This command works fine, however one of the ways I am trying to do it isn't working. When I fire up an elevated command prompt, default to ...

How can I perform a silent upgrade - an upgrade that does not require user intervention, username and password?

We have a client already installed on users machines, we would have liked to have the ability to upgrade this client silently in the background, without any user intervention, the way google Chrome browser seem to work. How can you install an upgrade without requiring the user to re-enter his credentials? How can this be done in Wind...

Can I manipulate a window(process) that I have not created?

Hi, I have this application that I haven't created and I don't have the source for. But it's really handy in handling and recording the time I've used on different projects. But it has this annoying pop-up that comes up that contains a window and some debug text I believe. It wasn't done by a professional, it was just a hobby project. Ev...

LogonUser and others return error 1337 in Windows Server 2003 x86

After some update, I see following issue on all Windows Server 2003 member servers (x86 only): LogonUser, and LogonUserEx calls are failing with error 1337 (The security ID structure is invalid). Basically, following code fails: HANDLE token; BOOL b = LogonUserA( "username", "DOMAIN", "password", LOGON32_LOGON_INTERACTIVE,...

service runs on xp but on win 7 its not running (related to c#)

ServiceController service = new ServiceController("MyServiceName"); if ((service.Status.Equals(ServiceControllerStatus.Stopped)) || (service.Status.Equals(ServiceControllerStatus.StopPending))) service.Start(); else service.Stop(); its working on xp 32 bit but not working on win 7.ti throws a exception access denie...

How to get list of installed applications using Ruby in Windows?

I Know using wmi query "WIN32_product" one can read the list of installed applications but the list is different from add/remove program list under control panel. Another approach would be to read Software\Microsoft\Windows\CurrentVersion\Uninstall in windows registry? I am using the following few lines of ruby code to do that but it is...

windows BAT file for java

I have a stanalone application with a main class which used to run a windows BAT file ,the BAT file which invoke another java class(B),the class B refer so many JARs and configuration files which i configured through "build Path" Now I want to refer the JARs and configuration files in BAT file.How I write the BAT file. ...

createnamedpipe not working in win 7 .how to change security attributes using c#

createnamedpipe not working in win 7 .how to change security attributes using c# [StructLayout(LayoutKind.Sequential)] private struct SECURITY_ATTRIBUTES { public int nLength; public IntPtr lpSecurityDescriptor; public int bInheritHandle; } public bool CreatePipe() {...

How can i monitoring a linux server's resources from windows box ?

Hello, I have a few linux server and want to monitoring their resources from my windows desktop computer. It'd be great if the application is/have/can (etc...); easy-to-use. widget-like looking on desktop. warning on high resource using. ...

Makefile that distincts between Windows and Unix-like systems

I would like to have the same Makefile for building on Linux and on Windows. I use the default GNU make on Linux and the mingw32-make (also GNU make) on Windows. I want the Makefile to detect whether it operates on Windows or Linux. For example make clean command on Windows looks like: clean: del $(DESTDIR_TARGET) But on Linu...

Simple update mechanism for C/GTK app on Windows

Hi, I am developping a C/GTK application. I will soon be releasing a new version, and I thought it would be useful to include some update mechanism to it so that the application will be able to update itself. I really only need something simple; it is sufficient if it only worked on Windows, since on Linux the application is in the rep...