in the ATL dll project there is one function with BYTE* Parameter.
STDMETHODIMP CMSDllServer::sum22(BYTE* aa,SHORT len)
{
AFX_MANAGE_STATE(AfxGetStaticModuleState());
for(int i=1;i<len;i++)
{
aa[i]=i;
}
return S_OK;
}
when call this function in a C# windows application this work correctly and array values returned to truth
byte[] Packet = new byte[5];
dllServer.sum22(ref Packet[0],5);
1,2,3,4,5
but
the same function in a webservice returned to only first index array and exist very big problem
byte[] Packet = new byte[5];
dllServer.sum22(ref Packet[0],5);
1,0,0,0,0
help me pleaseeeeeeeeeeeeeeeeeeeeeeeeeeeee
thanx