windows

How to check if a file can be created inside given directory on MS XP/Vista?

I have a code that creates file(s) in user-specified directory. User can point to a directory in which he can't create files, but he can rename it. I have created directory for test purposes, let's call it C:\foo. I have following permissions to C:\foo: Traversing directory/Execute file Removing subfolders and files Removing Re...

Using Linux vs Windows for development

On my servers I run everything on Linux/ Apache, but for offline preparation before upload of the projects I'm using Windows (Vista) with a local Apache/ WAMP, PHP, Python, GD_image installation and so on. My question, would it be much easier in terms of setting up a good environment if I were to use Linux, e.g. Ubuntu distribution, as d...

Minimal Qt executable-size

Now that Qt goes LGPL I tend to give it a try again. Years ago I decided against for some reasons, one of them being the huge size of executables (Qt on windows). I found a lower limit of about 5MB. Trolltech affirmed this on request but told me, that the granularity will be improved, which would lead to smaller sizes (depending on requi...

How do I get a common-lisp GUI in Windows?

I'm using Emacs, with CLISP and Slime, and want to be able to draw pictures on the screen. I'm specifically thinking about drawing graphs, but anything that would let me draw basic shapes and manipulate them would be able to get me started. ...

How do I create a subdomain on windows?

I just want to add a couple subdomains to my computers FQDN so that I can have some Vitrual Servers (apache.) Any ideas? Note: I need to add the aliases to my machine, like a.foo.com and b.foo.com. I don't think apache makes those aliases. Alternative: I decided that instead of trying to add stuff to my domain name (since then I'd ...

Compile a WinCE app as a PC app in VS2005

Hi, anyone knows a way how to compile a WinCE app as a PC app in VS2005. I want to change a standard MFC smart device app to an mfc windows app. ...

Why KeyTyped event does not show under Linux when typing unicode?

I have a Swing Application running under Linux, that has problems to display accented characters. Looking into the application, I tracked the problem to the Keyboard. I added a new EventQueueManager to intercept all events received. I typed the "[dead acute] [a]" sequence on both systems. In windows I get: D 090116 100330.015000 AW...

How do I make Microsoft VCC crash out on the first build-error?

My automated build process uses a command-line to build something like this: devenv.exe myproj.sln /build release It is a very long build-process which integrates components made by a team of developers. It takes about half an hour to run in release mode. Usually if one thing goes wrong then plenty of other dependancies will go wrong,...

Database/Web servers as a Virtual Machines vs Bare Metal?

Hi! I manage a database (Oracle 8i) and web server (IIS) for about 50 simultaneous users on average and a theoretical limit of 100 simultaneous users. A mid level system. We just got a dual-socket Quad-core XEON - 16GB RAM - SAS-RAID-10 beast and I am exploring the possibilities of taking these two separate servers and merging them in...

PowerShell Windows Installer Com Object

Hello, I'm trying to modify the contents of an MSI file using Powershell. To do so I create an instance of a WindowsInstaller.Installer then use $installer.OpenDatabase and $database.OpenView. Similar functionality works in VBScript and I've seen samples on-line that appear to work. $installer = new-object -comobject "WindowsInstalle...

Seeing the windows of a process running as System account or as a service

Suppose you have a process which run as as service as the System Account, is it possible to view the content of the windows created by the processes created by the service. Suppose for example, that you have a service running as a kind of wrapper which starts Excel. ...

Why is "Microsoft.VisualBasic.Compatibility.dll" missing from the .NET Framework v1.1.4322 folder?

I've started to use a Vista machine for development. In case it is significant: I'm using MSBee so that I can code in the Visual Studio 2005 IDE while still building against the 1.1 framework. On the Vista machine, when I tried to build a particular vb project, I got this error: error BC30464: Namespace or type 'Compatibility' in...

SaveFileDialog blocking removeable drive

I'm using a SaveFileDialog to let a user pick a directory and filename on a removeable drive. Afterwards I create that file, write to it, and close it again. By then the file itself is not locked (editable, deleteable), but I can't eject the drive because windows claims it is still in use. I have to exit the application before an eject ...

Tomcat: setup realm for authentication to use Windows users

I'd like to setup Tomcat on Windows and have authentication in my web application be done against the Windows users (or a subset of those users). I read that if you have users setup on Active Directory, you can use the JNDI realm. What if you don't have Active Directory, but just have "simple Windows users" setup on the server? Is it po...

What do the numbers reported by the Windows TraceRt Mean

I need to create a trace route as part of a .NET appliation to support trouble shooting. I have figured out how to use the .NET Ping class to do the tracing. What I do not understand is what the numbers reported by the command line utility are. This is somewhat censored results of a "tracert yahoo.com" from the Windows command line: ...

Creating a dual Mac/Win Autorun CD

How do I create a CD that opens a "Drag this icon to the Application folder to install" on the Mac and autoruns an installer on Windows? ...

How do I prevent the console from appearing when building a Windows SDL project with Eclipse?

When you run the .exe, the SDL window appears, but so does a console window. How do I get just the SDL window by itself? What configuration option should I be changing? Is there one? I'm compiling with MinGW and using Eclipse Ganymede. ...

What is the purpose of program files directory in windows?

I wonder about this because we are developing an application, after installation some files were copied to program files and some to user profile directory. But, we found some issues w.r.t program files. Now all files are installed in the current user's directory. Even Google Chrome, does so. What do you think? ...

Service Crash loading dll

I have made a new windows service which works fine using barebone code (just the basic framework for a service), however, when i link it against my dlls, lib file to use the functionality in the dll it crashes on start up with a 0xc0000034 error. Is there a special place to put the dlls for a service or a special way to do this? . Edi...

File uploading in asp.net permission error (Access denied to path x)

I'm trying to upload some image files in my asp.net web app. Server OS: Windows server 2003 and IIS 6 I granted write permission in IIS to root and destination folder and granted FullControl Access to this users IUSer_Mashinname, Asp.net user, network services,Everyone, and all other users to the web app root folder and upload destin...