windows

Why compilers creates one variable "twice"?

Hi, I know this is more "heavy" question, but I think its interesting too. It was part of my previous questions about compiler functions, but back than I explained it very badly, and many answered just my first question, so ther it is: So, if my knowledge is correct, modern Windows systems use paging as a way to switch tasks and secure ...

How will I convert characters? Or other solutions.

I found out (though my other question) that my IME outputs Hangul Compatibility Jamo (U+3130 – U+318F) instead of regular Hangul Jamo(U+1100 – U+11FF). So I tried asking a question in superuser about other IMEs, no replies yet. Should I just convert it myself? What exactly does that entail? Is it too complicated? Any ideas on how to? ...

What software libraries are available to programmatically create photomosaics?

I'm looking for a library to programmatically create photomosaics of pictures of my kids... it's a toy side project. I'm on Windows and would prefer a windows-based solution, be it Java or something else that I could run from the Java platform (even if it's .Net, that's cool, as long as I can execute it from CMD). It needn't be free or...

Is it possible to read a filesize directly from MFT info in windows?

Is it possible to get file size info in MFT? I want to make use of dwRecLength, however I found it is 0 sometimes. struct NTFS_MFT_FILE { char szSignature[4]; // Signature "FILE" WORD wFixupOffset; // offset to fixup pattern WORD wFixupSize; // Size of fixup-list +1 LONGLONG...

Python packages installation in Windows

I recently began learning Python, and I am a bit confused about how packages are distributed and installed. I understand that the official way of installing packages is distutils: you download the source tarball, unpack it, and run: python setup.py install, then the module will automagically install itself I also know about setuptools ...

Please introduce some distributed file system under windows server 2003

I am doing load balancing under (windows 2003+tomcat 6), and it requires a shared folder which is exposed to each of the tomcat web application instances that may run on different host OSes. THere may be intensive I/O operations on the shared folder. So DFS, OpenAFS.....,any clue? ...

Can modules be added to python search path (e.g site-packages dir) using symbolic links on windows?

I tried to create a symbolic link in python site-packages directory using mklink /D syntax (on Windows 7 machine). Unfortunaly the module is not found when using import clause. When I copy the module physicaly to site-package directory, it works ok. Am I doing something wrong or is this just not possible on windows. I am using python 2.6...

What is the difference between WM_QUIT, WM_CLOSE, and WM_DESTROY in a windows program?

I was wondering what the difference between the WM_QUIT, WM_CLOSE, and WM_DESTROY messages in a windows program, essentially: when are they sent, and do they have any automatic effects besides what's defined by the program? ...

Is there any reliable API to Get Windows Folder in Windows?

Is there any reliable API to Get Windows Folder in Windows in C++? I am using the following way, however it failed. BOOL CQUserInfoHelper::GetWindowsPath(CString& strWindowsPath) { TCHAR windowsPathTemp[MAX_PATH]; int nSize = MAX_PATH; ::GetWindowsDirectory( windowsPathTemp, nSize)...

How to read from env in Windows in c++

I want to get system folder in windows, by reading SystemRoot. How can I do it? many thanks! ...

Scaling problem with metafile playback

Hi, I am creating a metafile using VC6 and playing it back. The code to create the metafile just draws a few lines of thickness 1: CMetaFileDC memDC; CRect rect (0, 0, 100, 100); memDC.CreateEnhanced( CBrush m_brush(RGB(255,255,255)); CPen m_pen(PS_SOLID, 1, COLORREF(RGB(0, 255, 0))); memDC.SelectObject( memDC.SelectObject( m...

Mouse pointer state in Windows applications doesn't change until mouse moves

Did anyone notice that in Windows applications the mouse pointer doesn't change from Hourglass back to normal until you move the mouse? So even if your application has finished a task and the mouse pointer has been set to go back to default, it will stay as an hourglass until you move the mouse. What is the reason for this, and can be ...

peer to multi-peer interprocess communication

What is the best method for peer to multi-peer interprocess communication in windows. ( One application will send interrupts to many listeners ) One method comes to my mind is to use SendMessage with the HWND_BROADCAST parameter. What else I can do? ...

Simulating a MIDI device - Windows

Hi, I need some advice on windows programming, MIDI and WDM. I am trying to write a small application that will sit in the sys tray and be advertised to the system as a MIDI In/Out device so that MIDI programs can send to it and it will convert the messages into a different format. I have been reading Cant's WDM book and scouring for...

files/folder creation in Windows OS

can anyone provides me details of files and folder which not allow to create in Window OS. Except these * PRN * AUX * NUL * LPT1 * COM1 * Potential drive letter - A: to Z: * A number of others ...

Problem with WH_JOURNALRECORD hook in Windows (C++) - Callback never called.

Hello everyone, The following code has been giving me some troubles for the past few hours. I'm trying to write a small program (based on some tutorials from the web), that uses a WH_JOURNALRECORD windows hook to log keystrokes. Main code: #include "StdAfx.h" #include <tchar.h> #include <iostream> #include <windows.h> using std::cout...

No more SVN console client for Windows?

Am I right thinking that Tigris.org have stopped maintaining their SVN binary package for Windows including Apache 2.x compatible package? It isn't listed any more on the Download page. It's very interesting why does it happened? What alternatives are there now? Only SlikSVN? Does it have any differences with old Tirgris SVN? And how t...

interface type for a drive letter

hello experts.... Any suggstions on getting the interface type for a drive letter ( G: ) ( not using wmi ) Thank you ...

Check if user has write permission in "Program Files"

I need to check whether the current user has write permissions inside the Program Files folder. The main problem occurs in Vista/7 - If I just try to create a temp file in this location I get an exception, even if the user can perform such an operation using the Windows Explorer (After allowing UAC elevation). Sounds reasonable, as the p...

schedule java program

I want to run my java program in regular interval , lets say, in every 3 hours. I am thinking to write a .bat file and put command to call java class. But what is the best way to run .bat regularly in windows xp. Thanks in advance. I dont want to use third party tool. ...