HI all,
The following code:
self.painter = QtGui.QPainter(self)
self.painter.setRenderHint(QPainter.Antialiasing)
self.painter.translate(482,395)
self.painter.scale(300,300)
self.painter.save()
needle = Qt.QPolygon([QPoint(30, 0), QPoint(-30, 0), QPoint(0, 200)])
self.painter.setBrush(Qt.cyan)
self.painter.setPen(Qt.black)
self.painter...
When I Rightclick on a Shell Drive I want to differentiate whether the Drive is a Normal Drive or a Network Drive.
I hope we can do this using Initialize(LPCITEMIDLIST, LPDATAOBJECT, HKEY) method but unsure which parameter to use.
...
How can we check if a file Exists or not using a Win32 program? I am working for a Windows Mobile App.
...
I'm developing a windows app (it depends on DirectShow, so no Linux, etc).
It will run, for now, in XP and Windows 7 (no Vista support).
However, there's a piece of code that behaves very differently in XP or Windows 7, so I need to know in which system I am, to make a workaround. As I don't support Vista -and even if I did, I guess th...
Hi, i am trying to get bitmap from mouse cursor, but with next code, i just can't get colors. Please a little help...
Thanks in advance :)
CURSORINFO cursorInfo = { 0 };
cursorInfo.cbSize = sizeof(cursorInfo);
if (GetCursorInfo(&cursorInfo)) {
ICONINFO ii = {0};
int p = GetIconInfo(cursorInfo.hCursor, &ii);
// get scree...
Actually I intended to ask the following question:
For an executable that lies in a
directory defined in %PATH%, how can
I find out in which of these directory
it is found?
because I need to run Excel from C# using Process.Run(...), and just indicating "Excel" works fine: Windows seems to know where to find it. However I need...
Hi all,
I am trying to disable then enable a usb device - like you can do in device manager.
I have tried using devcon.exe and it works perfectly, apart from when the device has been or is being used.
Under these circumstances it will tell me that the device will be disabled after restarting the system.
I don’t want the system to be res...
Hi,
I have a window form application, and it has multiple threads running that would invoke on the Main UI thread to update the UI. Occasionally on development machine, the application main UI thread will stop running, and the application no longer responses. It seems to happen if I left the application running overnight. However, I ha...
I have a browser helper object on IE that have some "clipboard history" functions. I have been storing settings into a file into the directory where the BHO file is (currently "$PROGRAMFILES\Common files\folder\", it was like this when i received the code but i can change it).
In my computer (XP SP3 in virtual machine) I have no problem...
I'm trying to fix an intermittent bug in git-svn. The problem is happening in Windows XP only, with both Cygwin git (perl v5.10.1) and msysGit (perl v5.8.8).
With any operation that involves a fetch, I'm able to get partway through and then the operation dies with a message similar to
Couldn't open .git/svn/refs/remotes/trunk/.rev_...
I have a Windows Service (written in Java) that needs to start other Windows Services under certain circumstances. I do this by simply pumping out "sc" commands to the command line.
If the windows service I'm trying to start is disabled, the startup will obviously fail. I'd like to determine this beforehand and not bother to trying to...
Hello, I am debugging a large project in C++. There are a few dereferenced pointers causing random crashes. Could you suggest me please best free tool for pointer validation? (Identification of use of invalid pointers)
(Otherwise it will took me ages to go through it manually)
Also I have used Memory Valuator program to get rid of the ...
With ActivateKeyboardLayout I am able to change keyboard language to some of the layouts given by GetKeyboardLayoutList. There is one problem though, I can't choose the actual keyboard, only the language. The keyboard I get is simply what the user chose previously for that language. So if I have English US (HKL=0x04090409) and US Dvorak ...
So I was changing code from
foo()
{
to
foo() {
and I noticed that the searching pattern required me to search for \n, but when I tried to replace it with \n I got the ^@ character, and I had to instead replace with \r.
It seems strange to me that I search with \n and replace with \r, any idea why this might be?
For reference my ...
I'm trying to compile a simple Python program, that uploads files to an S3 bucket using the boto package, in to a single, redistributable .exe file. I'm open to any compilation method. So far I've tried both bbfreeze and py2exe and both yield the same results. The code in question that causes trouble looks like this:
import boto
#...sni...
I have a List array called taskItems
public class TaskItem
{
public int Intnum { get; set; }
public int ID { get; set; }
public int TaskID { get; set; }
public string Name { get; set; }
public string Value { get; set; }
}
taskItems.Find(x => (x.Name == "function")).Value
I am trying to use the Assign component in...
I guess everyone has run into missing dll's issues from time to time. What I am trying to get is the 'recommended' method to find and install the dll's. Finding out which dll's are missing is easy enough using depends.exe.
...
Does anyone know of a way to parse out disk latency information from the new Storport provider with XPerfViewer (or any other tool)?
I used the following article to capture a trace:
http://blogs.msdn.com/b/ntdebugging/archive/2010/04/22/etw-storport.aspx
This does give me a series of events in .etl format that XPerfViewer will plot a...
I have the following code:
public class TestGr
{
static String aaa = "wwww";
public static void main(args)
{
println "["+getAAA()+"]";
println "[" + getBBB() +"]";
}
static String getAAA()
{
return ""
+ "${aaa}"
}
static String getBBB()
{
return "" + "${aaa}"
}
}
The output of this code is:...
How can I get an IShellItem object for a non-existent file (or directory)?
SHCreateItemFromParsingName and SHCreateItemFromRelativeName fail with 0x80070002 (file not found) and
ILCreateFromPath returns a NULL pidl.
First I thought it might be impossible, but for example IFileSaveDialog creates such an IShellItem for its result (if ...