Search:
Type: Posts; User: Boris K K
Search:
Search took 0.03 seconds.
-
April 21st, 2008, 11:50 AM
It seems this information is intentionally obscured:
http://blogs.msdn.com/oldnewthing/archive/2007/06/11/3215739.aspx
Check also the reply to the second comment.
-
April 21st, 2008, 11:19 AM
Also, make sure the listening application listens on 127.0.0.1.
-
April 14th, 2008, 04:38 AM
The closest thing I can think of is setting the font at dialog template level.
See FONT resource definition statement.
-
March 17th, 2008, 04:32 AM
I believe this is the true problem that needs solving:
and in Windows environment threads are better solution to it than processes. *NIX is another matter...
-
March 14th, 2008, 05:11 AM
For the described problem
Threads
seem more appropriate.
-
March 10th, 2008, 06:59 AM
1. There is simply no way szChar to contain strange characters immediately after the call to sprintf. Your code is OK as long as you compile without UNICODE defined (which means it is not that OK).
...
-
March 6th, 2008, 05:31 AM
Or just use SetDlgItemInt. It will work even for non-dialog parent window as long as hStatic has a unique ID.
Alternatively, for "purists" that like to use WinAPI whenever possible, there is...
-
March 6th, 2008, 05:25 AM
No, using GetAsyncKeyState (is Shift down right now) may result in incorrect capitalization. GetKeyState (was Shift down when 'l' was pressed; was Shift down when 'e' was pressed, etc.) should be OK.
-
March 5th, 2008, 06:56 AM
Actually it is not a flow. You are interested if Ctrl was down at the time the other key was pressd, not whether it is down or up at the moment you are processing the message.
-
March 5th, 2008, 06:42 AM
Typically, one would use a SCSI command and ASPI or SPTI API to send it to the device.
-
March 4th, 2008, 08:09 AM
Your code does not make much sense to me but if you want to check the state of other keys, such as Ctrl, Alt, or Shift while processing WM_KEYUP/DOWN, you can use GetKeyState API function.
-
February 27th, 2008, 09:58 AM
In debug mode uninitialized variables are filled with bytes that correspond to a big unsigned value. This can explain why uninitialized variable would work. I see no way buffer size initialized to 0...
-
February 26th, 2008, 06:22 AM
-
February 25th, 2008, 05:56 AM
It seems like you are mixing Unicode and Multi-byte. Use TCHAR instead of char, LPTSTR instead of LPSTR and LPWSTR.
-
February 25th, 2008, 05:52 AM
You must not use
tbab.hInst = HINST_COMMCTRL;
unless you want to use a system bitmap. Use the application's HINSTANCE or the HINSTANCE of a .dll depending on where the resource is located.
-
February 14th, 2008, 10:59 AM
Better try to intercept WM_PASTE.
-
January 10th, 2008, 08:05 AM
Although this also applies to other cases, I will continue with examples from file mapping:
(1) If you do
HANDLE hMapping = CreateFileMapping(INVALID_HANDLE_VALUE, ..., PAGE_READWRITE, ...);...
-
January 10th, 2008, 05:40 AM
It is not the process, it is the operating system kernel handling the page fault that knows. Suppose two processes map the same file in memory in modes compatible with each other, for example both...
-
January 10th, 2008, 05:10 AM
I suppose by "hardware" they actually mean the page table of the process where the page fault occurs.
- the process does not "know" where in physical memory to look for the requested page
- the...
-
January 10th, 2008, 04:34 AM
Wikipedia
Microsoft TechNet
Edit: I forgot to add the most important link :rolleyes:
-
January 7th, 2008, 09:19 AM
You must create a modeless dialog box. Then you can change method IncreaseStep to call StepIt() only once for each invocation. Setting of range and initial position of m_Progress belong more to...
-
January 7th, 2008, 08:34 AM
DoModal returns only after the dialog box is closed.
Even if you had called IncreaseStep while the dialog was visible you were not likely to have seen the progress bar moving, just its final state....
-
January 2nd, 2008, 12:17 PM
Also UTF-8 is a good platform-indepenent encoding (fixed byte order). And it is supported by WideCharToMultiByte and MultiByteToWideChar - CP_UTF8.
Note that UTF-8 is a variable-length encoding...
-
December 10th, 2007, 09:50 AM
COMSTAT structure should be allocated by the caller. As in
COMSTAT stat = {0};
ClearCommError(..., &stat);
-
December 6th, 2007, 11:04 AM
Search for "duplex" in KB167345.
|
Click Here to Expand Forum to Full Width
|