I have a socket i am using normal blocking sockets (brekley sockets). I want to know before i call recv wheather it will become a blocking one or not. so that the socket dont block at that instance coz it is causing threading locking.
Is there any way to provide a timeout to the sockets..
i am not using MFC and so mfc CSocket is not a solution.
"When death smiles at you, only thing you can do is smile back at it" - Russel Crowe (Gladiator)
I have a CScrollView set up in one pane of an MDI splitterwindow application.
I would like the user to be able to scroll the view by clicking inside the CScrollView then dragging the mouse outside the client area. To see an example of what I mean, load up ms excel, click on a cell, then drag outside the child window (or outside the main frame of the application).
I thought I could do this by using "onmousemove" messages, calculating which way the user has dragged, and scrolling accordingly, but unfortunately I can't receive mouse coordinates when the user is outside the client area, and I only want the scrolling to occur when the user has dragged off the side of the CScrollView.
Any help would be GREATLY appreciated, thanks for your time.
i just want to know if this is possible to have another View Class in MDI and make some Child window that uses this View Class.
for example a list classes in a MDI: CChildFrame
CMyView -> base class are CView CMy2View -> i added this View Class that its base is not the same as CMyView base class and i want to have a Child Window that use this view class.
i findout smthing, i have to set a Base class to both CMDIChildWnd and my own base class. and it seems that i have to Set BEGIN_MESSAGE_MAP(CMy2View, CMDIChildWnd)
is it true that the only way that a Child Window obey a View class is to make it with this line : CMDIChildWnd::Create(...)
So to having a ChildWindow i have to set base to CMDIChildWnd and then i will lose my own base class, i mean i cant use OnPaint() Coz i have to set Message map to CMDIChildWnd.
I am working on an external device that I'm trying to interface through the parallel port. To get adequate speeds, I'm looking to use EPP instead of regular CENTRONICS. The problem is, I get the following output when I try to write to the port after negotiating the protocol.
My app leaks a CArchiveException when an (expected) exception occurs. If I try to fix the leak by deleting the exception (using either [a] or [b]), the framework ASSERTs that the exception isn't ready for deletion. Any clues as to how I can fix the leak?
Who can help my for below this code it just can operate window 2000, Xp or above. Now my problem is how I can modify this code to operate on Window 98 because my PC is using Window98. OR you has any example like this.
if (nIDEvent == 1)
SetTimer(2, 500, 0);
else if (nIDEvent == 2)
SetTimer(1, 500, 0);