Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Apr 22, 2008 05:50 AM by apraba83@yahoo.co.in
Member
2 Points
14 Posts
Apr 22, 2008 05:50 AM|LINK
hi in my application COM Server ( VC++6.0) is Server and c# is Client( asp.net)
I have to call one method that contains arrays strig byte values etc....
ExecMethod(object attr, int id) in this
object contains ( byte[], string,string[],int) i have make them into Object
//////////////////////////// Calling ExecWatchDog() //////////////////////// int cliCallbackID = callbackId; byte reqType = 2; //string[] destList = new string[] { "Taro_Toshiba_RemoteAETitle" }; string[] destList = modalitySet.GetWatchDogDestList(); string userName = "Taro_Toshiba"; int requestID_o = -1; Object[] attrWatchDog = { cliCallbackID, reqType, destList, userName }; storage.ExecWatchDog(cliCallbackID, attrWatchDog, out requestID_o); requestID = requestID_o;
then COMServer access excecute my method and notifies to the client.
the COM Server uses the variant datatype...it uses safearray etc.... variant array have ( byte[], string( BSTR), safearray,int) etc....
in client client coding i want to extract the variant datatype and use the values....
i have used the Object keyword to extract that variant array but it returns only one value ie very first value... int that variant array...
c# client side retieval code from COM Server( Sample)
public override void NotifyDicomStorage(object vReturnAttributes_i, int IRequestID_i) { object[] attr = (object[]) vReturnAttributes_i;
}
vReturnAttributes gives only one value... true....
i donno how to use that variant datatype return from the COMServer vc++6.0....
anybody help me for this issue....
apraba83@yah...
Member
2 Points
14 Posts
varaint array in c# return from COM
Apr 22, 2008 05:50 AM|LINK
hi in my application COM Server ( VC++6.0) is Server and c# is Client( asp.net)
I have to call one method that contains arrays strig byte values etc....
ExecMethod(object attr, int id) in this
object contains ( byte[], string,string[],int) i have make them into Object
//////////////////////////// Calling ExecWatchDog() ////////////////////////
int cliCallbackID = callbackId;
byte reqType = 2;
//string[] destList = new string[] { "Taro_Toshiba_RemoteAETitle" };
string[] destList = modalitySet.GetWatchDogDestList();
string userName = "Taro_Toshiba";
int requestID_o = -1;
Object[] attrWatchDog = { cliCallbackID, reqType, destList, userName };
storage.ExecWatchDog(cliCallbackID, attrWatchDog, out requestID_o);
requestID = requestID_o;
then COMServer access excecute my method and notifies to the client.
the COM Server uses the variant datatype...it uses safearray etc.... variant array have ( byte[], string( BSTR), safearray,int) etc....
in client client coding i want to extract the variant datatype and use the values....
i have used the Object keyword to extract that variant array but it returns only one value ie very first value... int that variant array...
c# client side retieval code from COM Server( Sample)
public override void NotifyDicomStorage(object vReturnAttributes_i, int IRequestID_i)
{
object[] attr = (object[]) vReturnAttributes_i;
}
vReturnAttributes gives only one value... true....
i donno how to use that variant datatype return from the COMServer vc++6.0....
anybody help me for this issue....