windows

Windows mobile client for ASMX Web Service

I try make simple Windows mobile client for web service. The web method only add two integer. I add reference on proxy and System.Web.Service. But it finish with this error : The type 'System.Web.Services.Protocols.SoapHttpClientProtocol' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Web...

Activating an application as a child/popup of another application

Hello, Under Windows XP, is it possible to execute a 3rd party application, so its main window will be a child/popup window of my VC++ MFC application? I want to control it's Z-Order like any other window in my app I don't want it be be visible in the taskbar I want to catch its WM_CLOSE and handle it in my app In general, I want my ...

Adding and Using Resources in a Windows Driver

Is it possible for a windows driver to have resources? If so how could I add them and more importantly access them? ...

add shortcut to my program when right click

Hi all, Im not sure what the exact term should i called. I want to add shortcut to my C# program when i right click in windows. From my findings, it got something to do with configure the "regedit". I have this example, but it was made for IE. can anyone point me to any references that can solve my problems? references: http://blog.v...

Windows Azure Set Up Walkthrough (Dummy's guide preferably)?

I'm thinking about moving one of my projects onto Windows Azure - But was wondering if any super talented developers have written a guide on how to configure / set it up and then deploy a site? I have seen a couple of videos for people doing it on EC2 but wanted to do it on Azure... Thanks ...

Windows printer driver information utility?

There used to be some utility called WinPrInfo (GUI based) or something alike, that would display information about all installed printers using GetDeviceCaps/DeviceCapabilities. But I can't seem to find it on the web, anyone can help? ...

Detecting multiple launches of a Windows application

What's the approved way to handle second, third, etc launches of application in Windows (C++) application? I need the running (first) instance to take some special action (pop up a dialog) in this case, but for the secondary instances to terminate. On Mac, AppleEvents sends you a 're-open' message in this scenario. Mozilla on Windows us...

Program Restart

I have a Program which is written in C++. It is a program which needs to be restarted when network connection is lost ... I have written program code which is pinging IP and I'm stuck on that ... Can anybody show me the code for the next step Thank you beforehand. ...

Flash http request does not call back inside IE ActiveX occasionally.

My Windows (C++) program hosts Flash ActiveX. I use XML.sendAndLoad() to communicate to the server inside Flash part of the application. Occasionally XML.sendAndLoad() does not call back. That makes the whole application useless. Only restart helps. I have found using HTTP Analyser, that the requests even do not go to the internet. Ther...

Creating a COM Port Redirector over the Network

Hey, I'm trying to create a windows driver that allows a standard TCP/IP socket to be used like a COM Port. I am aware of a number of existing products that do just this, but can find no reference material as to how it's actually done! I understand some of the concepts of windows drivers (bus/function/filter drivers, driver stacks, etc...

How to use the HTML Tidy .Net DLL wrapper in PowerShell?

I'm trying to use the HTML Tidy .Net wrapper in PowerShell 2.0. Here is a working example using C# (TestIt.cs included in the wrapper distribution): using Tidy; Document tdoc = new Document(); I'm doing this in PowerShell: [Reflection.Assembly]::LoadFile("C:\Users\e-t172\Desktop\Tidy.NET\Tidy.dll") New-Object Tidy.Document I get t...

How to grab the names of all sub-folders in a batch script?

I just want to know how can I get all the names of the folders in a current directory. For example in my current directory I have three folders: stackoverflow reddit codinghorror Then when I execute my batch script all the three folders will print in the screen. How can I achieve this? ...

Tell tale sign of memory fragmentation (as opposed to a memory leak)?

First I realize that leaks can fragment memory badly, but please bear with me. Using WinDbg and attaching to a process: Using !heap (or another WinDbg command), what should I expect see if I'm dealing with memory fragmentation as opposed to a leak? For instance, I can use "!heap stat" and "!heap stat -h handle" to zero-in on the code...

access violation in WM_PAINT not caught

To test this problem I have written a minimal windows application. If I force an access violation in the WM_PAINT handler this exception never gets to the debugger. If started without debugger the access violation also does not show up. Usually you should get the Windows Error Reporting dialog. Digging a bit deeper it seems that somethi...

Windows software to browse SVN repository that isn't TortoiseSVN?

Because of an unfortunate Windows limitation (no more than 16 icon overlays in Windows Explorer) TortoiseSVN is not a viable client for me on computers with the TFS shell extension installed. I've spent some time browsing wikipedia page, but there is a lot of crap on that list. QSvn was close but doesn't let you browse before doing a che...

Jumping straight to network container

Hello, I am currently working on a project where I need to get all the computers inside a network resource. I am currently using WNetOpenEnum and its associated functions to find the computers, but as this is running on a large network, it takes a while to iterate through all the network workgroups. Is it possible just to 'jump' to a c...

.Net WinForm System Beep on a 64 Bit OS

My application needs to beep when validation fails so the user (who may be several feet away) may hear it. I'd like to use the Console.Beep() but this is unavailable in a x64 environment (see the remarks). There may or may not be speakers in/at the computer, so I can't use System.Media.SystemSounds.Beep.Play(). The current target platf...

How to pass a parameter to a windows service once and for all at install instead of each start

We have a Windows Service application that can accept command line parameters like: MyService -option So far, when we want to start the service with a parameter, we either do it manually from the Service Properties dialog (in the Start parameters box) or with the command sc start MyService -option What we would like is a way to...

Do threads clean-up after themselves in Win32/MFC and POSIX?

I am working on a multithreaded program using C++ and Boost. I am using a helper thread to eagerly initialize a resource asynchronously. If I detach the thread and all references to the thread go out of scope, have I leaked any resources? Or does the thread clean-up after itself (i.e. it's stack and any other system resources needed for ...

script/generate on Windows: 'script' is not recognized as an internal or external command

Whenever I try to use the Rails script/generate or script/install command I get this kind of error: C:\workspace>script/generate bigcommand 'script' is not recognized as an internal or external command, operable program or batch file. Any idea why? ...