Relative Content

Tag Archive for c#windows

Uninitialized static variable is not being stored to bss segment

#include <stdio.h> static int test; int main () { return 0; } and after i compiled the file and check the size of bss segment nothing changed. here’s the ouput of the terminal after i check the bss segment size before adding the uninitialized static variable C:UsersUserDocumentsProgrammingC>size a.exe text data bss dec hex filename 14584 […]

How capture mouse clicks or keybooad key presses in C++

I looked in several places but couldn’t find it out, or if I found something code doesn’t seem to work properly. Like the code below for example (I don’t have much idea what it does, cause I don’t know the cpp language)

How to identify which process hooks into a keybinding?

For some reason Alt+R does not work on my system as keybinding at all. I am sure it did use to work. I am wondering if there is an API on windows that can tell me which processes are hooking into keybindings, because in the past it was GeForce Experience, but now some other process seems to intercept the keybinding.

c++ and IStream.Read()

I am trying to capture the screen,then transfer it to byte stream, in order to send it to the network.
But the stream->Read() doesn’t work.The once_read always 0, and the there is not data on buf. I don’t konw if there are better ways to do this.

Soccer Scoreboard in C#, Windows Form

I want to make a football scoreboard in C# in Windows form and I have one form to set it, one for the output to display in the software. It was added to the home team in the second form without clicking the setting button

In C# how to take a screenshot ignoring a particular window?

I have a transparent overlay that renders opaque rectangles within itself. It is the topmost window and occupies the entire screen. How can I take a screenshot without including this window in such a way that there is no flicker on the window during the process of taking the screen shot.