المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : C# COM object and PowerBuilder



C# Programming
01-12-2012, 05:44 AM
Sadly, I have to create a COM object in C# that will be consumed by a PowerBuilder 11.5 application. Given some parameters, I need to return a byte array. I'm having trouble determining how to do this. I've tried including a ref parameter of type byte[]; no dice. I've tried declaring the parameter as "out"; again, no dice. I know the bytes I want to return are valid because I wrote them out to a file to verify. Can someone please tell me the best method to return a byte array to a calling application?