windows

.Net programming on a Apple computer

Hello, I really would like to write an app or apps for iPhone / iPad. I've never done this so far because most of my work has been in windows environment. I recently got an i7 with windows 7 and love it, and this is what I am using to do development on currently. I would love to try out writing a simple App on a mac for either an iPhone...

How to put exe file in windows Startup

I have WPF Application. I want to give ability for user by checkbox to put App (exe file) to the windows Startup. How Can I do this programmaticaly in C#? ...

How to debug a dll

I'm having problems with a dll that I downloaded from somewhere. How can I look inside the dll to debug it? ...

Extending Windows Desktop using C#

Hi Team, I am trying to customize my Windows XP’s desktop using C# code. This is my first venture of this kind. Could you please point me to some documentation that will Give the names of classes that can be used for extending/customizing Windows’ desktop Some example code What I am trying to do specifically is as follows I am p...

Using IOCTL_MOUNTMGR_QUERY_POINTS

Dear all, I am not able to know how to use the IOCTL_MOUNTMGR_QUERY_POINTS . I have searched the internet and found some sample code to try with. but i am not sure whether its correct or not.... can you please let me know how to use the IOCTL_MOUNTMGR_QUERY_POINTS to get the drive letter Thank you for your time below is my source c...

what happens when you plug in a new USB device?

I have an embedded device with a USB connection. When the user plugs the device into their PC (Windows, OSX), how does the operating system discover what drivers to install? How do I get my drivers to be selected? Can they reside on some central server (run by the OS vendor)? ...

named pipes in java

Hi all, I have written a java app which manipultes a file which is created by another program. i want my program to work in real time, in order to do so, i need to read from a file while the other program is writing it. the simple solution is to keep reading from the file even when EOF has been reached in an infinite loop, but thats ver...

Detecting Idle time in a C# WinForms without Application.Idle

Hi, I have a strange issue that I'm not too sure on how to fix or address. I'm writing a mini text editor style application - RichTextBox editor. I need to do some complex parsing after the Selection changes - updating position, selection text and various other bits about the context of the text around the area. As it takes a bit of p...

Not all symbols of an DLL-exported class is exported (VS9)

I'm building a DLL from a group of static libraries and I'm having a problem where only parts of classes are exported. What I'm doing is declaring all symbols I want to export with a preprocessor definition like: #if defined(MYPROJ_BUILD_DLL) //Build as a DLL # define MY_API __declspec(dllexport) #elif defined(MYPROJ_USE_DLL) //Use a...

How to stop expanding an infinite SWT Tree upon pressing "*"

I have an SWT Tree in my application that contains an infinite data structure. Upon expanding an item, I generate its children. On Windows though, users can press "*", triggering an "expand all descendants" action, and my application hangs. There are two acceptable behaviors for me when the user presses "*": Expand all children of the...

Windows Shell Programming book suggestion

Hi, I am a web developer using C#. I would like to experiment with Windows shell programming in C#. Many people suggests that using managed applications for shell program, is dangerous. (Creation of separate instances for each process versus in process shell. Also version dependency) Frankly speaking, I am totally new to shell. Is the...

play 3gp videos on windows mobile 5 and 6 from code?

currently im able to play .wmv videos from my application using shell execute which plays it in the windowsmedia player. However I need to be able to play .3gp videos which unfortunately the windows meadia player does not support. Is it possible via api etc to play 3gp videos on win mobile 5 and 6 devices? ...

Getting readable diff displays in Mercurial on Unicode files (MS Windows)

I'm trying to store some Windows PowerShell scripts in a Mercurial repository. It seems the PowerShell editor likes to save files as UTF-16 Unicode. This means that there are lots of \0 bytes, which is what Mercurial uses to distinguish between "text" and "binary" files. I understand that this makes no difference to how Mercurial stores...

scons + windows: Cannot execute shell script in Command() builder

I have a command builder as such: jsontar = Command("bundle.tar", bundleDir, "mkvgconf $SOURCE $TARGET") mkvgconf is a shell script $SOURCE is a path to a directory $TARGET is a path to a file When attempting to execute under windows, SCons does not recognize vgmkconf as an executable. Google turns up: http://www.scons.org/wiki/Using...

Sample code for Windows RegisterForPrintAsyncNotifications in the Spooler API?

Windows Vista introduced notifications from the Printer Spooler with the RegisterForPrintAsyncNotifications function (http://msdn.microsoft.com/en-us/library/dd162919(VS.85).aspx) Does anyone know of any sample code for spooler notifications using that function? I have been unable to find any and it seems strange that Microsoft would ...

How do I create a scheduled task, via command line, which includes advanced options

I'm trying to create a scheduled task (in WinXP) which runs every 10 minutes, starting at 16:00:00 to 06:00:00, daily, from the command line. Currently, I can create a scheduled task which runs every 10 minutes, starting at 16:00:00, daily, by using the following command: SCHTASKS.EXE /CREATE /SC MINUTE /MO 10 /TN "Scheduled task name"...

Are there any open-source remote desktop clients?

I'm looking for a remote desktop client that works as a webapp, similar to Citrix or WebEx. Are there any open-source projects that do this? Need to mainly to be able to access Windows machines using a regular browser. Thanks! ...

Clickonce authentication proxy

Someone know if there is a way to make clickonce to work behinda a authentication proxy? ...

Why does IGraphBuilder::RenderFile not find ffdshow Video Decoder?

When I install K-Lite Codec Pack (5.90 Basic) as an administrator then run an application that calls IGraphBuilder::RenderFile as a standard user, the resulting graph doesn't have the ffdshow video decoder filter. However, when I run the application as the (original installing) admin the ffdshow video decoder is in the graph. Is there s...

Detect when a Mac OS X window is resized or moved

I am writting an application which must know when a window is resized or moved. I had a look on notifications but it seems it does not do what I expected. Do you have any idea how I can achieve this? ...