flat assembler
Message board for the users of flat assembler.

Index > Windows > Who can help me to compile my dll [win32,fasm 1.69.31]

Author
Thread Post new topic Reply to topic
chak_xakep



Joined: 25 Jun 2011
Posts: 2
chak_xakep 25 Jun 2011, 15:49
I'm writing simple plugin system for fasmW editor, but compiler refuses to compile my dll. Sorry for my BAD (dubovy) english. The source code you can see in attach.


Description: plugManager
Download
Filename: pm_src.rar
Filesize: 3.65 KB
Downloaded: 168 Time(s)

Post 25 Jun 2011, 15:49
View user's profile Send private message ICQ Number Reply with quote
LocoDelAssembly
Your code has a bug


Joined: 06 May 2005
Posts: 4624
Location: Argentina
LocoDelAssembly 25 Jun 2011, 17:38
The problem is here:
Code:
proc FindCallBack stdcall WIN32_FIND_DATAA: dword
        mov     eax, [WIN32_FIND_DATAA]
        lea     eax, [eax+WIN32_FIND_DATAA.cFileName]
        invoke  MessageBox,[MainHWND],eax,NULL,MB_ICONERROR+MB_OK
  .finish:
        ret
endp    
The name you used for the parameter is exactly the same as the structure defined in KERNEL32.INC, this caused serious mess in the preprocessing and caused the rest of the code to be incorrectly handled.

Also note that there are more errors but I think you'll be able to fix them.
Post 25 Jun 2011, 17:38
View user's profile Send private message Reply with quote
chak_xakep



Joined: 25 Jun 2011
Posts: 2
chak_xakep 25 Jun 2011, 18:41
LocoDelAssembly thanks a lot!
Initially win32_find_data in procedure FindCallBack has been declared in the lower case, then I have wanted to replace WIN32_FIND_DATA on WIN32_FIND_DATAA by calling a replace dialog, as a result the error has turned out!
Post 25 Jun 2011, 18:41
View user's profile Send private message ICQ Number Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.