C#如何接收JS传递过来的参数。 让你的WinForm去访问web吧,或者用个WebServers,不行就用Socket吧 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 要没办法,可不可以不考虑传参的方式,利用文件或数据库存放你的参数,winform程序去读一下拿到东西就可以了。 static void Main(string[] args){ //试试这个,如果真的传过来了 args.Length > 0 string param1= args[0]; string param2= args[1];} 能执行activex,是你使用了wscript想要接受js传入的消息,跨语言传递参数 除非通信编程 如果你写的是一个MVC网页,可以通过dataset传递 参数以空格分隔(如果参数中本身包含空格,就用双引号括起),EXE路径也应括起,如PrintStr = "true"//多个参数//PrintStr = string.Join(空格, new string[]{"true", "\"abc带空格\"", "1"}) objShell.run("\"E:\\杭州杭和软件\\条码打印CS\\MaterialBarCode.exe\"空格" + PrintStr); static class Program { /// <summary> /// 应用程序的主入口点。 /// </summary> [STAThread] static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Application.Run(new MainForm()); } }这个是 winfrom入口,该怎么写呢?三楼没有那个参数啊 C#进度条,,急 关于在哈希表中插入数值的问题 c# web 中动态生成的控件为什么不能调用?附源码 在线等 vs2005 动态创键的控件里的事件,为什么不触发 C#中怎样编译C++文件.cpp .net中用没开发wince的工具!! 如何让鼠标在移动时获取其指向位置的窗口(控件)的句柄? TCP服务器端的问题 数据表的合并 timer在WEB应用程序中应该怎样用? 为什么using语句内的变量不能修改? C#怎么判断数组对象类型?
{
//试试这个,如果真的传过来了 args.Length > 0
string param1= args[0];
string param2= args[1];
}
想要接受js传入的消息,跨语言传递参数 除非通信编程
PrintStr = "true"
//多个参数
//PrintStr = string.Join(空格, new string[]{"true", "\"abc带空格\"", "1"})
objShell.run("\"E:\\杭州杭和软件\\条码打印CS\\MaterialBarCode.exe\"空格" + PrintStr);
{
/// <summary>
/// 应用程序的主入口点。
/// </summary>
[STAThread]
static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new MainForm());
}
}这个是 winfrom入口,该怎么写呢?三楼没有那个参数啊