I have used sendinput() function and windows keyboard hooks to develop a custom keyboard for indian languages.
Project is in google code here: http://code.google.com/p/ekalappai
The keyboad hook and sendinput functions are placed in a win32 dll. And they are called from a Qt exe.
Our application works fine for most keys and application...
Using Visual Studio .NET 2003 C++ and the wininet.dll
Am seeing many C4995 warnings
More info
Any help is appreciated.
Thanks.
...
I'm a beginner to reading assembly language and I'm looking for a good assembly reader for win32, which one do you recommend?
...
Consider the following DLL dependency graph (snipped from within Dependency Walker):
How is it that MSVCR80 can be found at the top level but not from within MSVCP80?
I realize that in theory MSVCP80 could have a broken manifest, but since it's built by Microsoft, I haven't touched it, and it works fine in other projects, let's assum...
How do I exclude specific .dlls from Visual Studio 2003 C++ .NET?
During release build I get the following warnings.
Any help is appreciated.
Generating Code...
Linking...
LINK : warning LNK4089: all references to 'ADVAPI32.dll' discarded by /OPT:REF
LINK : warning LNK4089: all references to 'SHELL32.dll' discarded by /OPT:REF
LINK : wa...
I'm creating a Windows Mobile 6 application using MFC Single Document Interface with CFormView base class.
I put CBitmapButton in the Form/Dialog resource and put them at the bottom. The CBitmapButtons fit nicely until a soft-keyboard appear or the application is covered by other applications. In such case, unwanted scroll bars appear ...
Hello all :)
I'm looking at a simple class I have to manage critical sections and locks, and I'd like to cover this with test cases. Does this make sense, and how would one go about doing it? It's difficult because the only way to verify the class works is to setup very complicated threading scenarios, and even then there's not a good w...
In Microsoft Windows, there is a (highly useful) feature that automatically moves the cursor to the default button of a modal dialog box (activated in Win+R, "control mouse").
Now I have created a custom dialog box in Delphi (basically a TForm), see below.
But, quite naturally, the cursor does not automatically move to the default bu...
interested in absolute time, rather than a way to measure the duration.
Win32 API
c++
...
I've got a handle to a window and its richEdit control. Would I be able to replace the said control with one of my own ? I'd like it to behave as the original one would, i.e., be a part of the window and suchlike.
I'll elaborate the scenario further - I'm currently disassembling an application one of whose features is a text editor. My ...
I'm using a thrid party Windows service that handles some automation tasks by running scripts and executables using CreateProcessAsUser(). I'm running into problems on Windows Server 2008 due to UAC and way the LUA elevation is handled through the APIs.
The service runs as LocalSystem and does not have "Interact With Desktop" enabled. T...
Which is the best book for win32 api for beginners? Many in other posts suggested Charles Petzold's Programming Windows, but isn't that book old. As far as I remember it was written in Win9X, more then a decade ago on a dos based system. Windows has changed a lot since then. Is that book still good?
I've also considered QT, but I believ...
Suppose you have a string with text in two or more scripts. When you use a GDI function like TextOut, (modern versions of) Windows will do "font-linking". That is, GDI will draw what it can with your selected font and draw the rest in an appropriate font that it chooses automagically. For example, if part of your text is in English (u...
Hello,
I am writing a simple console application which will allow me to create a number of threads from a set of parameters passed through the arguments I provide.
DWORD WINAPI ThreadFunc(LPVOID threadData)
{
}
I am packing them into a struct and passing them as a parameter into the CreateThread method and trying to unpack them by ca...
Our product includes several DLLs built from open source into files with default names as delivered by the open source developers. We're careful to install the files in our own directories and we carefully manage the search path (only for our processes) to keep the loader happy.
Another developer -- a towering intellect -- decided it wo...
In a Windows batch file, I want to construct a classpath of .jar files in a trusted directory.
I thought this might work:
set TMPCLASSPATH=
for %%J in (*.jar) do set TMPCLASSPATH=%TMPCLASSPATH%;%%J
This doesn't seem to work, since %TMPCLASSPATH% appears to be evaluated once at the beginning of the for loop.
Any suggestions?
...
Hi
I am trying to ensure my WPF window stays on top as long as it is open. It is acting as a pop-up set to TopMost=true, and a call to the win32 SetWindowPos to TOPMOST. When first opened it appears on top of another running application on the desktop- maximized or not.
If the user activates or uses a window in the application mine los...
Hi! I am newbie in English, sorry :)
How to create something like Expander control in WPF using only WinAPI (ATL/WTL)? Are some experince avaliable?
Thank for answers!
...
i know Win32 has the Nls function GetDateFormat, e.g.:
GetDateFormat(…, …, …, "dddd','MM','y", …, …);
and it has GetTimeFormat, e.g.:
GetTimeFormat(…, …, …, "tt ss':'hh':'mm", …, …);
But there a way to format both at once, e.g.:
GetDateTimeFormat(…, …, …, "tt dddd' - 'ss':'y';'hh':'mm MM", …, …);
Note: The format string is inten...
Suppose you have 2 files in the same directory:
New File Name.txt and
NewFil~1.txt
If you use CopyFileEx to copy both files to the same destination, maintaining the same names, you will end up having only ONE file (the second one replaces the first one) which can be sometimes not a good thing. Any workaround for this behavior?
...