08-05-2009 04:36 AM
Hello Candidus,
thank you very much. This really is it.
Honestly speaking, I do not (yet) see the difference to my previous attempts and why I always gotback a variant VT_I4 instead of an VT_ARRAY|VT_R8 (or VT_R4), but since I have a working version I can analyze this , modify it and learn.
Thanks again
Peter
08-05-2009 04:45 AM
08-05-2009 05:02 AM
That seems to be the key.
CoInitialize(NULL) is the same as CoInitializeEx(NULL, COINIT_APARTMENTTHREADED) .
Our DataSocket client can't live in a single-threaded apartment.
That's especially important if you want to use MFC: MFC only supports single-threaded apartments
so you must do your DataSocket stuff from another thread.
08-05-2009 07:11 AM