windows

PHP App doesn't work after migrating to a Windows machine

Hello; A PHP application that was working perfectly on a LAMP server can't require or include files at all after migrating to a Windows Server 2003 machine. For example, given the following file : include("connectme.php"); echo "==== $SERVER_NAME, $USER, $PASSWORD"; $sql="SELECT id, model FROM `products` WHERE acc_code IS NULL O...

Should I worry about putting a large amount of data on the Windows Clipboard?

If you try to close a Microsoft Office application when you've got a ton of its stuff on the clipboard (e.g. a whole word doc), it prompts you to ask if you would like to access that data after the application is closed. In this day and age, does it really matter if I have say 10MB of stuff on the clipboard? As I write my image process...

Can I host an MMC snapin in an application

Is there a way to host an MMC snapin in an application? Specifically, we have an "Enterprise Management Application" that we use to manage our applications / services, and we want to add certain functionality to this utility that is already implemented as MMC snapins. It would be great if we could just host these configured snapins in ...

how to change default culture settings in a .net web application?

Our web application (.net/C#) formats currency amounts using amount.ToString("c"), shown localized to a few different regions. Our French Candian users prefer all amounts to be the US format (123,456.99 vs. the default windows way for fr-CA of 123 456,99). What is the best way to handle that ? Can I simply modify the regional settings...

ACL Check/Management in C#

I am wondering if there is a way to check a users permissions against an ACL in c#. I am building a large system that is going to use active directory for authentication and I would like to use as much of windows security plumbing as I can. After spending the last couple of hours browsing the System.Security.AccessControl I am not sure t...

Using sqlsrv_connect on Platforms other than Windows

I've inherited some code that uses the sqlsrv_connect method to instantiate a connection to a SQL Server database. My personal development machine is an OS X box that I'm running apache an PHP on. I have an instance of SQL Server running in a virtual machine. When I attempt to connect to the database, I get the following error. Fatal...

OpenCV videos across platform

I am writing a video using OpenCV on linux machine. I want to read the same video using OpenCV on a windows machine. I am not able to do this using the standard codecs provided in openCV. Can anybody suggest how I can read/write videos across the two platforms? ...

FolderBrowserDialog behavior in Windows 7

I'm using a FolderBrowserDialog in my application. If I try to create a 'New Folder' within the FolderBrowserDialog and immediately after I try to rename the 'New Folder' and hit OK (not Enter) the SelectedPath property has the 'New Folder' in it's path and not the name that I entered on rename. Is this a Win7 bug? ...

accessing windows taskbar icons in c++

I am looking for a way to programmatically get the current taskbar icons (not the system tray) for each program that is in the taskbar. I haven't had much luck with MSDN or Google, because all of the results relate to the system tray. Any suggestions or pointers would be helpful. EDIT: I tried Keegan Hernandez's idea but I think I mi...

How to Create Great Looking Buttons in .Net?

I work on C# window 05 and I want to create some great looking buttons like Vista's theme buttons, Animated buttons, or like any custom of VS05 buttons.... How can I create custom buttons like this on window platform? ...

Making a windows shortcut start relative to where the folder is?

I have a game that uses this file structure: GAME FOLDER ->data ->data->run.bat I want to put a shortcut to run.bat in GAME FOLDER, but if I move it, or someone else installs it it won't work because the target is wrong. Is there a way to make the target and "start in" relative to GAME FOLDER? ...

Bug with Python UTF-16 output and Windows line endings?

With this code: test.py import sys import codecs sys.stdout = codecs.getwriter('utf-16')(sys.stdout) print "test1" print "test2" Then I run it as: test.py > test.txt In Python 2.6 on Windows 2000, I'm finding that the newline characters are being output as the byte sequence \x0D\x0A\x00 which of course is wrong for UTF-16. Am I...

How to mark a list control item as selected?

In a Win32 application I have a dialog with a list control which is defined is the dialog template: CONTROL "",IDC_LIST_Attributes,"SysListView32",LVS_REPORT | LVS_SINGLESEL | LVS_ALIGNLEFT | WS_BORDER | WS_TABSTOP,7,36,246,110 In the runtime I retrieve the handle to that control and perform different operations with it - remove ...

Saving application data in Windows XP when "Run As" is 'protecting the computer from unauthorized activity'

I'm trying to make it so I can save data from my program when the user is running the applicaiton through run as like through this dialogue box. I'm finding I cant actually write to any folder and read back from it later on. i've tried 'All Users', Application data, My Documents, etc but to no avail. Any ideas how and where I am suppose...

Any tools available for packing 32bit/64bit executables together?

I really like the way the SysInternals utilities (e.g. Process Explorer) handle 64bit compatibility. It looks like the 32bit executable has the 64bit version embedded in it, and extracts it if necessary. I'd like a tool which automates this - i.e. takes 32bit and 64bit executables, packs them together somehow, and inserts stub code to l...

Chromium Build Fails on Windows

I am attempting to build Chromium for windows (using Visual Studio 2008 SP1) and it fails with about 37 errors. Here's a selection: Error 1 error LNK2005: "wchar_t const * const switches::kProcessChannelID" (?kProcessChannelID@switches@@3QB_WB) already defined in ipc.lib(ipc_switches.obj) common.lib chrome_dll Error 2 error LNK2005:...

Publishing COM/ActiveX interface using SOAP - what's the best solution?

We have a COM api (Windows DLL file) that other systems want to access using SOAP. What would be the best choice for SOAP-enabling this? Interesting parameters are: License costs Ease of setup and maintenance Ease of configuration/development if needed Compatibility Security, security updates etc. All suggestions are welcome, please...

What's the best way to determine which version of oracle client I'm running?

The subject says it all: What is the best way to determine the exact version of the oracle client I'm running? Our clients are all running Windows. I found one suggestion to run the tnsping utility, without parameters, which does display the version information. Is there a better way? Does the client install put this information in ...

git, capistrano and windows please help

hi I am trying to deploy my app to my server using capistrano I am in a Git Bash and have commited everything and setup deloy.rb file and remote repo on Github. Now when i try and cap command even cap -h from Git bash i get error : sh.exe": cap: command not found I am in the correct dir. It seems Git Bash is not linked to capistran...

How to enumerate bound UDP / TCP sockets on Windows in C

Assuming that you do not have access to the SOCKET handlers. ...