开发者

Calling Perl code from a WPF application

I want some sample code to learn how to call a perl module which processes input from a xml fil开发者_如何学Goe in a Winform/WPF application and returns a transformed XML(basically I use Perl's data munging features) file in the directory or returns an error if the input XML is itself wrong. I'm developing on Windows 7 64bit, VS 2010.


I don't know anything about WPF but there's an example of calling an external program I expect this approach would work with a Perl script.

You could create a simple Perl example program, for example based on the XML::Simple documentation which could be tested in isolation before being invoked from your WPF program.

You might find it useful to ask individual questions about specific issues. For example can you exchange data with an external programs without using files as intermediary containers? Can you use STDIN and STDOUT to pass data to and from external filter-style programs that read data from STDIN and write transformed data, or results, to STDOUT.

If you are using C# (rather than say VB) you should probably say so explicitly.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜