WinAsm Studio, The Assembly IDE - Free Downloads, Source Code
Articles
Programming Quick Start
32-bit Assembler is Easy
Porting Iczelion tutorials
What is FASM
Hard Drive Recovery
Wiring your own LAN
 
Forum
Forum Rules Snippets forum rules

In this forum all the registered users may post their snippets of code they whish to share with the WinAsm Studio community following these basic rules:
* Only snippets of code are accepted in the topics of this forum.
* Discussions, suggestions, requests etc. must be posted in the "Discussions" topic.
* Do not post copyrighted material.
Administrators/moderators may edit, move or delete the entries that do not follow the preceding rules.

 

Display a message box passing the strings directly, a macro allowing you to display a message box by passing strings instead of pointers to strings.

blues
Quote Post


Member
******

Group: Members
Posts: 435
Member No.: 20
Joined: 20-May 04


with this macro you can display a message box passing the strings directly on the lines.

CODE
MsgBox macro hWnd,text,caption,utype
� �LOCAL szText
� �LOCAL szCaption

� �.data
� �szText BYTE text, 0
� �szCaption BYTE caption, 0
� �.code
� �invoke MessageBox,hWnd,offset szText,offset szCaption,utype
endm


use it as follows:
CODE
MsgBox hWnd,"message","caption",MB_OK


Sponsored Links
PMEmail Poster
Top
Jesus
Quote Post


Very Active Member
****

Group: Members
Posts: 76
Member No.: 5854
Joined: 24-March 08


Nice!. Thanks for sharing blues. biggrin.gif
PMEmail Poster
Top
xspider
Quote Post


Very Active Member
****

Group: Members
Posts: 64
Member No.: 10609
Joined: 27-July 08


or we can do
invoke MessageBox,hWnd,CTXT("MsgText"),CTXT("MsgCaption"),MB_OK

with using macros.asm smile.gif

just another idea laugh.gif
PMEmail Poster
Top
0 User(s) are reading this topic (0 Guests and 0 Anonymous Users)
0 Members:

Topic Options Reply to this topicStart new topic

 

Sponsors
Computer Science

Internet
C/C++
Hardware & PC maintenance

HiEditor

General Discussions
Suggestions/Bug Reports
WinAsm Studio

General Discussions
Suggestions/Bug Reports
WinAsm Studio FAQ
Multilingual User Interface
Add-Ins
Assembly Programming

Main
Newbies
Projects
Custom Controls
Snippets
Announcements & Rules

Announcements

General

Online Degrees - Distance Learning
The Heap
Russian