windows

Windows Workflow Foundation 4.0 Pick Activity Containing a Delay Activity

I'm working with Beta 2 of Visual Studio 2010 to get some advanced understanding of WF4. I've created a workflow that has a Pick Activity that is contained in an If Activity. In the Pick Activity I have two Triggers, one that contains a Delay set with a TimeSpan of 10 seconds, the other Trigger has a Bookmark for a manager to approve. ...

How to hide batch output

I am putting the finishing touches to a batch script that transfers the contents of a locally edited web site to the internet. The script opens in a console window, and outputs quite a lot of stuff the administrator needs to see in case something goes wrong. In that case, though, the output is being sent as E-Mail, so there is no need t...

Bonjour/Socket Win32 based app has trouble with some software firewalls

We have a Win32 based app that uses Bonjour to advertise itself, but plain ol sockets to actually communicate. On a regular XP, Vista, or 7 system using the Windows firewall service we have no issues. We have our installer set to allow ourselves through the firewall. But if a user installs McAfee as an example, even if they click to all...

How does software like GotoMeeting capture an image of the desktop?

Hi, I was wondering how do software like GotoMeeting capture desktop. I can do a full screen (or block by block) capture using GDI but that just seems too wasteful to me. Also I have looked into Mirror devices but I was wondering if there's a simpler technique or a library out there which does this. I need fast and efficient desktop ...

System Tray notifyIcon won't accept left-click event

Hi, I'm creating a System-Tray only application. It's somewhat complicated to have the icon without a main form, but through previous topics on StackOverflow I've worked it out. The right-click works fine, I've linked in a context menu, etc. I'm having problems with the left-click. As far as I can tell, the "notifyIcon1_Click" event isn...

How can I get the filesystem page size from unix/linux/osx and windows?

I want to be able to determine at runtime what the sector size is for a give filesystem. C code is acceptable. for example I format my Data partitions with a 32k sector size that have lots of large video files. I want to be able to get this value at runtime. ...

Java automatically adjusting to the Windows 7 font size adjustment

In Windows 7, if you change the font size via the Control Panel->Appearance and Personalization -> Display "Make text and other items larger or smaller", it adjusts not only the menu sizes, but also the text content size of apps like Notepad, Wordpad, Firefox. Is there a way to get Java to automatically scale the font without having to...

How to compile PECL mailparse for Windows x64

My Cerberus installation fails when testing the php_mailparse lib. After some research, I understand that PECL does not supply an x64 version of their dll for windows. Can anyone provide instructions on how I might go about compiling the following lib for x64? Is VS my best option and if so, a quick overview would be very helpful. lin...

Command line does not execute my parameters

I have created a batch file to run an application automatically but it seems my CMD does not run it. I typed this (using notepad as an example): CMD /C "C:\notepad2\notepad2.exe" If I run this from Windows Vista it worked. But running this from Windows Server 2008 (64-bit) it just doesn't work. I even try using that line from the Run ...

Connect wifi access points with Windows Native Wifi Functions

Windows provides Win32 Native Wifi Functions, but when I used WlanConnect to connect a access point what needs password, it will show a tip on the notification area, if I clicked the tip, the password input dialog will show. How can I show the password input dialog directly without click the tip on the notification area? Thanks in advanc...

Create File Command in Batch Files (*.bat)

Hello, I want to create a file named "new text document.txt" in the folder %tv% using a batch file ( *.bat). This is my batch file: set tv=D:\prog\arpack96\ARPACK\SRC cd "%tv%" @CON >> "new text document.txt" set tv= Although I can really create the file in %tv%, but when I run the above batch file, I will get an error message saying...

How can I edit this so it works with files that have spaces?

@echo off set /A Counter=0 setlocal enabledelayedexpansion for %%D in ("e:\test test\") do ( for /f %%F in ('dir /a-d /b %%D*.*') do ( ECHO. ECHO Current file is: %%F set src=%%F set dest="e:\test test\space locate\%%F" if not exist !dest! move !src! !dest! if exist !dest! ( ...

Error? Shared Memory Provider: No process is on the other end of the pipe

I have a site which has been running perfectly but I have just moved it from Win2003 IIS6 SQLExpress to Win2008 IIS7 on full SQL and randomly the site is going down and all I keep getting is this error? Shared Memory Provider: No process is on the other end of the pipe. Anyone have any ideas on what might be causing it? ...

Flags returned by OSVERSIONINFOEX.wSuiteMask

Does anybody know what the following constants (defined in WinNT.h) mean? #define VER_SUITE_COMMUNICATIONS 0x00000008 #define VER_SUITE_EMBEDDED_RESTRICTED 0x00000800 #define VER_SUITE_SECURITY_APPLIANCE 0x00001000 The values are returned in the wSuiteMask field of the OSVERSIONINFOEX struct. ...

Executing PHP script based on Outlook rule

I am getting daily data dump via e-mail, which is being processed by Access (based on the Outlook rule, VBA is extracting the attachment and running Access procedures, so I get a report). As data dump is getting bigger and bigger, and having in mind that Access is run locally which consumes my resources, I want to set up a PHP/MySQL ser...

How to get a window with specified resolution system settings independent

Hello, I am testing a GUI (Swing based) interface and need to do it with special screen resolution. Is there any way to keep original system resolution and display the window of the application under test with specified resolution (system independent) ? Any tool for that kind of things? Thanks, Marcin ...

C# .net windows application setup

hello i have created one windows application in c# .net and its working fine. but when i create its setup and deploy on the machine it get crashed. i am not getting what is the problem when i run its .exe file it run well. please help Thanks & Regards Rajesh ...

How to echo with different colors in the Windows command line

I know that the color bf command sets the colors of the whole command line window but I wanted to to print one single line in a different color. Thanks ...

adding win32 app icon to task bar

I want to add some simple win32 application's icon to task bar while app is running in background. During this time, i want to send some msgs to that icon so that it pops up as per my req. Unfortunately i know only c\c++ and i use visual studio8, is there a way or api to do this? example: outlook icon or wifi icon ...

thread start address

How can i identify exact location in a method with the following information: "abcd.dll!CMyclass::CMymethod+0x45" Actually this is the start address of a thread, i got this string as a start address for a thread with the help of a process monitoring tool. Thanks. ...