windows

Alternative for Windows Task Scheduler

hi, I need a Task Scheduler for Windows. Unfortunately the builtin scheduler doesn't meet my needs, which are: can run tasks every minute/hour runs on Linux and Windows 32 and 64 bit versions GUI interface free Nice to haves: supports CRON files open source status reports of execution times thanks! ...

No database connectivity from within Windows Service

Hi folks, I'm trying to write a service in CBuilder 6 (target XP Pro). Part of this service's job is to monitor and update a table on a database. We use direct ODBC to connect to the database, but the problem is happening with ADO as well, so we'll use that for simplicities sake. You can see my code below. This is called from a func...

How can we watch the Rails development log?

A member of my team is developing a Rails app on Windows XP. We are finding that when we run the app, either launching it within NetBeans or by opening a console and calling script/server, the Rails development log does not scroll by. There is only the Webrick startup message. The app is definitely running, but when we hit various pages ...

Open a new browser window from embeded Internet Explorer

I am working on a Windows desktop app (C++) that has an embedded Internet Explorer page. I'm working on the html page that is displayed in the There is not a back button control, so one of the requests is that links clicked on in the page should open the link in a browser window. It can open the link in the users default browser or in IE...

Domain Suffix added to DNS Queries

I have a reoccurring DNS problem that has been plaguing our users, occasionally causing their laptops to append our company's domain to the end of all DNS queries. The problem only occurs when users are off site and it appears to be fairly random. It will work one day and then, out of the blue, it will show the invalid entry. This eff...

Java memory usage with native processes

What is the best way to tune a server application written in Java that uses a native C++ library? The environment is a 32-bit Windows machine with 4GB of RAM. The JDK is Sun 1.5.0_12. The Java process is given 1024MB of memory (-Xmx) at startup but I often see OutOfMemoryErrors due to lack of heap space. If the memory is increased to 1...

Still nmake problem with Unicode-Map-0.112 after trying vcvarsall.bat

Many thanks to ephemient for recommending to try vcvarsall.bat. In DOS successfully ran vcvarsall.bat, which was part of MS C++ Express 2008 Next I continued to try to follow the PerlMonks advice by using ppm, i.e. http://www.perlmonks.org/?node_id=434813 So I tried to make, really nmake Unicode-Map-0.112 again. I received one more ...

Patch stack tools for Windows

Are there any equivalents in the Windows world for patch stack management tools like Linux's quilt? I'm trying to come up with some development workflows for our environment, which need to work on both Linux and Windows. I can come up with a beautiful system for Linux using quilt and the like, but unless I can find a way to replicate i...

How to determine if the current Windows session is locked or not?

I have an application which runs every hour on a Windows XP Machine. To run properly, this application requires the current session to be unlocked. So I was wondering if there a way to know if the current Windows session is locked or not with C# and .NET 3.5. UPDATE: The application cannot listen to the SessionNotification events. The a...

Cross-platform subprocess with hidden window

I want to open a process in the background and interact with it, but this process should be invisible in both Linux and Windows. In Windows you have to do some stuff with STARTUPINFO, while this isn't valid in Linux: ValueError: startupinfo is only supported on Windows platforms Is there a simpler way than creating a separate Pope...

Windows ring buffer without copying

On Ring Buffer's Wikipedia entry, there's example code showing a hack for UNIX systems whereby the adjacent virtual memory to a piece of memory is mapped to the same phbysical memory, thus implementing a ring buffer without the need for any memcpy, etc. I was wondering if there's a way to so something similar in Windows? Thanks, Fraser ...

OpenFileDialog filename as UTF8

Hi all, C# question here.. I have a UTF-8 string that is being interpreted by a non-Unicode program in C++.. This text which is displayed improperly, but as far as I can tell, is intact, is then applied as an output filename.. Anyway, in a C# project, I am trying to open this file with an System.Windows.Forms.OpenFileDialog object. ...

Add images to subitems in a ListView control

Hi, I need to add multiple images to a list view item that is in each row of the list view and each column has different images ? Regards, Fran ...

Doubt regarding Winsock Kernel Buffer and Nagle algorithm.

While reading this article, I got a doubt. I understood that while trasferring small data, Nagle algorithm is enabled by default which coalesces small packets. This results in caching some data before transmission. I believe that Winsock Kernel Buffer is the place where caching happens. Correct me if I am wrong. Does it mean that if t...

Renaming DLLs on Windows

I am building an application on Windows with Visual Studio 2003. My application is linking to 3rd party lib (Qt). The lib is called qtcore4.lib and the dll qtcore4.dll. My application is a plugin to another Qt based application which uses different versions of the same qtcore4.dll. Unfortunately, I can not use the same version of Qt a...

How can I create an all-in-one installer for Ruby on Rails application deployment on Windows?

Hi All, I'm in the process of deploying a rails application to Windows machines. I do all of my development with OS X and Linux, but the final app will actually run on Windows machines. That said, my client is looking for an all-in-one Apache(I had to talk him out of IIS)+Rails+Application deployment/installer. He wants to hand all o...

.NET GUI - C# vs C++/CLI

Hi guys, I'm writing a small app that requires a few listboxes, buttons, textboxes. It'll be linked with Boost, MySQL, etc. C++ static libs. The project requires win32 functions. I figure Winforms will be fine (MFC and CodeJock require too much time). So C++/CLI seems perfect for the job. Just use standard C++ along side the GUI. Then ...

Suggestions for a command line search-and-replace tool on Windows

Hi, I am looking for a windows tool (exe) or python script which can be used on command line to search and replace strings in text files recursively in a source code tree. Any suggestions ? P.S. I am trying to avoid the custom syntax of sed/awd like linux tools. P.S.S. It needs to be automated, therefore it needs to be command line. ...

Login dialog for Windows client application

Is there a Win32 function I can call to show a Windows login dialog? E.g., Internet Explorer and Visual Studio's Team Explorer both show a credentials dialog when accessing a website - how can I show that dialog? I have a .NET Windows client application that uses the logged in Windows user identity when communicating to web services. T...

How to add an entry into 'add/remove programs' for a .net windows app

How to add an entry into 'add/remove programs' for a .net windows app? ...