flat assembler
Message board for the users of flat assembler.

Index > Windows > fasm and Visual basic ?

Author
Thread Post new topic Reply to topic
senolc_eht



Joined: 22 Mar 2004
Posts: 57
Location: Indonesia
senolc_eht 14 Dec 2007, 11:25
can I make an window with fasm and using it as in visual basic as main form?

regard
Senolc_eht

_________________
sorry if i always asking.....
Post 14 Dec 2007, 11:25
View user's profile Send private message Yahoo Messenger Reply with quote
MHajduk



Joined: 30 Mar 2006
Posts: 6115
Location: Poland
MHajduk 14 Dec 2007, 12:14
I think, that in VB theme sleepsleep could be most competent of us. Smile
Post 14 Dec 2007, 12:14
View user's profile Send private message Visit poster's website Reply with quote
coconut



Joined: 02 Apr 2004
Posts: 326
Location: US
coconut 14 Dec 2007, 15:24
you can make a DLL with fasm, and call it from a VB app but i dont see a way of making a "form" or just a "window" in fasm to load into VB. maybe you can compile an exe in fasm, and use it somehow as a resource from the VB app
Post 14 Dec 2007, 15:24
View user's profile Send private message Reply with quote
sleepsleep



Joined: 05 Oct 2006
Posts: 12737
Location: ˛                             ⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣Posts: 0010456
sleepsleep 14 Dec 2007, 17:33
like coconut said, you can always use fasm to ouput dll file and call it from vb, i assume u use vb6 Razz not the new .net bla bla vb.

and you can also make window in fasm, but must put it in a proc, so that you can call it (invoke) it from vb. ~ so your vb must start from a module bas file, if you want to use it this way.

but isn't it easier to create window from vb itself? Smile

thanks mhajduk Smile guess that is the result after i conducted some class to teach vb Razz (spreading evils) >>>> Razz
Post 14 Dec 2007, 17:33
View user's profile Send private message Reply with quote
senolc_eht



Joined: 22 Mar 2004
Posts: 57
Location: Indonesia
senolc_eht 17 Dec 2007, 00:12
Quote:

but isn't it easier to create window from vb itself?


yes but I want to make main windows with registration window that can't extracted by VB decompiler Smile.

Quote:

you can make a DLL with fasm, and call it from a VB app but i dont see a way of making a "form" or just a "window" in fasm to load into VB


I was using this approach and make 3 proc
LoadForm -> to make the window
MessageHandle --> to handle the window message
GetVarible --> to get the variable from the window to handle by the vb

and I loaded from module.bas, it's work but crash the vb on the second run (F5).

i don't bring the source right now but i will upload it next time i online.

Regard,
senolc_eht
Post 17 Dec 2007, 00:12
View user's profile Send private message Yahoo Messenger Reply with quote
senolc_eht



Joined: 22 Mar 2004
Posts: 57
Location: Indonesia
senolc_eht 17 Dec 2007, 13:18
This is my source code, and i change my statement it's still a lot crash in vb..

any help to fix the crash..?

regard,
Senolc_eht


Description: vb with fasm as main window
Download
Filename: project.rar
Filesize: 6.3 KB
Downloaded: 178 Time(s)


_________________
sorry if i always asking.....
Post 17 Dec 2007, 13:18
View user's profile Send private message Yahoo Messenger Reply with quote
sleepsleep



Joined: 05 Oct 2006
Posts: 12737
Location: ˛                             ⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣Posts: 0010456
sleepsleep 17 Dec 2007, 22:46
i just took a look on it.
wondering why not you just use SetWindowLong and change the default vb form window procedure message proc to the one in your dll ?

and btw, you mentioned about vb decompiler, could i know the name of that application that you tested?
Post 17 Dec 2007, 22:46
View user's profile Send private message Reply with quote
senolc_eht



Joined: 22 Mar 2004
Posts: 57
Location: Indonesia
senolc_eht 21 Dec 2007, 00:09
Quote:

and btw, you mentioned about vb decompiler, could i know the name of that application that you tested?


www.vb-decompiler.org,
I download the lite version it extract all my form that i made with vb, even the code is in assemby form.

Quote:

wondering why not you just use SetWindowLong and change the default vb form window procedure message proc to the one in your dll ?


thanks i forget about that api...

regard
Senolc_eht
Post 21 Dec 2007, 00:09
View user's profile Send private message Yahoo Messenger 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.