windows

Windows Azure logging: WADLogsTable as Application logs?

With the new changes in Diagnostics monitoring with November Windows Azure CTP, based on what I’ve seen with logging samples I have the following question: Is it a best practice to just use WADLogsTable as the Application log table since you get a lot more baked in features around filtering and configuration etc.? Or do we just have to...

Why is Ruby 1.8.6 RC1 more recent than Ruby 1.8.6 Final?

Getting to the Ruby One-click installer for Windows, we may go to http://www.ruby-lang.org/en/downloads/ and then http://rubyinstaller.org/download.html however over there, it seems that Ruby 1.8.6 RC1 (patchlevel 383) is actually more recent than Ruby 1.8.6 RC2 (patchlevel 27) or Ruby 1.8.6 Final (patchleve...

How can I tell if a file has the Windows "hidden bit" in Emacs?

I use Emacs on various platforms. When I use it on Windows, I don't want files with the "hidden attribute" to show on ido-find-file, dired, etc. I can't seem to find any function in Emacs that can tell me whether a file has the hidden bit or not (file-attributes doesn't seem to, from the help page). Any ideas? ...

Taking multiple files (arguments) from Windows shell context menu on C#

Hi, I am writing a C# application and it takes files as argument, I added it to shell context menu with code listed below; if (((CheckBox)sender).CheckState == CheckState.Checked) { RegistryKey key = Registry.CurrentUser.OpenSubKey("Software\\Classes\\*\\shell\\" + KEY_NAME + "\\command"); if...

Should I take a Python CS class using Windows or Mac?

Hi, I'll be taking a Python-based computer science class next semester using my MacBook Pro. It will be centered around a custom-designed package for this class. The problem is that this package is being sponsored by Microsoft Research, so it was obviously designed with Windows in mind. Supposedly, it runs on Mac OS and Linux too, but t...

windows: is it possible to dump (direct) a text file into a named pipe

I have a setup where a program gets its input like so: 1) user enters a command in a command prompt 2) the text from the command prompt is written to a named pipe 3) a process on the other side of the pipe is reading the input parse and execute the command I would like to have the ability to store a set of commands in a text file an...

Windows Speech Recognition C#

Hi All, I'm making a program that does stuff (Sorry, I'm not allowed to say what it is), but I want to be able to let Windows Speech somehow "know" that there are linklabels and buttons on my Forms, so that when I say "Next" or "Start" etc, it will click those buttons. Just like when you are using IE and you are on Google.com and when y...

How to get creation time(even millisecond) for file - folder in windows c#

Hi , I am working on files and folder ....How i can get the creation time of the file folder even millisecond bcoz i am facing files folder created on same second..i am able to get hr:min:sec but getting millisecond as zero when i use Fileinfo or Directoryinfo.creationtime.millisecond..... Plz how can i overcome this prob...

How can I add the Thumbnails view to TShellList in Delphi?

Hi, The TShellList component is based on TListView which (unfortunately) doesn't have in its ViewStyle property a 'vsThumbnail' (or similar). How can I display thumbnails in TShellList in a similar manner in which Windows Explorer does? A simple Delphi snippet would be appreciated. TIA ...

Why does the 260 character path length limit exist in Windows?

I have come up against this problem a few times at inopportune moments: trying to work on open source Java projects with deep paths Storing deep Fitnesse wiki trees in source control An error trying to use Bazaar to import my source control tree Why does this limit exist? Why hasn't it been removed yet? How do you cope with the ...

CreateFileMapping, MapViewOfFile, how to avoid holding up the system memory

Hi. I'm developing an application targeted for desktop systems which may have as little as 256MB RAM (Windows 2000 and up). In my application I have this large file (>256MB) which contains fixed records of about 160 bytes/each. This application has a rather lengthy process in which, over time, it will be randomly accessing about 90% of t...

How do I prevent Window resizing when the Workstation is Locked then Unlocked?

We have an application that is run in multi-monitor environments. Users normally have the application dialog spread out to span multiple mointors. If the user locks the workstation, and then unlocks it, our application is told to resize. Our users find this behavior frustrating, as they then spend some time restoring the previous layo...

DCOM CoCreateInstanceEx E_ACCESSDENIED

I am working with 2 PCs, both running both running Windows XP. Both have the same application registered with its DCOM interface. Now i'm trying to start the program from one computer on the other. First I called CoInitializeSecurity, after that CoCreateInstanceEx, but the result is a E_ACCESSDENIED. I did also run dcomcnfg, to give an...

singleton pattern in Windows Activation Service

Hello I have a few WCF services that are currently being self hosted, in a very basic NT Service. I want to expand my application to add provisioning of WCF Services, and updates, as well as isolation (I want each WCF Service to be in its own AppDomain). These WCF Services contain logic that needs to be run on a regular basis, pinging...

How to resolve linking error for GetSystemMetrics()?

I'm attempting to use the following to get the height & width of the main display: #include <winuser.h> size_t width = (size_t)GetSystemMetrics(SM_CXBORDER); size_t height = (size_t)GetSystemMetrics(SM_CYBORDER); However, it's failing on an unresolved externals link error (LNK1120). I've tried linking to user32.lib (as documented here...

Setup and Deployment of Visual Studio templates, locating devenv.exe to call in custom actions

I am working on a project that consists of installing some Visual Studio templates. Part of the requirement is that the VS executable must be called during Commit and Uninstall phases to make VS aware of the templates. I don't have much information or any proper examples to go on, and I'm pretty new to setup and deployment projects. S...

In C# .Net, how do I detect if a dialog showed up?

I'm working on an application which prints a report using the Microsoft XPS Document Writer driver. If the user attempts to overwrite a file which is open, the driver pops up an error dialog that the user doesn't have permission to save. However, on one QA's machine, the popup dialog never shows up. I want the application to popup its ow...

Script to create ODBC connection

I need to deploy some software through SMS/SCCM and the software requires that an ODBC connection be created in Windows. The connection information I was given requires a user name and password. I have a batch script to import the connection information into the registry, however I don't know how to go about putting the user name and pas...

Transparent Proxy for Windows XP

I have an experimental TCP/IP stack running under Windows XP. This stack bypasses the Windows TCP/IP stack using a LSP and a NDIS IM. I now have a requirement to provide a proxy service for this to support other platforms that want to use the experimental stack. The proxy must be transparent to the clients (no client configuration). I wa...

Standalone, OS-independent, Architecture-neutral, Multi-threaded Library

What multi-threaded C++ library can be used for writing Linux, Windows, Solaris, and iPhone applications? Such as: TBB Boost OpenMP ACE POCO Any others? ...