WinAsm Studio, The Assembly IDE - Free Downloads, Source Code
Sponsors
Articles
Programming Quick Start
32-bit Assembler is Easy
Porting Iczelion tutorials
What is FASM
Hard Drive Recovery
Wiring your own LAN
Personal menu
Welcome Guest
User:
Pass:
Register!
Resend Validation Email
 
Forum
 

Retrieving the main .asm file name, I'm developing an add-in that adds support of custom linkers to WinAsm Studio, I need the name of the .obj file.

DELTA_1
Quote Post


Member
**

Group: Members
Posts: 25
Member No.: 920
Joined: 10-January 05


Hi, Antonis!
I'm developing an add-in that adds support of custom linkers to WinAsm Studio. And I have a question. In order to make a command line I need the name of the .obj file, created after compilation. The best way to get this name is to know the main .asm file name. How can I do this?
Thanks.
PMEmail Poster
Top
shoorick
Quote Post


Extremely Active Member
******

Group: Admins
Posts: 2301
Member No.: 160
Joined: 22-June 04


this code searches first asm and displays its name:
CODE
proc b_asm
   mov [pSourceName],0
   invoke SendMessage,[hMain],WAM_ENUMCURRENTPROJECTFILES,get_1,1
   cmp [pSourceName],0
   je @F
   invoke MessageBox,[hMain],[pSourceName],0,0
@@:    
   mov eax,TRUE
   ret
endp

proc get_1,.hWin,.lParam
   invoke GetWindowLong,[.hWin],0
   mov ecx,[.lParam]
   cmp [eax + CHILDDATA.TypeOfFile],ecx
   jne @F
   lea eax,[eax + CHILDDATA.FileName]
   mov [pSourceName],eax
   xor eax,eax
   leave
   ret 8
@@: mov eax,TRUE
   leave    
ret 8
endp
PMEmail PosterUsers Website
Top
QvasiModo
Quote Post


Just your regular village idiot
******

Group: Moderators
Posts: 462
Member No.: 7
Joined: 13-May 04


The WAAddInLIb static library also has code for this, you might want to check it out. smile.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 topicStart Poll

 

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
Google