-
Notifications
You must be signed in to change notification settings - Fork 285
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Embeded nodejs in Win32 application #585
Comments
in stdio.js I create dummy stream. var dummyOutput = true;
var W = require('_stream_writable');
var R = require('_stream_readable');
var util = require('util');
util.inherits(DummyWritableStream, W);
util.inherits(DummyReadableStream, R);
var fs = require("fs");
var log = fs.createWriteStream('c:\\log.txt', { 'flags': 'a' });
function DummyWritableStream() {
W.apply(this, arguments);
this.buffer = [];
this.written = 0;
}
function DummyReadableStream() {
R.apply(this, arguments);
this.buffer = [];
this.reading = false;
}
DummyWritableStream.prototype._write = function (chunk, encoding, cb) {
//this.buffer.push(chunk.toString());
//this.written += chunk.length;
log.write(chunk);
cb();
};
DummyReadableStream.prototype._read = function (param) {
log.write("_read");
}
function createWritableDummyStream(fd) {
var stream = new DummyWritableStream();
stream.fd = fd;
stream._isStdio = true;
stream.isTTY = false;
return stream;
}
function createReadableDummyStream(fd) {
var stream = new DummyReadableStream();
stream.fd = fd;
stream._isStdio = true;
stream.isTTY = false;
stream.readable = false;
return stream;
} |
@823639792 Sorry thing dropped off my radar... Back in focus. |
how to embed nodejs in win32 non-console application (for example:mfc)? |
Many design elements of node.js assume that it is a console application. Examples: REPL, standard streams, parent-child communication channels, and the |
I embed nodejs in my mfc application, but inspect by chrome or some other conditions, it will crash. |
nodejs/node#14158 - to try to raise focus on the embedding story |
@823639792 could you help me to build a tiny mfc demo, just a helloworld, win32 non-console, without child process |
@refack @Trott Should this ticket be closed in favor of nodejs/node#14158 ? |
Closing. If anyone thinks it should remain open, leave a comment (or re-open it if GitHub let's you). Thanks! |
@refack
node version: 7.8.0
platform: windows7
I want to embed nodejs in my application.
but when I use http interface throw exception:
The text was updated successfully, but these errors were encountered: