当前位置:网站首页>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
边栏推荐
猜你喜欢
Mathematical knowledge: finding combinatorial number III - finding combinatorial number
AS400 API 从零到一的整个历程
"Open math input panel" in MathType editing in win11 is gray and cannot be edited
Fast understanding of forward proxy and reverse proxy
软件开发中的上游和下游
微生物健康,食品微生物检测为什么很重要
[无线通信基础-14]:图解移动通信技术与应用发展-2-第一代移动模拟通信大哥大
元宇宙为 VR/AR 带来的新机会
gin_gorm
短信在企业中的应用有哪些?
随机推荐
Sun Yuchen told Swiss media Bilan that the bear market will not last long
Unknown database connection database error
Check the disk usage of MySQL database
Mathematical knowledge: finding combinatorial number III - finding combinatorial number
[stack] 921 Minimum Add to Make Parentheses Valid
Neo4j installation, operation, project construction and function realization
Unknown database连接数据库错误
医疗HIS行业短信发送解决方案
工作八年的程序员,却拿着毕业三年的工资,再不开窍就真晚了...
Institute of Microbiology, commonly used biochemical reactions in microbiological testing
【动态规划】路径dp:931. Minimum Falling Path Sum
PHP converts two-dimensional array elements into key value pairs
Strictmode analysis registration strictmode principle (4)
zabbix如何配置告警短信?(预警短信通知设置流程)
System settings large page
用 Flutter 的 Canvas 画点有趣的图形
Thinking about business and investment
【JS给元素添加属性:setAttribute;classList.remove;classList.add;】
微研所,微生物检验中常用的生化反应
工作6年,来盘点一下职场人混迹职场的黄金法则