windows

Resize a WPF window, but maintain proportions?

I have a user resizable WPF Window that I want to constrain the resizing so the aspect ratio of the window stays constant. Ideally I would like to constrain mouse location when the window is being resized by dragging a corner to positions that maintain the proper aspect ration. If an edge is resized with the mouse, the other dimensio...

Windows forms designer renaming copy/pasted controls

I saw a similar question asked and answered for ASP.net here http://stackoverflow.com/questions/484327/how-do-i-prevent-visual-studio-from-renaming-my-controls But I am trying to prevent this while writing a Windows forms app in VS 2008 using c#. I want to copy/paste a ton of controls without them being called Checkbox1 etc. I'd rathe...

How to popup menu using SendMessage?

Hello! I have pop-up menu, for example: "..." "PopUp-menu" "Menuitem1" "Menuitem2" "..." How to popup "PopUp-menu" using SendMessage function? Is it possible? course Menuitem has ID, and POPUP menu - has not ...

SVN server host os

Recently I was searching on how to secure svn repository, or otherwords how to enable ssl connection to svn repository for a windows server 2003. Does it make more sense to use Linux server instead? ...

What is the smallest Windows header I can #include to define DWORD?

I have a small header file of my own which declares a couple of functions, one of which has a return type of DWORD. I'm reluctant to drag in windows.h just to get the official definition of this type since that file is huge, and my header will be used in a number of source modules that don't otherwise need it. Of course, in practice I ...

Stack buffer overrun (Windows, C++) : how can I detect the culprit?

Are there any tools/libraries on Windows that can help me tarck down the culprit? This is a fairly large codebase, with multiple threads. I code for Linux mostly; Windows is unfamiliar territory. Thanks for your input. ...

querying extended File Properties using WMI

Is there a WMI namespace and a class that can be used to obtain the extended properties of a file, such as Owner, Author, Title, Subject, Category, Comments? please suggest. ...

window c++ : how to timeout receiveFrom function in a udp based conversation

Hi I am trying to create a reliable service on top of UDP. Here i need to timeout receiveFrom function of window c++ if not packet arrives in specified time. In java i do this DatagramSocket.setSoTimeout but i dont know how to achieve this in windows c++. thanks ...

Intercept and ignore keyboard event in Windows 7 32bit

Hi all, My hardware has a problem, from time to time it's sending a "keydown" followed by a "keyup" event: keydown: None LButton, OemClear 255 keyup: None LButton, OemClear 255 keydown: None LButton, OemClear 255 keyup: None LButton, OemClear 255 It goes like this, every 1 or 2 seconds, forever, in Windows. In general it doesn't a...

C# windows client get registry value

I have a c# windows client app packaged using ClickOnce. Using c# how can I programmatically get the registry entry for that application? As I am wanting to write a registry entry for a child app NEAR the same location ...

Problem using pantheios file stock back end

I am trying to use pantheios file stock back end to log from my dll in c++. The file gets created but nothing gets written to the file. Here is a snippet of my code if (pantheios::pantheios_init() < 0) { MessageBox(NULL, "Init Failed", "fvm", MB_OK); }else { MessageBox(NULL, "Init Passed", "fvm", MB_OK); pantheios::log_IN...

ABCpdf7 Not Rendering Images using AddImageUrl

Fairly exotic it seems to me. We recently upgraded/migrated from Windows Server 2003 to 2008, and now it seems that images cannot be rendered when using Doc.AddImageUrl(). (when the pdf is saved, the images appear at the correct dimensions, but the IE8 missing image x shows up). If I understand correctly, ABCpdf uses IE rendering intern...

Creating a MSI patch (.msp) by hand?

Our team has recently been considering pushing out a minor registry fix to users to modify one particular problematic key. Pretty straightforward stuff, just needed to update 1 key/value inside the registry. So at the moment, we are using Wix to build .msi installers for the product. While looking into Wix's support for generating .msp ...

Asynchronous Completion Routines I/O, Pointer to routine encapsulated in class

I was wondering if there was anyway to use functions like ReadFileEx that require a pointer to a function in a class WITHOUT marking the function as static? Thanks in advance. SBP. ...

Does a programmer's "document template" with tags exist for Windows?

I was wondering (if possible) if there was a program/tool/utility that when I create a new file and provide it with an extension that it creates the appropriate tags automatically? For example, a new file I create called index.php would have the appropriate tags auto-generated inside: <?php ?> I hope you get the idea. Any infor...

Different OS and Server Path

in windows (using apache as server), my file path directory will be C:\xampp\htdocs\mysvn\PhpDocumentor\phpdoc.php. But what happen with other OS such as linux on APACHE, or IIS on windows, Or other OS i don't know and never use ? i would like to know to make sure i wrote the bullet proof, file reading via PHP. Care anyone give an exam...

Monitoring CPU and disk utilization of a single program

How can I calculate CPU and disk utilization of another concurrent program? I.e. one program is running and other calculates the first's resource use. I'm using C and C++ and running under Windows XP. ...

Advisory locking interface for c in windows.

Hi all, I work on linux. Iam writing a locking interface. In linux the default locking is advisory locking where as in windows it is mandatory locking with LOCKFILE interface. I want a advisory locking interface in windows. ...

Consume a WebService with Integrated authentication from WPF windows application

I have written a WPF 4.0 windows application that consumes a .net 3.5 WebService. This works fine when the web service in hosted to allow anonymous connections, however the WebService I need to consume when we go live will be held within a website that has Integrated Authentication enabled. The person running the WPF application will b...

How to copy QT folder to another folder without reinstalling it?

I have QT installed on disc D (on Windows). And I want to move it to disc C. Is it possible to do that? If I just copy QT folder from C to D then I see lot of errors when I compile my applications that use QT. Errors are because qmake.exe contains full paths to include, bin and libs folders inside. So, when I create solution for Visual...