在开发模式下,执行exe运行良好。
我启动exe的代码是
function LaunchExe() {
var child = require('child_process').execFile;
var executablePath = 'DemoExe/Sample.exe';
var parameters = ['Hai', 'Test', 'Dat'];
child(executablePath, parameters, function (e
我在visual (C++)中有一个项目。项目的前端是用javaScript编写的,它只是一个运行在chtmlview窗口中的C++的GUI。
当项目在visual studio中以调试模式运行时,我将得到以下信息:
First-chance exception at 0x75a0812f in MyProject.exe: Microsoft C++ exception: Js::JavascriptExceptionObject at memory location 0x001fc524..
First-chance exception at 0x75a0812f in MyPro
我在电子应用程序中运行exe时出现错误。路径是正确的,但仍然通过错误。 Uncaught Error: spawn exe/0c8c86d42f4a8d77842972cdde6eb634.exe ENOENT
at Process.ChildProcess._handle.onexit (internal/child_process.js:267)
at onErrorNT (internal/child_process.js:469)
at processTicksAndRejections (internal/process/ta
下面是一个在VS中作为预编译事件运行的程序。它可以直接从命令行运行,但不能在VS中运行。
@echo off
:: Direct From cmd.exe
:: "G:Google Drive\GitHub\toolset\Site\pre-build.bat" Release "G:Google Drive\GitHub\toolset\Site\Web"
:: From Visual Studio Pre-Build Event
:: "$(SolutionDir)pre-build.bat" $(ConfigurationName)
我通过应用根文件夹中的电子邮件成功地运行了我的Angular 2应用。我通过运行以下命令将应用程序构建到dist文件夹中:
ng build --env=prod
然后我只需运行:
electron electron.conf.js
我在electron.conf.js的什么地方运行本地Where服务器来提供来自dist的文件
connect().use(serveStatic(__dirname + '/dist')).listen(8997, function(){
console.log('Webserver for electron is running