SetMapMode and MouseMove messages Hi, case WM_PAINT: hDC = BeginPaint(hWnd, &PaintStruct); SetMapMode(hDC, MM_ISOTROPIC); SetWindowExtEx(hDC, 450,450,NULL); SetViewportExtEx(hDC, cxClient, -cyClient, NULL); SetViewportOrgEx(hDC, 0, cyClient, NULL); //[snip] ... case WM_MOUSEMOVE: int xPos, yPos; xPos = LOWORD(lParam);... 18 Jan 2010 05:21
"PORTING C" > Viewing an array in wathc window fails! Hello, Okay, I know how to pass an array to a function.... but then not being able to view the array's contents is not normal. Please view the sample code at: http://irc.essex.ac.uk/www.iota-six.co.uk/c/f3_passing_arrays_to_functions.asp Now, I have modified the code a little and entered it this way... pl... 2 Feb 2010 17:36
searching a class to use sockets Hi, I am studing how to create sockets by using the winsock2.h and ws2_32.lib .... I have to admit it is really hard to code something for the moment...is there any good (free) class to deal with sockets ina simpler way? I would like to create a tiny server which serves more clients at the same time... thanks ... 18 Jan 2010 08:39
Simple usage example for BigInteger? One of the new additions to the .NET 4.0 framework is System.Numerics.BigInteger. Please can someone give a simple usage example? Thank you. ... 17 Jan 2010 12:49
"PORTING" C > weird char array values displayed in watch windo Hello Giovanni, Thankfully, this solves question #1.... I thankyou for this. With all the porting and tests I have been doing I overlooked this.... I appologize. However, question #2 behaves exactly as I described.... and I don't know why. Do you see something I don't see? Thanks! -- Best regards R... 16 Jan 2010 15:03
"PORTING" C > weird char array values displayed in watch window? Hello, Today I ported a small function which values used to display fine in the old compiler's watch window but now displays weirdly in the watch windows of MPLAB/C32 and VC++ compilers. In the last week, I have externed many int variables/arrays and char variables the way it was instructed to me and up to ... 15 Jan 2010 13:52
functors and binary_function Hi Just reading "C++ Common Knowledge" - Stephen Dewhurst. According to this, deriving your functor from binary_function allows "other parts of the STL implementation to ask compile-time questions of the function object". Now does this occur for Visual Studio 8.0 ? Visual Studio 9.0 ? Visual Studio 10.0 ? ... 18 Jan 2010 16:34
WAVEHDR allocationg several buffers WAVEHDR allocationg several buffers Hi, I'm dealing with WAVEHDR from the waveForm API. I'd like to know which of the following is the best approach to set up some buffers: 1) // Define WAVEHDR Structure: WAVEHDR *buff = new WAVEHDR[num_buffers]; for (int i = 0; i<num_buffers; i++) { ZeroMemory... 16 Jan 2010 21:38
IDispatch and dispinterface When a coclass wishes to allow late-bound clients to access its functionality, it must support COM interface named IDispatch. This standard COM interface allows a late-bound client to call any method or property on the object's IDispatch implementation (termed a dispinterface) using two well-known methods: GetID... 13 Jan 2010 16:38
Prob with Modal popup dialog. Hi, I created a popup(Modal dlg)panel which will be shown from the system tray when user types certain character. The problem is that when this popup panel shows up it is getting focus. This is undesirable in the case when user is typing some text in an editor and the editor looses focus because of the popup pa... 2 Feb 2010 17:36 |