开发者

Get return values from .dll using Ruby on rails?

开发者 https://www.devze.com 2023-01-27 23:10 出处:网络
from ROR i am passing parameters to C#.net dll and doing some calculation &开发者_如何学C returning values there but i am not able to retrive those values. is it possible to get dll method return

from ROR i am passing parameters to C#.net dll and doing some calculation &开发者_如何学C returning values there but i am not able to retrive those values. is it possible to get dll method return value with ROR ?

Code:

lib = WIN32OLE.new('GenerateUCNValues.GenerateUCNValues')

@a=lib.GenerateUCN(obj.String.to_s,obj.id.to_i,obj.Name.to_s)-- here i am not getting the return value (calculation operation doing good but i am not able to capture return value with ROR)

please share anyone have solution for this problem?


I recommend you expose your C# logic as restful web-service and make calls over the wire. Connecting via win32 is just ugly, and you won't find much help on the net to do so.

0

精彩评论

暂无评论...
验证码 换一张
取 消