windows

Windows Folder Security when sharing through a website

I'm working on an application that serves up files (e-commerce downloadable content.) The content is stored on a windows folder share on the server and the application then provides access to that content when the uses requests it. Essentially there is a DownloadFile.aspx?fileId=XXXX Anyway I'm having issues getting the security right o...

Is it possible to programmatically set the user account for a windows service?

I have created a windows service that has the Account set to user. Which means that when I install the service I need to pass a user name and password. Is there a way to set these maybe in the ProjectInstaller class maybe in the BeforeInstall event? if so HOW? ...

Encoding problem - Win Xp vs Win 2003

There are 2 machines, one with Xp one with Win 2003. Both are Japanese versions! If you get the available encodings (via Regional Settings or programatically, Encoding.GetEncodings() ) this happens: on Xp, the resulting list is in Latin characters on Win 2003, the list is in Japanese characters Some guy at work though to persist t...

Windows Service Hung on Starting during boot

We have two services developed in Visual Studio .NET 2008 with VB.NET. Both were developed completely separately by separate individuals (one of them being myself), but both are reporting the same error during boot: "service hung on starting" appears in the System event log after booting. The services proceed to start up fine after tha...

Default Fonts in Java

I have some Swing code (written in 1.6 for 1.6) that specifically sets the font in a text area to Courier, but on some Windows systems, this shows up as Arial (the system default?) instead. Does that mean a font is missing from the system? What is the behavior Java has when it can't find a font it is looking for? Does it complain? Do...

How can I get an HDC object from a CDC object?

I have an object, dc, of type CDC and I'd like to get an HDC object. I read the MSDN documentation here, but don't really understand it. Can someone provide me with a brief example/explanation on how to do this? ...

Creating a "Unsafe" File Format - OK on Local File System, but Prompt from Browser

What is the correct way to create a file extension (and maybe a MIME type) that will run from your local file system without prompt, but if you browsed to that file through Internet Explorer or Firefox you would get prompted (warned)? What is the exact mechanism in the windows registry that controls this? ...

Rails : Rake Test:functionals cannot access DB (Sqlite3 on winXP)

Hi, I am unable to run rake test:functionals with SQLite3, it gives me this error : rake aborted! Permission denied - db/test.sqlite (See full trace by running task with --trace) My setup is on Windows XP. Tests were working a few weeks ago. Rails 2.3.2, Rake 0.8.7, sqlite3-ruby 1.2.5 gems I am using Netbeans for development, but e...

Cross-compiling with OpenSSL for Windows

I'm trying to compile the oauth-utils http://mir.dnsalias.com/oss/oauth/start for Windows from Ubuntu. I have compiled it on Windows before (a few months back), but wanted to try cross-compiling. I got openssl build using mingw32 ok, and put libssl.a and libcrypto.a in the right place. The linker is now finding the libraries (yay!) bu...

Bandwidth throttling software

I need to be able to simulate high bandwidth/high latency/high packet loss on my pc for the purpose of testing the software that I'm writing. I've seen some software that you can install on a separate machine that will act as a throttling router/gateway but 1) I didn't really trust the companies that I found 2) A separate machine isn't...

In GTK, how do I make a window unable to be closed?

Example: graying out the "X" on windows systems. ...

Scrollbar flicker

I have a problem with the way my scrollbars are drawn. Because of external limitations (my application being a plugin running in an external window that insists on painting over any regular child window), I have to use SCROLLBAR-class windows (as opposed to using WS_CHILD | WS_VSCROLL) For almost every message received, the scrollbar is...

Oracle's NCHR() function is behaving differently across platforms. How to fix?

I am encountering an issue with some Oracle code which uses the NCHR function. The same code is running on Windows/Ora10g and Linux/Ora11g, yet it behaves differently. The NLS characterset is identical on both instances. I am trying to determine if this is an issue with Oracle versions or because of the OS. Has anyone encountered thi...

How can you access SVN over HTTP in a Windows environment?

What's the best practice for accessing SVN over HTTP in a Windows environment? In Linux, we connect SVN to Apache all the time, so we can address remote repositories over HTTP. Is there a way to connect SVN to IIS, or some equally handy way to let you access an SVN repo on a Windows machine over HTTP? ...

Qt dialog with no window icon (system menu)

Is there a way to create a window (such as a QDialog), without a window icon on the top-left corner? I have tried using a transparent icon but it leaves a blank space there. Edit: richardwb's solution below removes the system menu, but also removes Minimize/Maximize/Close (caption buttons) as well. This might do for now, but hopefully t...

Is there a way to create a top level window besides Form in .NET?

Is there a way to create a Control that can display on the desktop without the use of Form? For example, displaying a splash window? I know that it's easy to create a splash window without any borders, etc. using Form. But that's just an example. I'd like to know if it's possible to create a top level window without all the baggage th...

.NET or Windows Synchronization Primitives Performance Specifications

Hello *, I am currently writing a scientific article, where I need to be very exact with citation. Can someone point me to either MSDN, MSDN article, some published article source or a book, where I can find performance comparison of Windows or .NET Synchronization primitives. I know that these are in the descending performance order: ...

How to monitor Windows Dialog?

I am looking for a way to monitor Windows dialog during a MSI deployment. Here is my situation: we have machines deploying daily MSIs and once in a while, one of them fail and shows a Windows dialog with an error message. I am trying to find a way to write a script (maybe in Powershell) which will run every minutes and look for a Window...

How to force an application that autostarts from CD to run in "Compatibility Mode"

We distribute an app that needs to be run in XP Compatibility mode on Vista 64 bit. But it autostarts (it runs from a CD) not from a shortcut. Anyone know how to force it to start in XP Compatibility mode. ...

C++ Using windows named pipes

For some reason both the mast and slave fail, however I could find any good examples on how their meant to work, so im not sure where I went wrong. The master never exits the WaitForSingleObject after ConnectNamedPipe, and the slave throws an exception in the first boost::asio::read call, "Waiting for a process to open the other end of...