windows

Need Database autonumber functionality in files (Windows C#)

I need to store set of key-value pairs in a file. values are name of persons and keys should be auto generated and are hidden to user (like auto-number in database but I do not need DB) how should I do this? ...

Find handle of another application's menu (vb .net)

I want to make a program that will disable menu items of an appication for parental control using user32's enablewindow function. Using spy++ I can find buttons, controls etc, but I cannot seem to find menus and menu items. How could I find the handle for these so I could disable them when the user trys to click on them? Thanks ...

Why is this running like it isn't threaded?

I'm writing a script that will ping my ip range. Here's what I have so far: lines = `ipconfig`.split("\n") thr = [] ip_line = lines.detect { |l| l=~/Ip Address/i } matcher = /\d+\.\d+\.\d+\.\d+/.match(ip_line) if matcher.length > 0 address = matcher[0] address.sub!(/\.\d+$/,"") (1 .. 254).each do |i| xaddr = address + "...

Detect the presence of a wireless capability on PC/Mac?

I'm working on a project that requires that I can reliably detect the presence of a wireless capability on both a PC and a Mac. Ideally I would want to achieve this through an existing command line tool I could package with my application or that perhaps already exists on the OS. By wireless capability I mean the presence of a wireles...

Edit python31 file and it opens notepad and starts python26

I am in python31, then I go to file open i left click to open file and it opens in notepad(simple text editor)python31 The moment it opens the notepad, it starts python26 I thought it has something to open with, and I have changed that to python31 And it still opens python26 EDIT: The file is created by python26, but it is not exec...

Fastest way to write string on Windows?

What would be the absolute fastest possible way to write a string to the standard/console output on Windows? I'm interested in the solution for both null- and non-null-terminated strings. ...

Java: run as administrator

Is there a way in Java to ask the system get control over the system. Without doing: Right click on an exe-> run as admin. What I want is that there comes a frame from uac like in windows vista or windows 7. Or have I to do some settings while making an exe from the jar? ...

Windows Server 2008: connection acceptance policy

Hi, I'm currently testing a webservice on Windows Server 2008. The test program creates hundreds on concurrent threaded connections via 127.0.0.1 to the webservice in order to collect some performance metrics. From the client side most of the connection are established, the SOAP data of the request is also successfully sent, however th...

What is base64 clear text username and password?

Recently I came across this word in a basic authentication article. What it meant by base64 clear text usrname and password on the network? Thanks ...

What are your favorite programmer's utilities for Windows and Mac?

For example, I like KDiff, Console and of course TextMate for Mac. ...

Embed advertisements in a windows application

I'm developing a free application and would like to make some money by embedding advertisements in it. Initially I had planned to embed ads in a webbrowser control (AdSense, Google Ads) but found that this isn't allowed. Does anybody have experience with this? The program is coded in C# and will run on PCs not windows mobile ...

Reliably detect Windows in Python

I'm working on a couple of Linux tools and need to prevent installation on Windows, since it depends on FHS and is thus rendered useless on that platform. The platform.platform function comes close but only returns a string. Unfortunately I don't know what to search for in that string for it to yield a reliable result. Does anyone know w...

Border color of Group Box in windows application

How can I change the border color of group box control in windows application ...

Problem with using signed cab files in IE

Hi, I am trying to create a self signed certificate by using the utilities that come along with MS SDK. I am able to successfully create the test certificate and install it in the trusted root store. I created a sample HelloWorld applet. I created a CAB file with the .class file. I used the Visual studio tool to create the CAB file. Als...

batch file - use of variable

@echo off set filename = cd GWConfig_TDS-mtpe3003 set filename = VCU17_CCU6\applications\VCU17APP GOTO CHECKFILE :CHECKFILE echo reached IF EXIST %filename% ( echo exists ) ELSE ( echo Doesnot exist ) ///////////////////////////////////////////////// Here output shows : reached Doesnot echo "exists" or "Doesnot exist" Is ther...

Delay Loading DLLs

Hi I am in desperate need of help, I need to manage an application dependency in Visual Studio. The application links to a DLL only on a specific version of windows, lets say Windows 7. and on other environments, the DLL should not be loaded. How will I be able to achieve that using DLL Delay Loading as this topic is completely new to m...

How do I make the JDK the default JRE?

I use Eclipse with ant scripts, and Eclipse works well with the default JRE installation on Windows XP. The annoyance comes when I want to run ant scripts compiling with the javac-tag, where it fails because there is no tools.jar in the classpath. I've gotten the idea that if I could make the JDK become the default Java on Windows, the...

Programatically registering .dll's on Windows Vista (using DllRegisterServer)

Instead of calling regsvr32.exe, one can register a .DLL using the following steps: HINSTANCE hLib = ::LoadLibraryEx(dllPath, NULL, LOAD_WITH_ALTERED_SEARCH_PATH); HRESULT (STDAPICALLTYPE* lpDllEntryPoint)(void); (FARPROC&)lpDllEntryPoint = ::GetProcAddress(hLib, "DllRegisterServer"); const HRESULT hRes = (*lpDllEntryPoint)(); This wo...

Trying to run 64-bit tests on 32-bit windows

We're running our unit tests as a post-build step in our builds. Now I've run into a problem with this on our autobuild machines that automatically pull and build every revision in svn. The autobuild script pulls down a revision, does some setup and then calls devenv.exe /build on it. This, in turn, will build everything and then try to...

How come there is no 64bit build of R for Windows?

How come R does not have a 64bit windows pre-built binaries? ...