当前位置:网站首页>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
边栏推荐
- [Qt5 basics] random number display
- Qt5 mvc: revealing the secrets of data visualization
- Log4j2 threadcontext log link tracking
- Check the disk usage of MySQL database
- 一站式洞察行业热点,飞瓜数据B站新功能「流量大盘」上线!
- New opportunities for vr/ar brought by metauniverse
- 如何选择券商?另外,手机开户安全么?
- 微生物健康,食品微生物检测为什么很重要
- 1500w播放下还藏着什么热点?B站2个未来趋势你不得错过
- org.redisson.client.RedisResponseTimeoutException: Redis server response timeout (3000 ms)错误解决
猜你喜欢

6月第4周榜单丨飞瓜数据UP主成长排行榜(哔哩哔哩平台)发布!

Working for eight years as a programmer, but with a salary of three years after graduation, it's too late to be enlightened again

Ks009 implementation of pet management system based on SSH

KS009基于SSH实现宠物管理系统

Microbiological health, why is food microbiological testing important

AS400 API 从零到一的整个历程

Test essential tool - postman practical tutorial

gin_ gorm

软件测试的可持续发展,必须要学会敲代码?

孙宇晨接受瑞士媒体Bilan采访:熊市不会持续太久
随机推荐
测试必备工具—Postman实战教程
7-2 punch in reward DP for puzzle a
System settings large page
The argument type 'function' can't be assigned to the parameter type 'void function()‘
[Qt5 basic \u 1] starting from 0, Mr. Detian will study with you - Introduction to the window
Try new possibilities
Mathematical knowledge: finding combinatorial number III - finding combinatorial number
使用 C# 创造 ASCII 艺术
视频教程 | 长安链推出系列视频教程合集(入门)
PHP crawls data through third-party plug-ins
gin 配置文件
Thinking about business and investment
【队列】933. Number of Recent Calls
微生物安全与健康,什么是生物处理?
未来的 Web3会带来什么?
New opportunities for vr/ar brought by metauniverse
PHP array splicing MySQL in statement
Handsontable數據網格組件
What will Web3 bring in the future?
股票开户有哪些优惠活动?另外,手机开户安全么?