windows

Windows Aero: What color to paint to make "glass" appear?

What color must i paint in the client area in order to make glass appear? i've extended the frame of my form into the client area using: DwmExtendFrameIntoClientArea(self.Handle, margins); i cannot find any official documentation from Microsoft on what color and/or alpha the DWM will look for to replace with glass. The documentation ...

How can a Windows service be installed with visual basic.net express edition?

EDIT: I'm starting a bounty on this question. For the moment, I've moved on and am developing my application using VS2010 Pro Beta, but I'd really like it to be able to be built with express edition, since we are generally not a .net shop and even if one or two developers have VS PRO it will not be available to our entire team. To be ...

What versions of Windows will .Net 4.0 support?

What versions of Windows is Microsoft planning to support with .NET 4.0? ...

Non-standard comport baudrates in windows

Do the windows built in com port drivers support non-standard baudrates? (actually does windows have a built in driver for com1 & 2?) The reason I ask is I'm having trouble getting a reliable connection to a device that uses the unusual baudrate 5787. The device & PC talk briefly, then seem to loose the dialogue, and then get it again...

How can I know where the segment of memory is all Zero

I mean, I malloc a segment of memory, maybe 1k maybe 20bytes.. assume the pointer is pMem How can I know the content pMem refered is all Zero or \0 . I know memcmp but the second parameter should another memory address... thanx ...

Visual Studio 2008 x86 install on windows 7 64 bit

I am getting an error when the setup autorun executes. It states that it is not compatible with the 64 bit operating system and does not allow me to install it. Is the VS installer 16 bit? The error also mentions this but I am not sure if it's true. How can I by-pass this? If I cannot, can some one suggest another VS that I should pur...

P/Invoke mechanism for wininet APIs

I am sending HTTP POST to SSL server using wininet apis. I want to wrap these apis to C# using P/Invoke because original code in C#.How do i wrap these apis to c# . I tried however it wasn't worked. I am doing this one for windows mobile and smatphones. LPCTSTR lpszAgent = _T("CeHttp"); DWORD dwError; DWORD sizeInResult, sizeOutResult...

Staying away from virtual memory in Windows\C++

I'm writing a performance critical application where its essential to store as much data as possible in the physical memory before dumping to disc. I can use ::GlobalMemoryStatusEx(...) and ::GetProcessMemoryInfo(...) to find out what percentage of physical memory is reserved\free and how much memory my current process handles. Using ...

File Sync Remotely using HTTP

Hi all, We are trying to create a POC for File Synchronization using MSF. The source is a windows based mobile device and the destination is Remote based http server. we have searched in the net for a sample but we are able to get sample which uses file sync (which happens Internally). Is there any online materials available or sample co...

Check when the application has gone fullscreen. (DXGI/DirectX10)

Hi, this is my question... There is a way to check when the application has gone fullscreen in DXGI (DX10/11). For going Fullscreen I mean that the system has COMPLETED the mode change. Cause i need it for my application to prevent deadlock and to adjust timing. (I have a multithreaded engine and the Present is not on the message pump ...

How to get started with game programming using VC++,C++,DirectX quickly?

Hi I am working in VC++ and I am quite interested in game programming and I have few queries. 1).What one must know before starting game programming ? 2).Can anybody give me info @ resources like tutorial ,links ,etc. which would help me to start as fast as possible ? 3).Also give me info @ some good books on game programming ? Any h...

C/C++/C# Force window to be on top

Is the there a way to force another window to be on top? Not the application's window, but another one, already running on the system. (Windows, C/C++/C#) ...

.NET/WinForms: maximize a window on a specific screen

hello, i have a dual monitor setup and i want my c# application to maximize its window on a specific Screen. how can i do that? thanks! ...

Is it acceptable for a server-based application installer to create a new group?

We're building an application designed to run on Windows-based servers. One of the considerations we're looking into at the moment is how to control access to the application's GUI, which allows configuration and controls the "back end" services. In order to secure the application properly, there are several objects which will need ACLs...

Cross-compile from (open)Solaris to Windows?

Is there any way I can cross-compile C/C++ code for Windows (XP, Vista, Win7), ideally in 64-bit as well as 32-bit (for Vista and Win7), from a Solaris or OpenSolaris setup? My codebase is already cross-platform, I would like to cross-compile it (generate windows DLLs and EXEs) from Solaris or Linux as part of an automated process. I w...

How to kill the last opened Internet Explorer window using a command?

I'm trying to write a Windows command file to open a webpage in IE, wait for it to load, then close the IE window. The following works but will kill all IE windows so any that were already open before running the .cmd will also get closed. start iexplore.exe "page to load" ping localhost -n 10 > nul taskkill /IM iexplore.exe I only w...

LoadLibrary Static/Globals and Threads

Say I have a DLL that has the following static/global: ClassA Object; Along with the implementation of ClassA, it also contains a 'regular' ClassB, which will not work properly if ClassA has not been constructed yet (which is why I've made ClassA is a static/global). In Windows, I believe that the DLL loader will load this DLL on the...

How to get the REMOTE_PORT (the client port) in Python running at IIS 7.5? REMOTE_PORT server variable cannot be found!

Hey. I'm coding a cgi in Python, running on an IIS 7.5 web server, on Windows. I would like to get the tcp port (usually was the server environment variable REMOTE_PORT) from which the client is connecting to it. I've tried to look up all the way throuhout the keys as in os.environ.keys() and I can get the user IP address, his browser,...

How to resolve replsync.dll DLL load Error? Please see the attached screenshot.

I am getting the following error when using Windows 7. I started seeing this error after installing VS 2010 Beta 2. ...

Java Runtime Exec on Windows Fails with Unicode in Arguments

I want to launch a browser and load a web page using Java's Runtime exec. The exact call looks like this: String[] explorer = {"C:\\Program Files\\Internet Explorer\\IEXPLORE.EXE", "-noframemerging", "C:\\ ... path containing unicode chars ... \\Main.html"}; Runtime.getRuntime().exec(explorer); In my case, the path contains ...