是否可以直接从vb.net调用foxpro .prg? [英] Is it possible for call the foxpro .prg directly from vb.net?

查看:57
本文介绍了是否可以直接从vb.net调用foxpro .prg?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在下面尝试了此代码:

Module Module1
    Sub Main()
        Dim Fox As New VisualFoxpro.FoxApplication
        Fox.DefaultFilePath = "C:\Temp"
        Fox.DoCmd("Do TestAutomation.prg")
    End Sub
End Module

但我不明白为什么.

VisualFoxpro.FoxApplication

Visual Studio无法识别.我试图

Imports System.Resources
Imports System.Runtime

and still can't work.

那我错过了什么吗?还是无法正常工作?

So did I miss out something or it just can't work?

推荐答案

看看Process.Start(xxxxx)方法.例如,您可以启动文件类型的默认应用程序,然后使用此方法将所需的数据文件加载到其中.

Have a look at the Process.Start(xxxxx) method. You can, for example start the default application for a file type and load the required data file into it using this method.

我没有使用过FoxPro,但是,如果它具有与之关联的自己的文件类型,请使用Process.Start("xxxxxxx.yyy),其中yyy是FoxPro的默认文件类型*可以*技巧.

I haven't used FoxPro, but, if it has it5's own file type associated with it, the using the Process.Start("xxxxxxx.yyy) where yyy is the default file type for FoxPro *may* do the trick.


这篇关于是否可以直接从vb.net调用foxpro .prg?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆