Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
C is a general-purpose computer programming language used for operating systems, games, and other high performance work and is clearly distinct from C++. It was developed in 1972 by Dennis Ritchie for use with the Unix operating system.
5
votes
Accepted
A C WinAPI program for showing the color of the screen pixel pointed to by mouse cursor with...
rect.bottom - TEXT_LINE_HEIGHT, buffer, 7);
SelectObject(hdc, oldfont);
DeleteObject(hFont);
EndPaint(hwnd, &ps);
return 0;
}
case WM_KEYDOWN:
//Ctrl+C: … if ((GetKeyState(VK_CONTROL) & 0x8000) == 0x8000 && wParam == 'C')
CopyToClipboard(hwnd);
return 0;
case WM_SIZE:
InvalidateRect(hwnd, NULL, FALSE);
return …
1
vote
A C WinAPI program for showing the color of the screen pixel pointed to by mouse cursor with...
Ctrl+C is also used to copy the color, but this works only when program has focus. … (c), GetBValue(c));
DrawText(hdc, text, -1, &rc, DT_LEFT | DT_VCENTER);
}
LRESULT CALLBACK WindowProc(HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam)
{
switch (msg)
{
case WM_CREATE …
3
votes
Accepted
Using SHA-512 for encryption/decryption
The above encrypt/decrypt functions can be summarized as follows:
void mad_encrypt(...)
{
while(n)
{
SHA512(mad, 96, x);
XOR(out, in, x);
memcpy(mad->state, out, 64);
...
}
}
v …