I have a win 32 application written in c++ which sets the low level keyboard hook. now i want to sendInput to any app like word / notepad. how do i do this?
i have already done enough of using findwindow / sendmessage. for all these, i need to know edit controls. finding the edit control is very difficult.
since SendInput works for any...
This is a part of an open source project called JNotify. I am trying to fix the Win32 Implementation and it's really driving me nuts. I already read everything there is to read in MSDN about this, and read every web post about this sucky API.
I am trying to receive file system notifications on windows using ReadDirectoryChangesW, using a...
I thought that one processes cannot read the memory of another process. But I'm shocked to see an application named "WinHex" which has "Ram Editor" and it is able to access entire memory. of all the processes.
How is that possible? And it is even able to modify the memory of other processes. Doesn't this become malicious?
...
How should I implement these 64-bit interlocked functions on WinXP? Of course I can use full mutex, but I think it's needlessly heavyweight for this task. There must be some better way.
...
In C++ (specifically on Visual C++), sometimes you cannot open a file because another executable has it opened and is not sharing it for reads. If I try to open such a file, how can I programatically find out who's locking the file?
...
Hi,
I want to check for the existence and if it doesn't exist add some actions in the Explorer's right click (context) menu.
Besides of the above requirement (for which one can find easily solutions on web) I want to add one more:
Suppose that I register the following commands:
"Command #1" - triggers 'C:\MyProg.exe /cmd1'
"Command ...
I have customer that uses older, custom built ERP application for which they don't have source code and company that developed it does not exist any more. Application is developed in 2000 and it's built with Delphi. Since last executable is from 2003, it could be D6 or D7.
On one important form there are some fields where customer woul...
I have SpeedButton on my form and I want it open avi file with associated program.I tried Windows.winexec but it doesn't seem to be worked.
...
I'm developing a win32 app in the C Programming Language. This is my first experience with the native win32 apis and they seem to be completely brutally unreadable (simple window).
I was wondering if there was a wrapper for the entire API that I could use, instead of having to smash my head with this stuff.
Other frameworks/libs won't ...
Could someone point me whats wrong with this code please? I'm having a very hard experience in mixing C++ and MC++. I have read a lot of blogs and tutorial regarding this subject (passing delegates) but now that looks my code is ok (its compiling and runs well when in debug mode and step by step) it crashs.
The main problem is that it n...
Hi,
I have some controls like TWebBrowser, TRichText etc. which I want to scroll them (horizontally and/or vertically) from my program.
How do I achieve this?
PS: I think that it is doable by sending some messages to their handles but I don't know now which ones.
TIA.
...
Hi!
I'm trying to use a class member as a callback but the compiler gives me the following error:
Error 2 error C2440: 'type cast' : cannot convert from 'void (__stdcall CWaveIn::* )(HWAVEIN,UINT,DWORD_PTR,DWORD_PTR,DWORD_PTR)' to 'DWORD_PTR'
Is it possible to use a member function as a callback this way? and how do I convert the std...
How can I use the Win32 icons like open icon, new file icon, and save icon. Do I have to download them as images? Or are the images in a dll? Maybe System.Windows.Shell?
...
Hi, I want to make chat application and for the first step, I need to know which API there is to use to display text in lines and also erase if needed. thanks!
...
Our application's "documents" are single binary files.
Our customers have asked if we can add MS Office-like document properties to our document files so that they are easier for users to manage. By easier to manage, I mean the ability for Windows Explorer to display common document properties in tooltips.
My research seems to indicate...
hi,
I have a callback that is called through a delegate. Inside it I will need to treat the buffer data that arrive from a record procedure. Normaly in a unmanaged context I could do a reinterpret_cast on dwParam1 to get the object reference.
But in a manged context how can I cast a DWORD_PTR to a managed object ref?
static void Wav...
Currently I'm using a pixel reader via AutoItv3 to perform some actions in a program that is running direct X; A game. Right now the program works fine but as an exercise I've been rewriting it in python. Right now I can do:
import ImageGrab # Part of PIL
image = ImageGrab.grab() #Define an area to capture.
rgb = image.getpix...
I'm looking for some books that will teach me how to create a custom GUI interface using the winapi. What I want to create is something that looks like this
http://img199.imageshack.us/img199/2601/image1eal.png
I don't want to use any libraries like GTK or QT, I want to do it from scratch so I can learn. I've looked everywhere on googl...
Guys, I have much python code in modules which are resides in several python packages and now I need to create single python executable module or file which will include all these files, so it will be working on windows and on linux servers. What are possible solutions and how this can be done?
...
Is it possible to get the screen pixel resolution in mm using Win32 APIs ? I have an application which is showing 0.3472222222222222 as the value for this on my 1280x1024 monitor with 96 dpi . But I am not able to find out how it got this value. Any clues will be helpful. I can use MFC also if required.
EDIT
Sorry for the confusion, the...