Click here to Skip to main content
15,434,755 members

Comments by Shao Voon Wong (Top 163 by date)

Shao Voon Wong 17-Jul-22 0:47am View     CRLF
You can read my article on how to call C/C++ from Javascript or vice versa. https://www.codeproject.com/Articles/5160967/Bring-Your-Cplusplus-Code-to-the-Web
Shao Voon Wong 28-Jun-22 3:17am View     CRLF
Put ampersand on the second last parameter.
bErrGHJ = WriteFile(hDFile, LpAll, Bytes_that_need_To_Write - bytes_which_have_written_already, &bytes_which_have_written_already, NULL);
Shao Voon Wong 6-May-22 23:02pm View    
Yes, because the pixel color is on your graphics card, not DC when using hardware acceleration.
Shao Voon Wong 5-May-22 0:10am View     CRLF
Maybe you can try to capture the image using DirectX? You need to modify the code in the article below to capture the window content instead of a screen. I cannot help you with this because it is too complicated in a post. https://www.codeproject.com/Articles/5256890/ScreenCapture-Single-Header-DirectX-Library
Shao Voon Wong 4-May-22 23:51pm View    
Perhaps your Chrome browser is using hardware acceleration for graphics rendering? This means it is not using DC for rendering but DirectX.