I'm new to electron and want to call c++ dll, that works fine. 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.
Solution is to put the custom header file in the folder
iojs-(yoour electron version)/src
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.