C# winfrom程序如何获取vb程序中shell 传递出来的数
vb6.0 中调用传参 如下
Dim RetVal
RetVal = Shell("D:\Debug\3GLogin.exe " & sDeviceId, 1)
我在c#主窗体load方法中怎么能获取到这个 shell 传递过来的 sDeviceId 的值
vb6.0 中调用传参 如下
Dim RetVal
RetVal = Shell("D:\Debug\3GLogin.exe " & sDeviceId, 1)
我在c#主窗体load方法中怎么能获取到这个 shell 传递过来的 sDeviceId 的值
program.cs中有入口函数
[STAThread]
public static void Main(string[] args)
{
args[0],args[1],这样,通过下标访问
}
然后这样取值的时候就提示超出了数组索引界限 nsDeviceId=sDeviceId[1].ToString();
中 的 sDeviceid 就事我传递的参数