flat assembler
Message board for the users of flat assembler.
Index
> Windows > dll problem. Windows 10 |
Author |
|
Roman 10 Jul 2022, 19:59
LoadLibraryA get this error:
--------------------------- test.EXE - Bad Image --------------------------- C:\FasmAPI\fedit\usrdll\user1.dll is either not designed to run on Windows or it contains an error. Try installing the program again using the original installation media or contact your system administrator or the software vendor for support. Error status 0xc000007b. --------------------------- OK --------------------------- |
|||
10 Jul 2022, 19:59 |
|
FlierMate1 10 Jul 2022, 20:44
I tested it with 32-bit DLL, FASM complained:
Code: Error: value out of range pushd 'S_data = Null' If tested with "mmmm" is OK, as 64-bit DLL. Also, I think the string needs to be null-terminated. Last edited by FlierMate1 on 11 Jul 2022, 00:34; edited 2 times in total |
|||
10 Jul 2022, 20:44 |
|
FlierMate1 10 Jul 2022, 20:46
Roman wrote: LoadLibraryA get this error: I got this in Visual Studio (for 64-bit DLL). Update: It was because my fault for not setting environment to x64.
Last edited by FlierMate1 on 11 Jul 2022, 00:29; edited 1 time in total |
||||||||||
10 Jul 2022, 20:46 |
|
ProMiNick 11 Jul 2022, 00:04
Code: invoke MessageBox, 0,'S_data = Null', 0, 0 ;this loadlibrary get error dll ! when thou moved to 64 bit pass to MessageBox ptr, not string itself. But if thou realy realy want that feature for x64. (Я постебусь и реализую эту функцию, только время компиляции увеличится в 1000 раз, и процессорного ресурса по памяти отожрется столько что программу/библиотеку более чем с 10 64битными инвоками ты не скомпилируешь, кстати реализовывать всякий синтаксический мусор и правда затратно для препроцессора, просто в случае соглашения о вызовах для 32 битов так удачно совпало, что решение простое) so, do thou need it for x64?(так тебе нужен этот синтаксический мусор?) |
|||
11 Jul 2022, 00:04 |
|
I 11 Jul 2022, 00:55
Because of empty relocation table (zero length). Not sure if "rq 0" is useful either, typo?
|
|||
11 Jul 2022, 00:55 |
|
Roman 11 Jul 2022, 04:10
Some times I need for debug Dll print messages.
Messagebox, 0,“debug info“, 0,0 And I do this using macro Msg. When I finish tested Dll, then I do macro Msg empty. This remove all debug messages. For this reason I using this ugly style. Its more handful and no needed write text data. I rewrite my macro Msg. And deleted proc ShowErrorMessage(guilty of a error too). And fix this problem. Now dll work fine, no errors Code: macro Msg chT { local .txtl,.ll jmp .ll .txtl db chT,0 .ll: invoke MessageBox, 0,.txtl, 0, 0 } |
|||
11 Jul 2022, 04:10 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.