windows

Perl packages question

I'm new to Perl. I dowloaded a perl application, that has such a line in a source file: use PWING::Utils::Utils; It imports a file as it seems. I downloaded a plugin for Eclipse [Perl-Eclipse integration]. When I try to start that file as a perl app, it says it cannot find an imported resource. Now the question is, what a perl pa...

How to programmatically detect which drive is used for the swap file on Windows?

All, As far as I know in Windows Operating Systems we have Virtual Memory which is stored on the hard disk. Which drive is used for this purpose ? I have a service that uses a lot of memory so I would like to know whether there is enough disk space. Rgds, MK ...

Resize native window

Hi Does anyone know of a cross-platform way to resize a native window - by native i mean one that runs inside of Windows', Mac's or Linux's windowing toolkit? Any help would be appreciated! ...

What tools can I use to determine the hardware requirements of my application?

For regular readers: The saga™ continues... My app runs fine on my development machine - which was purchased (5 years ago) as a fairly good gaming rig. As such, it's 64bit, has a 2.2GHz clock-speed and has 2GB of memory. The machines at work however, are standard Dell issue office computers and really struggle to even start my app, let...

Exit batch script from inside a function

Hello, I have a problem with my batch file. It builds several programs automatically by doing something like this: set some compilation flags run 'gmake all' call the "check error level" function and if errorlevel 1, exit So it looks like this: set FLAG=1 ... gmake all call :interactive_check set OTHERFLAG=1 ... gmake all call :int...

inherit WPF window, why i can not see the Parent's buttons in the child's window

hi, i have a base WPF window and a second WPF window which derived from it. if i add new items to the child's window, i can not see the buttons that derived from the base window anymore. anyone? idea??? thanx! tali ...

How to start a virtual keyboard without loosing focus in WinXP?

Hello, I need to start a virtual keyboard (namely click-n-type) from my application to allow user input in the active field. When the user focuses on an edit box in my application's window, the virtual keyboard pops out to allow input. However, I can't get this to work in one click. When I use the "start click-n-type.exe" the keyboard s...

How to initialize last item automatically in a struct array?

I am passing an array to a function, and i am initializing it globally with some values. I am using empty string in end of array to determine the array length. Now, Is there some way to automatically initialize the array to have extra empty item in the end of it, so i have no chances to forget it from there? Just like the char[] works, ...

windows anti virus process access level... win32 C++

Possible Duplicate: How can I keep Task Manager from killing my program? how to create such a process via win32 C++ ??? does it require some kernel mode? If you try to close the process of a typical anti virus software from task manager or form processxp it fails... I am looking for a way to make such a process that the use...

How to best deal with Windows' 16-bit wchar_t ugliness?

I'm writing a wrapper layer to be used with mingw which provides the application with a virtual UTF-8 environment. Functions which deal with filenames are wrappers which convert from UTF-8 and call the corresponding "_w" functions, and so on. The big problem I've run into is that Windows' wchar_t is 16-bit. For filesystem operations, it...

Is it correct/proper to use DialogBox as the main window ?

Is it correct-proper as in windows doesn't say it's bad or not recommended. For example like this: int APIENTRY _tWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPTSTR lpCmdLine, int nCmdShow) { UNREFERENCED_PARAMETER(hPrevInstance); UNREFERENCED_PAR...

Сonvert unicode (UTF-8) filenames to ANSI (DOS)

Directory listing with broken filenames encoding C:\Downloads\1>dir 18.01.2010 10:45 <DIR> РЎР?Р>Р?Р?С?Р+ 18.01.2010 10:45 <DIR> Р?Р?С'Р?Р>Р?Рє 18.01.2010 10:45 <DIR> Р"Р?С?Р?Р°С╪Р°-Р>РчС╪РчР+Р?Рё РєР?С?РїС?С? 18.01.2010 10:45 <DIR> Р•Р>Р•Р?РўР Р?Р?Р? Is there any tools for windows t...

C compiler/IDE for Windows 7?

Possible Duplicate: Best C++ IDE or Editor for Windows What is a good compiler and/or IDE for C that runs on modern Windows systems? ...

Where to get the Active Accessibility 2.0 SDK

I'm looking for the Active Accessibility 2.0 SDK but the link on Microsoft Download Center is no longer valid. Do you guys know another place where I can find it? Thanks! ...

VB.Net 3.5 Windows - How to get process User Object count

Hi, Can any one please advise me how I can get the current count of "USER Object"s (as shown in task manager) for the current process. I see how to get the handle count using: Process.GetCurrentProcess.HandleCount But our application can reach a USER Object count of 10,000 just by opening 17 instances of a particular form so we wou...

dynamic arrays and wininet in delphi?

I'm using WinInet to connect and retrieve information from one of our server. I'm using the following: indexdata: array of byte[1..5000] of byte; infoBuffer: array [0..5000] of char; BufferSize: DWORD; reserved: DWORD; text: string; BufferSize := Length(infoBuffer); res := HttpQueryInfo(hHttpRequest, HTTP_QUERY_RAW_HEADERS_CRLF, @inf...

Android Eclipse, Dropbox, Windows and Linux

I'm using my Dropbox folder to store my Eclipse workspace in (instant back ups) but want to develop on both Linux and Windows. (I think) the workspace file stores the location of the Android SDK which is different on both machines /home/android... and c:\android. Is there any way of developing on Windows one minute and Linux the next? (...

Problem to compile a C-program by GCC in the latest Cygwin due to tgmath.h and complex.h

I have successfully compiled a C-program with GCC in Mac OS X and Linux, but have got the following error message in Cygwin 1.7.5: /usr/lib/gcc/i686-pc-cygwin/4.3.4/include/tgmath.h:38:21: error: complex.h: No such file or directory I have noticed that several guys reported that tgmath.h has problems in Cygwin. However, due to the la...

Uploading files to Linux server from Windows C#

I'm still kind of a beginner... I have to write a C# program that works only needs to work on Windows. It has to allow the user to select a file to upload. That file will be uploaded to a folder on a remote Linux server. I know the username, password, and url for this Linux machine. Does anyone know how I go about connecting to the serv...

Visual Studio compiles but the exe isn't there

Source code that compiles fine on other peoples environments won't correctly work in my environment. When I do a rebuild the compile occurs but when visual studio goes to move the exe from /obj/debug/{solution} to /debug/{solution} it cannot find the exe in the /obj/debug/{solution}. To make this even more crazy even after I reinstall ...