Hello. I create new desktop with CreateDesktop and want to get it's DC & RC.
RECT deskRC;
HDC deskDC;
HDESK hNewDesktop = CreateDesktop(...);
GetWindowRect(hNewDesktop, &deskRC);
deskDC = GetDC(hNewDesktop);
This returns only 0's.
What's the problem? Or maybe there's another way of obtaining those values.
P.S.: Deskto...
Hello all, let me say first that I'm writing this question after months of trying to find out the root of a crash happening in our application. I'll try to detail as much as possible what I've already found out about it.
About the application
It runs on Windows XP Professional SP2.
It's built with Microsoft Visual C++ 6.0 with Service...
I am working on Windows Azure. I followed some tutorial about how to store text file on to the blob of windows azure.
I am successful in uploading the data. Now, I wanted to access the file. I mean, I have to read the content of the file and display it....
Can anyone tell me, How to do that...
Thanks,
in advance...
...
I have a dll that comes in both 32bit and 64bit version. My .NET WinForm is configured for "Any CPU" and my boss will not let us have separate installs for the different OS versions. So I am wondering: if I package both dlls in the install, then is there a way to have the WinForm determine if its 64bit/32bit and load the proper dll.
I...
I followed a tutorial on creating a blob on windows azure. But when I do that, I get an exception error:
Error while creating containerThe server encountered an unknown failure: The remote server returned an error: (300) Ambiguous Redirect.
The code is :
private void SetContainersAndPermission()
{
try
{
...
I'd like to detect when someone terminates a suspended debugged process without informing the debugger. (For example, get to a breakpoint in a console app, and close the app's console window.) The process goes into a zombie-like state and cannot be interacted with further until the debugger releases its hold.
This state appears to set t...
The batch file is something like this, I put the python in some directory that has SPACE character in its path.
C:\"Documents and Settings"\Administrator\Desktop\bracket\python\python
C:\\"Documents and Settings"\\Administrator\\Desktop\\bracket\\[10,20]\\brackettest.py
When I run this one, I get this error.
C:\Documents and Set...
Hey everyone,
I have 2 questions, maybe you could help me out.
I built a DLL from the following code:
using System;
using System.Collections.Generic;
using System.DirectoryServices;
using System.Linq;
using System.Text;
namespace AutoAD
{
public class Class1
{
public static void addUser(string userName)
{
try
...
Hello. Well, I have a simple question, at least I hope its simple. I was interested in win32 console for a while. Our teacher told us, that windows console is just for DOS and real mode emulation purposes. Well, I know it is not true, becouse DOS applications are runned by emulator which only uses console to display output. Another thing...
Hi - I need some help from someone familiar with Windows Embedded Target Designer and Component Designer:
On my Windows Embedded image I have two driver components that are "conflicting", but not for IO reasons.
The first driver component is the touchscreen driver that includes its own serial port enumerator called pmserenum.sys.
Th...
Good day,
I would like to know if the .NET framework gives you a way to retrive the littles thumbnails Windows XP+ generates when you alt+tab.
The application I try to make should be able to get a window capture (ALT+PrtScr) of another Window that is not necessary Active and could be partially or completly hidden behind another one.
I...
Has anyone tried compiling SciPy 0.7.1 on Windows using numpy-1.3.0 that was built with the pre-built ATLAS libraries (atlas3.6.0_WinNT_P4SSE2.zip) linked in the installation document.
I get the following linker error, and have no ideas as to how to fix this issue.
$ python setup.py config --compiler=mingw32 build --compiler=mingw32 i...
I am attempting to display a very large graphical representation of some data. I am using a bitmap for persistent storage of the image and e.Graphics.DrawImage(myBitmap, new Point(0,0)) in the onPaint of a PictureBox control on my form. I have noticed (and heard mentioned on other sites) that if my image has a height or width greater t...
Hello everyone.
I have a mobile app webservice client that connects to a WCF webservice(on my PC) deployed in a WiMo Device. The OS is Windows Mobile 6.0. It is connected to my PC using a USB cable and ActiveSync 4.5.
Problem:
When I use a mobile emulator to run the application, it was able to connect to the web service successfully. ...
Normally people say MFC is little clumsy. It makes UI development slightly difficult to maintain since it has lot of auto generated code. It has good architecture (doc/view) but is not transparent like Win32 programming to understand how window program works in the background.
So with this situation, is it good to extend the exposure on ...
Hi,
I am very interested in learning windows shell programming. So...I searched for books on the amazon.com. I see that books on the amazon.com are out of date. Most of books are published before 2005. I googled about it and found many tips and tricks, but not step by step guide.
Where do I get started?
P.S: I am talking about windows...
I'm using WinVerifyTrust API in windows XP and I don't want any kind of user interaction. But when I set the WTD_UI_NONE attribute, although it doesn't show any dialog boxes, but it waits for a long time on the files that in fact wanted user interaction (I mean files which without mentioning the NO UI it will ask the user for that file)....
I'd like to know which are the most common (and useful) shell extensions you're using as developers. I bet the following are on the list, but I'd like to know which others you would add:
Tortoise SVN
Tortoise Hg
Tortoise XXX (Git, CVS, whatever)
Any others worth mentioning?
...
Hi ,
I built an application in c# vs2005 .net .
Everything works fine when i run the application in win 32 bit, But
when running the application in win 64 it crashes while trying to call
the pinvoke interlockedexchange(which is within the kernel32.dll) function .
This is the exception :
unable to find an entry point named 'interlocked...
We have a number of applications that are now looking tired and a bit drab. Looking at the MS style fluent interface looks nice but seems (to me) to be more document based rather than task based.
Is there a nice 'modern' ui style that lends itself to task based applications?
...