简体   繁体   English

如何在电子中添加自己的c ++头文件?

[英]How to add own c++ header file in electron?

I'm new to electron and want to call c++ dll, that works fine. 我是电子新手,想调用c ++ dll,效果很好。 I now want to know how to add my own header file in electron. 我现在想知道如何在电子中添加自己的头文件。 I tried root dictionary and some other deeper place, but only got: 我尝试了根字典和其他更深的地方,但只得到了:

fatal error C1083: cannot open file: “MyDriver.h”: No such file or directory [c:\\Users\\75803\\Documents\\GitHub\\native_addon\\node_modules\\hello\\build\\hello.vcxproj

Any help will be appreciate! 任何帮助将不胜感激!

OP worked this out by himself. OP自己解决了这个问题。

Solution is to put the custom header file in the folder 解决方案是将自定义头文件放在文件夹中

iojs-(yoour electron version)/src 

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM