flat assembler
Message board for the users of flat assembler.

Index > Windows > Visual Basic with fasm

Author
Thread Post new topic Reply to topic
avcaballero



Joined: 02 Feb 2004
Posts: 192
Location: Madrid - Spain
avcaballero
Hello, I just want a simple example fasm/Visual Basic that shows a message from dll-fasm. What I did doesn't work. Can anyone tell me why, please?

Thank you


Description:
Download
Filename: FasmQuestion.zip
Filesize: 1.55 KB
Downloaded: 55 Time(s)

Post 27 Oct 2009, 17:42
View user's profile Send private message Visit poster's website Reply with quote
pelaillo
Missing in inaction


Joined: 19 Jun 2003
Posts: 878
Location: Colombia
pelaillo
ThereĀ“s an error in Testdll.frm:
Code:
'Private Declare Sub MuestraMensaje Lib "fasmll.dll" ()
Private Declare Sub MuestraMensaje Lib "fasmdll.dll" ()    

You also need to be sure your dll is accesible in vb loader path. The easiest way to be sure is to copy the dll in %system% directory.
Post 27 Oct 2009, 18:27
View user's profile Send private message Yahoo Messenger Reply with quote
TheLord



Joined: 24 Oct 2006
Posts: 42
TheLord
Hi,

You can put the dll where the exe is stored (the same folder) or in any directory pointed out by the environment variable %PATH%
(just type "set" w/o quote in a cmd prompt), (system32 is one of those directory).

see ya
Post 28 Oct 2009, 13:32
View user's profile Send private message Reply with quote
avcaballero



Joined: 02 Feb 2004
Posts: 192
Location: Madrid - Spain
avcaballero
The dll is compiled with no errors, but when I call it from VB appears a message of error:

Error '53' on executing time
It has not been found the file: fasmll.dll

But the dll is in the same directory as the executable file is.??


Description:
Download
Filename: FasmQuestion.zip
Filesize: 7.9 KB
Downloaded: 55 Time(s)

Post 28 Oct 2009, 15:08
View user's profile Send private message Visit poster's website Reply with quote
LocoDelAssembly
Your code has a bug


Joined: 06 May 2005
Posts: 4633
Location: Argentina
LocoDelAssembly
You have not corrected the error that pelaillo pointed you out. I renamed the dll to fasmll.dll and it worked.
Post 28 Oct 2009, 16:57
View user's profile Send private message Reply with quote
avcaballero



Joined: 02 Feb 2004
Posts: 192
Location: Madrid - Spain
avcaballero
Opps!, I'm sorry, you can't believe it, but at the first glance, I didn't watch the difference...
Thank you.
Post 29 Oct 2009, 08:15
View user's profile Send private message Visit poster's website 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-2020, Tomasz Grysztar.

Powered by rwasa.