I understand that we can use the function SendMessageTimeout to check if a window is hang. But how about a thread, that didn't call GetMessage ? Thanks.
I use the SO_SNDBUF option to force the winsock to send the data immediately to other computer. I set SO_SNDBUF to zero. However, sometime, the WSASend is blocked when I do so. I have disable...
does anybody have any clue on using the function SafeArrayAllocDescriptor to create an safearray ? I only need to safearray descriptor cause i already got my data. SafeArrayCreate doesn't seem to...
how can we pass a user defined variable using idispatch invoke method ? I mean using invoke, all parameter must be stored in variant, and I have tried VT_USERDEFINED, but VB doesn't get it.... &...
I Post a message to a Message-only window using PostMessage from difference thread. Assuming that the window is created in thread A, and I post the message from thread B, & C. If I only post one...
that's has to do with marshalling or more generally syncronization. 2 books which help on this, Advanced VB 6 by Matthew J. Curland & Inside COM by by Dale Rogerson.
does anyone have a ActiveX (COM) sample that written in C++ from scratch (not using MFC or ATL), which got some events, i.e. the component should implement IConnectionPointContainer, etc.
I have a Com component that trigger an event. I have VB sample that use the component. right before I trigger the event, I use the IDispatch::GetTypeInfoCount to test the interface pointer, but I...
Does anyone have any good sample on COM component implementation... not ATL... just normal COM implementation that implement activeX event... so that vb can use it, thanks.
I create an COM DLL with events. So I implement an event interface in the DLL. I create the type library so that vb can use it. At the very beginning, I have only 1 event, so the program work...