I'm working with PyInstaller under Python 2.6, which is only partially supported due to the mess MS have created with their manifest nonense which now affects Python since it is now MSVC8 compiled.
The problem is that the manifest embedding support relies on the pywin32 extensions in order to build which is a pain because without includ...
From my application written with Delphi 2009, I am reading from and writing to an IBM DB2 database using ADO, the ODBC Provider for ADO, and ODBC:
Application -> ADO (Win32) -> ODBC-Provider for ADO -> ODBC -> (net) -> DB2 (Windows)
Now, my application need to store unicode data. So I set my database codepage to UTF-8. Delphi handles s...
In my application there is an interface where user can select any file and open in its default application depending on the file association.
I am using FindExecutable and CreateProcessAsUser with Explorer token.
Now the problem is in the case of picture files say .jpg, FindExecutable returns "C:\Program Files\Windows Photo Gallery\P...
Hello,
I wonder why the WinAPI is so much different from "normal" C programming?
I mean, in school I learned that every C programm has a main() function (WinAPI uses WinMain with some special parameters), some variable types like int, long, char etc. (WinAPI uses things like LPCSTR, BOOL, etc.) so why did Microsoft decide to go such a ...
I've determined that I can use GetSystemMetrics(SM_CMONITORS) to query the number of attached monitors, but is their any way to control what monitor CreateWindowEx() uses for the window?
...
I'm pretty new to lockless data structures, so for an exercise I wrote (What I hope functions as) a bounded lockless deque (No resizing yet, just want to get the base cases working). I'd just like to have some confirmation from people who know what they're doing as to whether I've got the right idea and/or how I might improve this.
clas...
I am trying to debug a win32 windows-mobile app that I am largely unfamiliar with.
I am forcing a periodic InvalidateRect(hWnd,NULL,FALSE) and each time I do the WM_PAINT method is being called, but the GetUpdateRect() returns 0,0,0,0, and obviously nothing that is drawn is visible. GetWindowRect() and GetClientRect() show the window i...
Hello :)
I've got a little text drawing puzzle under Win32. I'm trying to draw some instructions for users of my application at the top of the window.
Please refer to the following window (I've changed the background color on the text so you can see the boundaries)
I'm currently using DrawTextEx to draw the text to my window, but th...
Motivation: Creating our own file dialog that looks & acts much like the std common dialog
Problem: How to obtain the view pull-down for the current folder/shell container
Apparent Dead Ends:
Query the IShellFolder for its IContextMenu < NULL interface pointer.
Query the IShellView for its IContextMenu < NULL interface pointer.
IShel...
I made an installer using the ISTool wizard and everything is fine. Under my program name in the start menu, I have
MyApp
MyApp Help
Now, I want to add 2 more entries that are identical to the first (MyApp) but that passes a command line argument to the executable
MyApp
MyApp (Console Mode)
MyApp (Remote Admin Mode)
MyApp Help
Shou...
Hi Guys,
I want to change from my program the speaker setup, which is under speaker settings / advanced... section.
I tried to find maybe there is some sort of registry entry but no luck till now :|
Any Ideas ?
Thanks a lot !
...
I am currently adjusting a Windows Applications GUI for Windows 7. I find a (although rather cosmetic) problem with icons in menus:
In XP i use Bitmaps do identify menus which are checkable. We supply a separate Bitmap for checked/unchecked state. The bitmaps have a size of 13*13 pixels:
In Windows 7 though all checked Menus have a r...
I want to know the value of virtual key pressed when a child window(like 'edit' or 'button') has focus.
How to do that?
...
Hello :)
Is there a way to double-buffer the common controls? Currently when they resize they flicker. A lot.....
EDIT: If it helps, it is a bunch of button controls and a few edit controls, all sitting on top of a tab control. The Tab control redraws itself, then the buttons redraw themselves. When the buttons redraw, they flicker.
E...
I have an LPTSTR for a file path, i.e. C:\Program Files\Ahoy. I would like to convert it to a file:// URL that I can pass to ShellExecute in order to start the system's default browser pointing at the file. I don't want to give the path to ShellExecute directly since file associations may result in it being opened by something other th...
Or are these terms used to refer to the same thing?
I'm trying to implement some custom buttons showing a bitmap image, into my Win32 app. One tutorial indicates I should be creating child windows using CreateWindow().
However, I have downloaded a bunch of source code from another tutorial on creating "child controls", and no referenc...
What are the effects of calling SetThreadUILanguage in an applicaton? Will it cause captions like "OK" and "CANCEL" on a MessageBox to appear in the language set through this API?
If the captions do appear in the set language, do they require a localized version of the OS in that language or is it sufficient to have an MUI (Multilinguis...
struct tagBITMAPINFO {
BITMAPINFOHEADER bmiHeader;
RGBQUAD bmiColors[1];
} BITMAPINFO;
tagBITMAPINFOHEADER{
DWORD biSize;
LONG biWidth;
LONG biHeight;
} BITMAPINFOHEADER
BITMAPINFO bmiCurrWindow;
capGetVideoFormat((*m_pCapWndArray)[i].hCapWnd, &bmiCurrWindow, formatsize...
Suppose I run an application, after some time this app will get closed by user. Is it possible to find out when the program exits? Can I get it's process id when I run that application?
...
Is there a way to make input "pass through" a child window and reach its parent? My problem is this: I'm making custom control with a label that can be formatted. So, rather than trying to re-invent the wheel, I added a RichTextEdit control and applied the WS_EX_TRANSPARENT extended window style. It looks like what I want, but there are ...