I want to load a image (.bmp) file on a Win32 application, but I do not want to use the standard LoadBitmap/LoadImage from Windows API: I want it to load from a buffer that is already in memory. I can easily load a bitmap directly from file and print it on the screen, but this issue is making me stuck :(
What I'm looking for is a functi...
I was wondering how ex Photoshop and Expression Design render sub tools. These show up when for example you hold your mouse down on the fill tool, a sub menu comes up to your right with the fill and gradient tools. I'm just not sure how to go about this because this sub menu would essentially have to be an extension of my toolbar, but th...
How to put a cut/copy reference to specific files and/or folders into Windows clipboard so that when I open standard Windows Explorer window, go to somewhere and press Ctrl+V - the files are pasted?
If I copy or cut some files/folders in Windows Explorer, how do I get this info (full names and whether they were cut or copied) in my Prog...
I was wondering if there was a way to run a thread on a seperate core instead of just a thread on that core?
Thanks
...
I'm using the following code to access the Windows Explorer Shell's band site service:
Guid GUID_TrayBandSiteService = new Guid(0xF60AD0A0, 0xE5E1, 0x45cb, 0xB5, 0x1A, 0xE1, 0x5B, 0x9F, 0x8B, 0x29, 0x34);
Type shellTrayBandSiteService = Type.GetTypeFromCLSID(GUID_TrayBandSiteService, true);
site = Activator.CreateInstance(shellTrayBandS...
I am using this code to get the windows version:
#define BUFSIZE 256
bool config::GetOS(LPTSTR OSv)
{
OSVERSIONINFOEX osve;
BOOL bOsVersionInfoEx;
ZeroMemory(&osve, sizeof(OSVERSIONINFOEX));
osve.dwOSVersionInfoSize = sizeof(OSVERSIONINFOEX);
if( !(bOsVersionInfoEx = GetVersionEx ((OSVERSIONINFO *) &osve)) )
ret...
Is there a reliable way to learn that a memory page or a range of pages belongs to a specific DLL inside the address space of a process?
...
I have been looking at sample online code for interfacing with the Windows Task Scheduler, and most of them import the namespace:
Microsoft.Win32.TaskScheduler
When I go to import it, it's not there within Win32.
Does anyone know why I can't import it? I'm assuming something isn't registered correctly on my machine, but I can't fiugr...
I am programming in C, using the Windows API, and would like to know how I could draw separators.
I'm a total noob when it comes to writing GUI applications, so I may need a code example.
Edit: Here's an illustration...
...
Is this even possible?
I'm embedding Flash inside an IE frame in my application and would like to check if Flash and what version of it is installed.
The application needs to run without admin privileges.
Bonus question: Can I also check if ActiveX controls are enabled in the IE settings?
...
Sometimes, I want to find a function by guessing a function name.
I can't this at MSDN.
Is there a good web page or a document?
...
I have written a program in C to send a byte to serial port (com).
I have used BIOSCOM to send data
but I guess that it doesn't open the port.
Please tell how I can open and close a com port in C.
My code is here:
#define COM1 1;
bioscom (1 , 65 , COM1);
Please help me...
...
Hello!
In a program I span a thread ("the working thread"). Hera I copy some files write some data to a database and eventually, delete some other files or directories. Everything works fine. The problem is now, that I decided to move the deleting operation to some other thread. So the working thread now copies the files or directories,...
How to capture google earth desktop program window to bmp file? I used printwindow function, but it only captures controls, region with planet is empty. Google earth can be minimized, or hidden with other windows.
...
Hi!
I use GDI to create some custom textwidget. I draw directly to the screen, unbuffered.
now i'd like to implement some fast scrolling, that simply pixelshifts the respective part of the framebuffer (and only redraws the newly visible lines).
I noticed that for example the rich text controls does it like this. If i use some GDI draw...
I have a legacy C++ "solution engine" that I have already wrapped as an in-process COM object for use by client applications that only require a single "solution engine".
However I now have a client application that requires multiple "solution engines". Unfortunately the underlying legacy code has enough global data, singletons and thre...
Is there an established or unofficial way of finding out if my application is running on a Windows Mobile 6.5.3 device or if it's a previous version? Managed or native doesn't matter and I don't mind interop-ing.
...
if you're a c++ programmer, would you go for the Win32 API or .NET to develop GUI applications?
...
I work on a project called UAWKS (Unofficial Apple Wireless Keyboard Support) that helps Windows users use Apple's bluetooth keyboard. One of the main goals of UAWKS is to swap the Cmd key (which behaves as Winkey in Windows) with Ctrl, allowing users to do Cmd+C for copy, Cmd+T for new tab, etc.
It is currently developed using AutoHotk...
is there any good book/video/web tutorials for multithreading in win32? I only found Addison-Wesley - Multithreading Applications in Win32 (1996) book and might going to order it soon.
...