Click here to Skip to main content
15,923,689 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
GeneralRe: STL question. Pin
jbarton10-Nov-03 7:25
jbarton10-Nov-03 7:25 
GeneralRe: STL question. Pin
WREY10-Nov-03 7:54
WREY10-Nov-03 7:54 
GeneralRe: STL question. Pin
jbarton11-Nov-03 4:42
jbarton11-Nov-03 4:42 
Generalofstream position and >2GB files Pin
Jeremy Osner7-Nov-03 3:38
Jeremy Osner7-Nov-03 3:38 
GeneralRe: ofstream position and >2GB files Pin
Christian Graus9-Nov-03 10:17
protectorChristian Graus9-Nov-03 10:17 
GeneralRe: ofstream position and >2GB files Pin
Jeremy Osner9-Nov-03 15:50
Jeremy Osner9-Nov-03 15:50 
GeneralTrue C/C++ goodies Pin
TW7-Nov-03 2:01
TW7-Nov-03 2:01 
GeneralSome Problem in Connection Points (MultiClients) Pin
shudingbo7-Nov-03 1:47
shudingbo7-Nov-03 1:47 
hi,all:
I have a ATL server ,and it support an interface with Connection Point.
I use MultiClient connect the Connection point.
I hope that,when data is received the connect point can fire all the
Connected Client. But I found that only the last client can receive the
fire. I mean that the number of connections in server is always 1.
Though the fact is MultiClient has Connected. It looks that ,all clients
were throw into a stack ,server process it one by one.

Why??
___________________________________________
HRESULT Fire_Draw(INT type, INT x, INT y)
{
CComVariant varResult;
T* pT = static_cast<t*>(this);
int nConnectionIndex;
CComVariant* pvars = new CComVariant[3];
int nConnections = m_vec.GetSize();

for (nConnectionIndex = 0; nConnectionIndex < nConnections;
nConnectionIndex++)
{
pT->Lock();
CComPtr<iunknown> sp = m_vec.GetAt(nConnectionIndex);
pT->Unlock();
IDispatch* pDispatch = reinterpret_cast<idispatch*>(sp.p);
if (pDispatch != NULL)
{
VariantClear(&varResult);
pvars[2] = type;
pvars[1] = x;
pvars[0] = y;
DISPPARAMS disp = { pvars, NULL, 3, 0 };
pDispatch->Invoke(0x1, IID_NULL, LOCALE_USER_DEFAULT, DISPATCH_METHOD,
&disp, &varResult, NULL, NULL);
}
}
delete[] pvars;
return varResult.scode;

}
_____________________________________
m_vec.GetSize() is always 1.



I love fish,like i love C++.
QuestionWhere is &lt;Developers Workshop to COM and ATL 3.0 &gt;? Pin
cr9996-Nov-03 17:55
cr9996-Nov-03 17:55 
GeneralATL/WTL DLL and the CMessageLoop* pLoop Pin
bryces6-Nov-03 13:38
bryces6-Nov-03 13:38 
GeneralRe: ATL/WTL DLL and the CMessageLoop* pLoop Pin
Michael Dunn6-Nov-03 16:51
sitebuilderMichael Dunn6-Nov-03 16:51 
Generalmultithreading deque&lt;&gt; question Pin
wibbik6-Nov-03 4:41
wibbik6-Nov-03 4:41 
GeneralRe: multithreading deque&lt;&gt; question Pin
geo_m6-Nov-03 5:26
geo_m6-Nov-03 5:26 
GeneralRe: multithreading deque&lt;&gt; question Pin
valikac6-Nov-03 5:51
valikac6-Nov-03 5:51 
GeneralRe: multithreading deque&lt;&gt; question Pin
Jeff Varszegi6-Nov-03 6:47
professionalJeff Varszegi6-Nov-03 6:47 
GeneralRe: multithreading deque&lt;&gt; question Pin
wibbik6-Nov-03 20:20
wibbik6-Nov-03 20:20 
GeneralRe: multithreading deque&lt;&gt; question Pin
Giles9-Nov-03 10:55
Giles9-Nov-03 10:55 
GeneralLinker error for vtMissing Pin
nigs_krec6-Nov-03 2:32
nigs_krec6-Nov-03 2:32 
GeneralRe: Linker error for vtMissing Pin
Brian Shifrin6-Nov-03 7:47
Brian Shifrin6-Nov-03 7:47 
General&lt;vector&gt; question Pin
Steve Messer5-Nov-03 7:02
Steve Messer5-Nov-03 7:02 
GeneralRe: <vector> question Pin
John M. Drescher5-Nov-03 7:17
John M. Drescher5-Nov-03 7:17 
GeneralRe: <vector> question Pin
Steve Messer5-Nov-03 7:59
Steve Messer5-Nov-03 7:59 
GeneralRe: &lt;vector&gt; question Pin
John M. Drescher5-Nov-03 8:08
John M. Drescher5-Nov-03 8:08 
GeneralRe: &lt;vector&gt; question Pin
Steve Messer5-Nov-03 8:15
Steve Messer5-Nov-03 8:15 
GeneralConvert habdle to object pointer Pin
abhay1013-Nov-03 18:55
abhay1013-Nov-03 18:55 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.