当前位置:网站首页>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
边栏推荐
- 1175. Prime Arrangements
- [JS adds attributes to elements: setAttribute; classlist.remove; classlist.add;]
- [dynamic planning] path dp:931 Minimum Falling Path Sum
- 未来的 Web3会带来什么?
- Strictmode analysis activity leakage -strictmode principle (3)
- 关于白盒测试,这些技巧你得游刃有余~
- 微生物检测,土壤微生物的作用有哪些?
- After working for 6 years, let's take stock of the golden rule of the workplace where workers mix up
- Thinking brought by strictmode -strictmode principle (5)
- Log4j2 threadcontext log link tracking
猜你喜欢

视频教程 | 长安链推出系列视频教程合集(入门)

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

Basic knowledge 3 - standard unit library

gin_ gorm

After working for 6 years, let's take stock of the golden rule of the workplace where workers mix up

远程办公如何保持高效协同,实现项目稳定增长 |社区征文

Using recyclerreview to show banner is very simple

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

农产品换房?“变相”购房补贴!

数学知识:求组合数 III—求组合数
随机推荐
1175. Prime Arrangements
Working for eight years as a programmer, but with a salary of three years after graduation, it's too late to be enlightened again
MYSQL 数据库查看磁盘占用情况
Log4j2 ThreadContext日志链路追踪
Sécurité et santé microbiennes, qu'est - ce que le traitement biologique?
Open3d point cloud color rendering
数学知识:求组合数 III—求组合数
【JS给元素添加属性:setAttribute;classList.remove;classList.add;】
Microbiological health, why is food microbiological testing important
[deepin] common sets
关于白盒测试,这些技巧你得游刃有余~
Selenium经典面试题-多窗口切换解决方案
What will Web3 bring in the future?
C # customize and dynamically switch cursor
测试必备工具-Postman实战教程
【agora】用户管理
Use of laravel carbon time processing class
System settings large page
mysql插入\更新前+判断条件
Laravel+redis generates an order number - automatically increase from 1 on the same day