当前位置:网站首页>Electron pit Addon
Electron pit Addon
2022-07-01 01:43:00 【Hacker technology】
dll error
Error: A dynamic link library (DLL) initialization routine failed
node.exe Load not delayed
The following two items need to be configured
#ifdef _MSC_VER
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#endif
#include <windows.h>
#include <delayimp.h>
#include <string.h>
static FARPROC WINAPI load_exe_hook(unsigned int event, DelayLoadInfo *info) {
HMODULE m;
if (event != dliNotePreLoadLibrary)
return NULL;
if (_stricmp(info->szDll, "NODE.EXE") != 0)
return NULL;
m = GetModuleHandle(NULL);
return (FARPROC)m;
}
decltype(__pfnDliNotifyHook2) __pfnDliNotifyHook2 = load_exe_hook;
#endif

node.lib The same function name depends on the order problem
see node.lib The export function , There are mainly
uv
openssl
v8
zlib
dumpbin /LINKERMEMBER node.lib >nodelib.txt
modify node.lib Is the last dependency
node gyp Can't find vs
2017 Post version dependency powershell Script
$ExecutionContext.SessionState.LanguageMode See if it's for FullLanguage
__PSLockdownPolicy System environment variable by 1, If 4 by ConstrainedLanguage.
Also explain that I set npm config set msvs_version 2019 Invalid
Binary file pit
git Default line breaks are automatically converted , Cause binaries to become invalid
Turn off the conversion
git config --global core.autocrlf false
It's not dependent on n-api Library, for example openssl,uv
cd /path-to-module/
HOME=~/.electron-gyp node-gyp rebuild --target=1.2.3 --arch=x64 --dist-url=https://electronjs.org/headers
边栏推荐
- 微生物检测,土壤微生物的作用有哪些?
- Relationship between ASCII, Unicode, GBK, UTF-8
- Use strictmode strictmode principle (1)
- laravel Carbon 时间处理类使用
- 一站式洞察行业热点,飞瓜数据B站新功能「流量大盘」上线!
- QT web development - VIDEO - Notes
- Mathematical knowledge: finding combinatorial number IV - finding combinatorial number
- What will Web3 bring in the future?
- 远程办公如何保持高效协同,实现项目稳定增长 |社区征文
- 数据探索电商平台用户行为流失分析
猜你喜欢

一站式洞察行业热点,飞瓜数据B站新功能「流量大盘」上线!

The personal test is effective, and the JMeter desktop shortcut is quickly created

关于白盒测试,这些技巧你得游刃有余~

Zero of DC learning notes -- overview and basic process introduction

Sun Yuchen told Swiss media Bilan that the bear market will not last long

zabbix如何配置告警短信?(预警短信通知设置流程)

Selenium经典面试题-多窗口切换解决方案

元宇宙为 VR/AR 带来的新机会

Creating ASCII art with C #

思特奇加入openGauss开源社区,共同推动数据库产业生态发展
随机推荐
Open3d point cloud bounding box
Strictmode jamming and leakage detection -strictmode principle (2)
Basic knowledge 3 - standard unit library
Some items of OCR
PHP converts two-dimensional array elements into key value pairs
Microbial safety and health, what is biological treatment?
Log logrus third party library usage
Log4j2 threadcontext log link tracking
System settings large page
农产品换房?“变相”购房补贴!
Mathematical knowledge: finding combinatorial number III - finding combinatorial number
[无线通信基础-15]:图解移动通信技术与应用发展-3- 数字通信2G GSM、CDMA、3G WDCMA/CDMA200/TD-SCDMA、4G LTE、5G NR概述
Using recyclerreview to show banner is very simple
Qt5 mvc: revealing the secrets of data visualization
视频教程 | 长安链推出系列视频教程合集(入门)
The argument type 'function' can't be assigned to the parameter type 'void function()‘
One of the basics - overview of sta Basics
KS009基于SSH实现宠物管理系统
Applet Custom Grid
思特奇加入openGauss开源社区,共同推动数据库产业生态发展