windows

How to make the startup form initially invisible or hidden

How to make the startup form initially invisible or hidden I have a GUI project with 2 form and the forms have to be displayed separately. i.e. When form 1 is shown, all the other forms must be hidden. I can hide all the other forms, but I cannot hide the startup form.so that my application's icon in the System Tray. For example, fir...

windows azure cspack error The system ca nnot find the file specified. File name: 'Microsoft.ServiceHosting.Tools.MSBuildTask

Hello I am trying to package an azure cloud solution on a windows 2008 server machine from the commandline using cspack.exe, the azur packaging tool basically crashes with the error message below Unhandled Exception: System.IO.FileNotFoundException: Could not load file or ass embly 'Microsoft.ServiceHosting.Tools.MSBuildTasks, Version=1...

Maximum backlog value for Windows port

It seems that there is an upper limit of ~200 for the backlog queue on Windows ports. Is it true? And if so, can i change the limit? I'm doing ServerSocket.accept(backlog) on a Windows XP Professional. Should i move to Windows Server? ...

Does LoadBitMap() API creates paint issues?

I have a legacy system written in C++, MFC. I was checking a piece of code where LoadBitmap() was replaced with LoadImage() API. The comment written in the code says "LoadBitmap() uses the Paged pool from Kernel memory and if the usage reaches the maximum limit then the paint issues would pop up. So LoadImage API should be used". I goo...

I don't always receive WM_LBUTTONDBLCLK

I'm writing an app (in C++) which uses WM_LBUTTONDBLCLK. It's all working fine except but I don't always get the DBLCLK message. Quite often I get two WM_LBUTTONDOWN messages instead. I've looked at the mouse position - it doesn't move. I've looked at the time between the two WM_LBUTTONDOWN messages - it's well within the value return...

vimrc to be cross-plataform and synced with Dropbox.

I'v been using vim/gVim so far in my Linux Machine, and I have a Windows machine as well. In this windows machine I'm mainly notepad++. I would like to store all my .vimrc settings and .vim folder in Dropbox, and create symbolic links in Linux pointing to them, and them do the same in my Windows machine. I have plenty of "home shortcut...

Ever have any trouble with allowing the WinEventLog:Security to be huge?

Currently my WinEventLog:Security is set to 128MB max, at which point it writes over old events. I would like to make this log much larger, hopefully a few Gigs. Besides the longer search time if I were to manually parse through the event log, are they any other ill effects I could expect when making such a change? ...

Windows Volume shadow copy error: 2155348129

Developing a VSS writer app: see this error during backup, initiated by windows backup tool, is there defined error codes for 2155348129 from Microsoft? "The backup operation that started at '‎2010‎-‎07‎-‎20T02:54:19.354000000Z' has failed because the Volume Shadow Copy Service operation to create a shadow copy of the volumes being back...

azure developement fabric

Hi there ive got an issue running the azure developement fabric, I have converted an existing asp.net mvc webapp to use azure cloud services, this works when I debug from visual studio and also when deploying to the cloud. However if I try to startup the developement fabric from commandline using csRun command, I start getting all sorts...

Weird behavior of UuidCreateSequential

Hi, I have a software that runs over 2 000 computers on my company, without any issues. This software, at some time, generate a GUID (or UUID) using UuidCreateSequential() (MSDN link). The call usually returns RPC_S_OK on every computer. But on one of them, it always returns RPC_S_UUID_LOCAL_ONLY. The documentation states that: T...

How can I programmatically find the Windows Fax Personal CoverPages folder?

I'm trying to find the Windows Fax "Personal CoverPages" folder from my application. On my Win7 machine, it's C:\Users\USER\Documents\Fax\Personal CoverPages But Windows Fax also comes with XP and Vista Ultimate. I'm pretty sure their folders wouldn't be in the same place. Is there any way for me to find this folder from my C# code? ...

Programatically invoking the default application for a filetype

On a related note to this question, say I've got an file with an handler defined, how would I programatically invoke the registered handler? Don't necessarily need the actual code to do this, just a pointer to some docs or the terminology to google for this. Thanks, Chris ...

Include directory precedence in VS2010

Just installed VS2010 on Windows 7 and am having an issue with include directories while attempting to compile existing C code. VS2010 appears to search the project directory first for include files regardless whether the <file.h> or "file.h" include format is used. Is there a way to force a different ordering for system include files ...

Issue setting up GIT with SSH on Windows Server 2008

Hi all, I´m following the steps outlined in Tim Davis´ blog for setting up GIT with copSSH on Windows (http://www.timdavis.com.au/git/setting-up-a-msysgit-server-with-copssh-on-windows/) but I´m having problems. I´ve gotten up to step 15 under the Installing Putty instructions but rather than getting a "Enter Login" message, I´m getting ...

Mercurial/extdiff not changing to temp dir (as I THINK it's supposed to)...

Using Windows, Mercurial, and the extdiff extension (for Mercurial). I was trying to set up extdiff to use WinDiff as an external diff tool, but I think I've narrowed the problem down enough to say that the trouble is before I'm even getting that far. From what I understand of extdiff, it merely calls your cmd.winmerge program, and pas...

How to design windows forms that have the same structure?

In web programming you have one or more master pages and some content pages that in which you add some content to the placeholders or access elements of the master. My question is how to handle windows forms that kinda have the same format, let's say header, content and footer. The footer is always the same, the header may slightly diffe...

Mac Setup to Test Applications in Every Possible Browser?

What is the simplest/most-streamlined setup for testing apps in all of todays browsers? Safari 2, 3, 4 (and versions in between) Firefox 1, 2, 3 (and sub versions) IE 6, 7, 8, 9 Opera 8, 9, 10 Chrome Is there some sort of program like the Ruby Version Manager (RVM) that allows you to install browsers at different versions and then ju...

How to run .sql file from a batch file?

I am running sql server 2008 express and i need to schedule some stored procedures to run nightly...so i have built out these .sql files which i would want to run from .bat file...i need to know the command to execute these .sql files one by one and store their results i guess...can anyone help me out? ...

Do Batch files support multiline variables

If so How? Yes, batch files are lame, but I cannot use powershell, and I don't feel like writing a real app to do this simple task.... edit What i want is somthing along the lines of set var="this is a multi line string " ...

Do Batch files support multiline variables

Possible Duplicate: Do Batch files support multiline variables If so How? Yes, batch files are lame, but I cannot use powershell, and I don't feel like writing a real app to do this simple task.... ...