Tag: vb.net

使用Windows窗体执行一个.exe文件

我想执行一个.exe文件,它启动我的node.js应用程序使用Windows窗体(VB.NET)的button点击。 我在用 Process.Start("C:\Users\PROG21\Desktop\chat\start.exe") 问题是它启动命令窗口,并在3-4秒内自动closures。那为什么呢? 这只发生在Node.js应用程序中,其他.exe文件通过此代码运行平稳。 另外在其他button上单击我想要closures终止Node.js应用程序的命令窗口。我可以如何实现它? 任何帮助,将不胜感激 干杯杰夫

使用vb.net AES / CBCencryptionstring,并需要使用JavaScript CryptoJS进行解密

我有一个vb.net Windows窗体应用程序,将stringencryption到文件。 我现在需要JavaScript来解密这个值。 我试图使用CryptoJS,但我正在努力与语法,以及如何获得在CryptoJS.PBKDF2(假设是正确的使用)使用正确的格式密码,盐和初始化向量。 调用方法 Dim encryptedComplianceValue = encrypt2(complianceValue, "Password", "Salt Value", "SHA1", 2, "@1B2c3D4e5F6g7H8", 256) encryption方法 Public Function encrypt2(ByVal plainText As String, ByVal passPhrase As String, ByVal saltValue As String, ByVal hashAlgorithm As String, ByVal passwordIterations As Integer, ByVal initVector As String, ByVal keySize As Integer) As String Dim initVectorBytes As Byte() initVectorBytes = […]

从窗体closures命令窗口

我有一个简单的Node.js程序,通过从winform中单击button执行,工作正常,但我需要终止Node.js程序并closures另一个button单击命令提示符。如何实现这一目标? 干杯杰夫

使用VB.NET在file.bat中执行gulp时没有任何反应

我尝试使用VB.NET在file.bat中执行gulpfile.js; 但是,当我debugging或运行file.bat时,没有任何反应(没有错误,没有警告)。 它只适用于双击file.bat后。 这是我的gulpfile.js var gulp = require('D:/Projects/NailsuperStore_Responsive/node_modules/gulp'); var minifyCss = require('D:/Projects/NailsuperStore_Responsive/node_modules/gulp-minify-css'); var uglify = require('D:/Projects/NailsuperStore_Responsive/node_modules/gulp-uglify'); gulp.task('default',['minify-css', 'minify-js']); gulp.task('minify-css', function(){ return gulp.src('../../theme/css/*.css') .pipe(minifyCss({compatility: 'ie8'})) .pipe(gulp.dest('../../theme/css')); }); gulp.task('minify-js', function(){ return gulp.src('../*.js') .pipe(uglify()) .pipe(gulp.dest('../')); }); 我minifyCSS_JS.bat: d: cd D:\Projects\NailsuperStore_Responsive\Website\includes\scripts\nodeJS gulp PAUSE 最后,VB.NET: Dim psi As New ProcessStartInfo("D:\Projects\NailsuperStore_Responsive\Website\Bin\minifyCSS_JS.bat") psi.RedirectStandardError = True psi.RedirectStandardOutput = True psi.CreateNoWindow = False psi.WindowStyle […]

获取图像显示在窗体 – DLL文件

我有一个vb.net表单应用程序,我已经从应用程序启动path使用代码显示一个标志 Application.StartupPath + ("\Image\" + "Logo.jpg") 这工作和图像按预期显示。 这个exe是从jQuery使用AciveX调用的,因此它只能在IE中使用。 我已经通过引用创build的exe文件将vb.net表单应用程序转换为dll。 现在,当我从另一个应用程序调用dll函数时,窗体出现,但徽标不显示。 我已经用edge从node.js应用程序读取dll文件。 请使用dll文件阅读时帮助获取图像在窗体中显示。

GetObject与edge.js

我目前正在通过运行edge.js的基于node.js的REST-APIreplaceIE中的ActiveX实现 到目前为止,页面实现的基本示例工作得很好。 我有我的index.js设置为 var edge = require('edge'); var edgeVb = require('edge-vb'); var path = require('path'); var helloVb = edge.func('vb', path.join(__dirname, 'simpleVbFunction.vb')); helloVb('Testing with String', (err, res) => { if(err) throw err; console.log(res); }); 和simpleVbFunction.vb一样 Async Function(Input As Object) As Task(Of Object) Return Await Task.Run(Function() Return "NodeJS Welcomes: " & Input.ToString() End Function) End Function 到现在为止还挺好。 […]