MemoryModule x86 and x64 (static lib, import and example)

Applications, Games, Tools, User libs and useful stuff coded in PureBasic
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Re: MemoryModule x86 and x64 (static lib, import and example

Post by ts-soft »

Update:

New functions to use resources in dll and new example to reflect this!
MemoryModule wrote: MemoryLoadLibrary(*MemoryPointer)
MemoryGetProcAddress(hModule, FunctionName.p-ascii)
MemoryFreeLibrary(hModule)
MemoryFindResource(hModule, lpName.p-ascii, lpType.p-ascii)
MemoryFindResourceEx(hModule, lpName.p-ascii, lpType.p-ascii, wLanguage.w)
MemoryLoadResource(hModule, hResInfo)
MemoryLoadString(hModule, uID.l, *lpBuffer, nBufferMax.l)
MemoryLoadStringEx(hModule, uID.l, *lpBuffer, nBufferMax.l, wLanguage.w)
MemorySizeofResource(hModule, hResInfo)
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
Image
User avatar
chi
Addict
Addict
Posts: 1028
Joined: Sat May 05, 2007 5:31 pm
Location: Linz, Austria

Re: MemoryModule x86 and x64 (static lib, import and example

Post by chi »

MemoryFreeLibrary() keeps crashing when running inside a virtual environment (VirtualBox)... Is it save to just not call this function or will there be something left behind?

Greetings, chi
Et cetera is my worst enemy
User avatar
jacdelad
Addict
Addict
Posts: 1436
Joined: Wed Feb 03, 2021 12:46 pm
Location: Planet Riesa
Contact:

Re: MemoryModule x86 and x64 (static lib, import and example)

Post by jacdelad »

The link in the first post doesn't work anymore, is it still available somewhere?
PureBasic 6.04/XProfan X4a/Embarcadero RAD Studio 11/Perl 5.2/Python 3.10
Windows 11/Ryzen 5800X/32GB RAM/Radeon 7770 OC/3TB SSD/11TB HDD
Synology DS1821+/36GB RAM/130TB
Synology DS920+/20GB RAM/54TB
Synology DS916+ii/8GB RAM/12TB
destiny
User
User
Posts: 29
Joined: Wed Jul 15, 2015 12:58 pm
Location: CCCP

Re: MemoryModule x86 and x64 (static lib, import and example)

Post by destiny »

jacdelad wrote: Fri Nov 25, 2022 7:32 am The link in the first post doesn't work anymore, is it still available somewhere?
Same question.
Post Reply