windows

Automatically Position Application Window Using Command File in Windows

I'm using PuTTY to access my BSD file server and I have several terminal windows open at once. I wrote a simple command file to automate opening the terminal windows and I'd like to know if it is possible to place them at a specific location. I have two monitors and as it is now, I have to manually drag the terminal windows over to my s...

Hello World [WPF]

I am trying to create my hello world windows app in WPF. What should I do to run this window? Class1.xaml <Window x:Class="Window1" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="Window1" Height="300" Width="300"> <Grid> </...

The shutdown hook isn't executed when the application is launched using javaw.exe

If I'm using javaw.exe to launch a Java application, the shutdown hook isn't executed when users log off from their Windows account. The application is actually launched using a launch4j generated .exe file but I know it uses javaw.exe to start it. This seems to be a known bug: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4302814...

Visual C++ Development

I'm learning C++, and know a little bit of Visual Basic and an Delphi. But I want to know, is there some program like Delphi, but for C++. Something where you can drag a button to a form, double click it, the like in Delphi and VB: opens a code editor and you edit the code of the button, but with a similar code of C++? I'm using Windo...

Learning Win 32 API programming from theForger's Win32 API Programming Tutorial

Im trying to learn Win 32 API programming from theForger's Win32 API Programming Tutorial. Should I choose Visual C++ -> Win 32 Project or Windows Form Applicationto get started? Thanks ...

How can I create a screenshot of a http website and save it on my server?

How can I create a screenshot of an http website and save it on my server, using dot.net byte[] byteArray = Encoding.ASCII.GetBytes( resp.BodyStr ); MemoryStream stream = new MemoryStream( byteArray ); pictureBox1.Image = Image.FromStream(stream); stream.Close(); I have tried the above code but it's n...

Why does Console.Out.WriteLine exist?

Actually the question should be why does Console.WriteLine exist just to be a wrapper for Console.Out.WriteLine I found this little method using intellisense, then opened .NET reflector and 'decompiled' the code for the Console.WriteLine method and found this: public static void WriteLine(string value) { Out.WriteLine(value); } S...

How to create a new desktop? C++

How would I create a new desktop in C++? I know the CreateDesktop() API but it does not load memus or explorer.exe for the matter. If not to much trouble would love an example to make a desktop with menus. ...

Rendering formatted text in a direct3d application

I need to render some formatted text (colours, different font sizes, underlines, bold, etc) however I'm not sure how to go about doing it. D3DXFont only allows text of a single font/size/weight/colour/etc to be rendered at once, and I cant see a practical way to "combine" multiple calls to ID3DXFont::DrawText to do such things... I look...

Do you any free tools for tuning program that run in parallel on Windows?

Hi, What free tools do you know that can be used for tuning multithreaded applications? If there are any. ...

What visual programming language works well for scripting admin tasks?

Would like a visual environment for creating admin scripts to manage tasks. ...

Which is the best location to keep program configuration file in WINDOWS?

My program requires some configuration details to be kept in a .ini file. This program also installs extensions to IE and firefox and i want to read these .ini file from these extensions also. If I kept .ini in "...AppData/Roaming..." the IE extension in protected mode won't be able to read/write. As far as I know only AppData/LocalLow c...

How to know when \Registry\Machine\Software key is loaded?

I want to access \Registry\Machine\Software key from a driver. The driver is loaded prior to the registry key. Do I have to poll the key availability? Or there is something I can wait for? ...

Why does IE6 for Server 2003 not work the same as IE6 for XP?

I am developing a simple webpage in Windows Server 2003. I am testing the webpage with multiple IEs: IE4,5,6,7,8. I have a problem is that only IE7 and IE8 are displaying my webpages correctly. This started occurring since I used the recent version of jQuery. When I try to test using IE6, AJAX controls do not work properly. T...

Windows mobile user interface suggestions

Hi there, I will start new PDA project on the windows mobile and compact framework 2.0 or higher. I need to design the new application user interface like IPhone, it should be smilar IPhone buttons, gradiend screens, colors, some thing like this. It seems i need to many images and backgrounds on the windows mobile application for achievi...

How can I give my Java application a unique process name?

I've noticed that when I start Netbeans it shows up in the task manager as netbeans.exe as all my own Java applications show up as java.exe or javaw.exe. How can I change that so my process names shows up as myapp.exe? ...

Bring form on top of others when clicked on taskbar button in Delphi.

Base question: http://stackoverflow.com/questions/1141544/tstatusbar-flickers-when-calling-update-procedure-ways-to-painlessly-fix-this The executed code is in the questions first posts first part ( you can see light grey separating line ) ... But - problem is that while this code is executed, form does not automatically activate and ...

Windows Process Descriptor

There is a Flink and Blink (Forward Link and Backward Link) for a double-linked list of processes. There is a process identifier. All of this is packed in a struct that is referenced to as PEPROCESS or _KPROCESS. But where are those and what are the other elements in this structure? Or, if the answer is neither short nor simple, where ...

What network library on what IRQL?

I somewhat confused because I've read that "everything" should be possible at IRQL_PASSIVE, but I am not so sure whether this includes winsock2 or other userland libraries. My normal understanding would be to use the WSK interface. But it would be much more comfortable if I could use normal sockets. As I am running into builder errors a...

Network Shares of Removable Drives Disappear (Windows)

(Sorry if this sounds clumsy, I'm not always sure about the English terms for this) I have two removable drives. I can set the access rights so that they can be shared and used from another network computer, but when I start my main computer the next time and the drives are switched off, they seem to lose the share settings and I have t...