Windows Programming - October 2020

by Weasel
Bitblt and raster ops
 
I'm trying to colour some text using a gradient fill. Now I can do this using Bitblt with SRCPAINT and SRCAND raster ops and I get my gradient text filled in c...
[1 reply] : You need to paint the background first - probably with FillRect and th... (by Thomas1965)
by MarkP
Intercepting WM_WINDOWPOSCHANGED
 
I'm intercepting WM_WINDOWPOSCHANGED for my MainWindow to do some stuff. My problem is now, when I drag the window with the mouse, I'm getting 100s of WM_WINDO...
[3 replies] Last: You may have a look at the WM_EXITSIZEMOVE message. (by Pierrre)
by franki
Getting stuck at the first using the cpp
 
Hi I am start using this github https://github.com/tyolab/MT4-Manager-API-1/tree/master/Examples/TradeLogin At the monent get stuck , how to pass parameter t...
[1 reply] : The help tells you. > printf("usage: TradeLogin.exe server login pass... (by salem c)
by Tezzy
Graphic programming (1,2,3,4)
 
Hello all, I’ve been learning c++ and how to use it, I downloaded the visual studio compiler and I wanted to make a game. It’ll just be a dinosaur game like...
[63 replies] Last: Alr this makes much more sense, i’ll try it out (by Tezzy)
How to do a calculation between a POINT and vector data?
 
Hi, I have a POINT and a set of data get from a vector function that contained hwnd and rect . std::vector<VECDATA> vecListData; myVec->emplace_back...
[7 replies] Last: I'm not sure why I need to add (), but now it works fine! Thanks Ce... (by mbozzi)
Control's speed of response
 
I have a Dialog box with a radio button on, when I click it it should make a sound using the PlaySound function. There is a short delay between clicking and he...
[4 replies] Last: I have come across XAudio which I believe is Microsoft's replacement f... (by Weasel)
[Wlanapi] WLAN_NOTIFICATION_MSM NotificationCode 59
 
Hi, I'm working on a small Wifi tool using wlanapi in vs2019. I'm outputting the wlan notifications to the output window and constantly witnessing an unknow...
[10 replies] Last: I've got an answer from MSFT: This is by design. The 0n59 notifica... (by alexnone)
by MarkP
Hide a value in parameter of CreateThread()
 
I'm looking for a direct way to pass a single UINT to a CreateThread() I know I can hide a socket in a CreateThread(), like this: CreateThread(0,0,MyThrea...
[11 replies] Last: At some point, you'll get bored of hit-and-miss cowboy programming te... (by seeplus)
DLL and EXE files decompiled
 
Hi everybody, It is quite easy to decompile .DLL and .EXE files written with C# (dotPeek, ILSpy, or even online: http://www.decompiler.com/ ). Is there a way ...
[2 replies] Last: C# and Java for the most part can be decompiled back into human readab... (by deleted account xyzzy)
How to make a keyboard input button?
 
Hello. Does anyone here know how to make a small little window with a button that gets keyboard input? like in html: <button>Keyboard</button> Something m...
[15 replies] Last: Somewhere in this thread of Alexander's he asked me about my command l... (by freddie1)
Windows source I found won't compile (1,2)
 
Hello. I found this code: #ifndef UNICODE #define UNICODE #endif #include <windows.h> LRESULT CALLBACK WindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPAR...
[34 replies] Last: Maintaining a site like CPP -- other than the forum as long as the dat... (by deleted account xyzzy)
how use PlgBlt() function?
 
i know the PlgBlt() function is good for draw an image by it's shape. BOOL PlgBlt( HDC hdcDest, const POINT *lpPoint, HDC hdcSrc, int ...
[no replies]
by Ganado
LockFileEx but for a different process
 
The Win32 function LockFileEx "locks the specified file for exclusive access by the calling process." https://docs.microsoft.com/en-us/windows/win32/api/fileap...
[1 reply] : Try changing the security level of the file. See: https://docs.micros... (by coder777)
Please Help Me !!!
 
hello everyone How I can calculate this number(-124) from binary format?? Please Please Help Me Note : 132 on binary ( 1 0 0 0 0 1 0 0 ) https://i.postimg....
[10 replies] Last: I can see that there is some confusion on "2's Complement". Let's tak... (by anachronon)
  Archived months: [sep2020] [nov2020]

This is an archived page. To post a new message, go to the current page.