electron node-ffi编译通过的源码,无需编译可直接使用
electron环境下可以通过node-ffi直接调用Dll动态链接库,可以拿来直接使用。包内已安装electron模块及ffi模块,直接使用即可。如果有问题,可以在评论区留言
代码片段和文件信息
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 301 2018-03-09 09:49 electron node-ffi
ode_modules.binelectron
文件 331 2018-03-09 09:49 electron node-ffi
ode_modules.binelectron-download
文件 208 2018-03-09 09:49 electron node-ffi
ode_modules.binelectron-download.cmd
文件 178 2018-03-09 09:49 electron node-ffi
ode_modules.binelectron.cmd
文件 307 2018-03-09 09:49 electron node-ffi
ode_modules.binextract-zip
文件 184 2018-03-09 09:49 electron node-ffi
ode_modules.binextract-zip.cmd
文件 305 2018-03-09 09:49 electron node-ffi
ode_modules.binmkdirp
文件 182 2018-03-09 09:49 electron node-ffi
ode_modules.binmkdirp.cmd
文件 297 2018-03-09 09:49 electron node-ffi
ode_modules.bin
ugget
文件 174 2018-03-09 09:49 electron node-ffi
ode_modules.bin
ugget.cmd
文件 309 2018-03-09 09:49 electron node-ffi
ode_modules.binpretty-bytes
文件 186 2018-03-09 09:49 electron node-ffi
ode_modules.binpretty-bytes.cmd
文件 289 2018-03-09 09:49 electron node-ffi
ode_modules.bin
c
文件 166 2018-03-09 09:49 electron node-ffi
ode_modules.bin
c.cmd
文件 297 2018-03-09 09:49 electron node-ffi
ode_modules.bin
imraf
文件 174 2018-03-09 09:49 electron node-ffi
ode_modules.bin
imraf.cmd
文件 305 2018-03-09 09:49 electron node-ffi
ode_modules.binsemver
文件 182 2018-03-09 09:49 electron node-ffi
ode_modules.binsemver.cmd
文件 311 2018-03-09 09:49 electron node-ffi
ode_modules.binsshpk-conv
文件 188 2018-03-09 09:49 electron node-ffi
ode_modules.binsshpk-conv.cmd
文件 311 2018-03-09 09:49 electron node-ffi
ode_modules.binsshpk-sign
文件 188 2018-03-09 09:49 electron node-ffi
ode_modules.binsshpk-sign.cmd
文件 315 2018-03-09 09:49 electron node-ffi
ode_modules.binsshpk-verify
文件 192 2018-03-09 09:49 electron node-ffi
ode_modules.binsshpk-verify.cmd
文件 309 2018-03-09 09:49 electron node-ffi
ode_modules.binstrip-indent
文件 186 2018-03-09 09:49 electron node-ffi
ode_modules.binstrip-indent.cmd
文件 297 2018-03-09 09:49 electron node-ffi
ode_modules.binuuid
文件 174 2018-03-09 09:49 electron node-ffi
ode_modules.binuuid.cmd
文件 363571 2018-03-09 08:01 electron node-ffi
ode_modules@types
odeindex.d.ts
文件 104034 2018-03-09 08:01 electron node-ffi
ode_modules@types
odeinspector.d.ts
............此处省略2278个文件信息
#include
#include
/* Acts like puts with the file given at time of enclosure. */
void puts_binding(ffi_cif *cif unsigned int *ret void* args[]
FILE *stream)
{
*ret = fputs(*(char **)args[0] stream);
}
int main()
{
ffi_cif cif;
ffi_type *args[1];
ffi_closure *closure;
int (*bound_puts)(char *);
int rc;
/* Allocate closure and bound_puts */
closure = ffi_closure_alloc(sizeof(ffi_closure) &bound_puts);
if (closure)
{
/* Initialize the argument info vectors */
args[0] = &ffi_type_pointer;
/* Initialize the cif */
if (ffi_prep_cif(&cif FFI_DEFAULT_ABI 1
&ffi_type_uint args) == FFI_OK)
{
/* Initialize the closure setting stream to stdout */
if (ffi_prep_closure_loc(closure &cif puts_binding
stdout bound_puts) == FFI_OK)
{
rc = bound_puts(“Hello World!“);
/* rc now holds the result of the call to fputs */
}
}
}
/* Deallocate both closure and bound_puts */
ffi_closure_free(closure);
return 0;
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 301 2018-03-09 09:49 electron node-ffi
ode_modules.binelectron
文件 331 2018-03-09 09:49 electron node-ffi
ode_modules.binelectron-download
文件 208 2018-03-09 09:49 electron node-ffi
ode_modules.binelectron-download.cmd
文件 178 2018-03-09 09:49 electron node-ffi
ode_modules.binelectron.cmd
文件 307 2018-03-09 09:49 electron node-ffi
ode_modules.binextract-zip
文件 184 2018-03-09 09:49 electron node-ffi
ode_modules.binextract-zip.cmd
文件 305 2018-03-09 09:49 electron node-ffi
ode_modules.binmkdirp
文件 182 2018-03-09 09:49 electron node-ffi
ode_modules.binmkdirp.cmd
文件 297 2018-03-09 09:49 electron node-ffi
ode_modules.bin
ugget
文件 174 2018-03-09 09:49 electron node-ffi
ode_modules.bin
ugget.cmd
文件 309 2018-03-09 09:49 electron node-ffi
ode_modules.binpretty-bytes
文件 186 2018-03-09 09:49 electron node-ffi
ode_modules.binpretty-bytes.cmd
文件 289 2018-03-09 09:49 electron node-ffi
ode_modules.bin
c
文件 166 2018-03-09 09:49 electron node-ffi
ode_modules.bin
c.cmd
文件 297 2018-03-09 09:49 electron node-ffi
ode_modules.bin
imraf
文件 174 2018-03-09 09:49 electron node-ffi
ode_modules.bin
imraf.cmd
文件 305 2018-03-09 09:49 electron node-ffi
ode_modules.binsemver
文件 182 2018-03-09 09:49 electron node-ffi
ode_modules.binsemver.cmd
文件 311 2018-03-09 09:49 electron node-ffi
ode_modules.binsshpk-conv
文件 188 2018-03-09 09:49 electron node-ffi
ode_modules.binsshpk-conv.cmd
文件 311 2018-03-09 09:49 electron node-ffi
ode_modules.binsshpk-sign
文件 188 2018-03-09 09:49 electron node-ffi
ode_modules.binsshpk-sign.cmd
文件 315 2018-03-09 09:49 electron node-ffi
ode_modules.binsshpk-verify
文件 192 2018-03-09 09:49 electron node-ffi
ode_modules.binsshpk-verify.cmd
文件 309 2018-03-09 09:49 electron node-ffi
ode_modules.binstrip-indent
文件 186 2018-03-09 09:49 electron node-ffi
ode_modules.binstrip-indent.cmd
文件 297 2018-03-09 09:49 electron node-ffi
ode_modules.binuuid
文件 174 2018-03-09 09:49 electron node-ffi
ode_modules.binuuid.cmd
文件 363571 2018-03-09 08:01 electron node-ffi
ode_modules@types
odeindex.d.ts
文件 104034 2018-03-09 08:01 electron node-ffi
ode_modules@types
odeinspector.d.ts
............此处省略2278个文件信息
版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件举报,一经查实,本站将立刻删除。
评论列表(条)