The MASM Forum Archive 2004 to 2012

Project Support Forums => IDE Development and Support => RadAsm Support Forum => Topic started by: KetilO on May 10, 2007, 11:52:55 AM

Title: RadASM 2.2.1.2 bugtest
Post by: KetilO on May 10, 2007, 11:52:55 AM
IMPORTANT:
You need to have RadASM 2.2.1.1 or 2.2.1.2 installed.

Whats new in RadASM 2.2.1.2
---------------------------------------------
o Included several improvements by drizz.
o Added images to tab select.

KetilO

New upload 07.10.2007
o New RadASM icon by Anton Lesnichenko
o Default control sizes in dialog editor.


[attachment deleted by admin]
Title: Re: RadASM 2.2.1.2 bugtest
Post by: KetilO on July 10, 2007, 11:45:37 AM
New upload:

o New RadASM icon by Anton Lesnichenko
o Default control sizes in dialog editor.

KetilO
Title: Re: RadASM 2.2.1.2 bugtest
Post by: Shantanu Gadgil on July 14, 2007, 08:04:45 AM
QuoteDefault control sizes in dialog editor.
Hi,
What is this feature? How does this work?
I tried searching for this a lot, couldn't find it!!!  :red :'(

The new icon is good, BTW!!!  :U
Regards,
Shantanu
Title: Re: RadASM 2.2.1.2 bugtest
Post by: KetilO on July 16, 2007, 07:09:40 AM
Hi Shantanu Gadgil

Have a look here:
http://www.masm32.com/board/index.php?topic=7580.0

KetilO
Title: Re: RadASM 2.2.1.2 bugtest
Post by: Shantanu Gadgil on July 17, 2007, 07:06:16 PM
Hi,
Sorry to be a bother ... I still don't understand the what the "default control size" thing is !?!  :red :red

Is it something in ResEd, or in RadASM or in both ???

Most likely I am missing something very obvious!!!

Regards,
Shantanu
Title: Re: RadASM 2.2.1.2 bugtest
Post by: ramguru on July 17, 2007, 07:14:06 PM
That feature is present.
Let's say you want to add a button to the dialog, earlier you had to define initial rect of it using mouse, now you simply choose button, click on dialog, and initial width & height of button is made by default.
Title: Re: RadASM 2.2.1.2 bugtest
Post by: Shantanu Gadgil on July 17, 2007, 07:43:29 PM
Aah! Thank you for clearing that up!!!  :bg

Regards,
Shantanu
Title: Re: RadASM 2.2.1.2 bugtest
Post by: ramguru on July 23, 2007, 12:42:16 PM
Preview feature does some crappy work  :wink
(http://img248.imageshack.us/img248/452/previewma5.png)
Title: Re: RadASM 2.2.1.2 bugtest
Post by: KetilO on July 23, 2007, 02:54:33 PM
Thanks

The Preview addin needed to be updated.

KetilO

[attachment deleted by admin]
Title: Re: RadASM 2.2.1.2 bugtest
Post by: ramguru on July 23, 2007, 03:11:04 PM
works fine now  :U
Title: Re: RadASM 2.2.1.2 bugtest
Post by: ostaith on July 29, 2007, 02:30:58 PM
hi KetilO,

i install Radasm in D:\Radasm, and OllyDbg in D:\Ollydbg
when i use Radasm's [MakeDefNoProject], the following my config:

[MakeDefNoProject]
MenuMake=1,1,1,1,1,1,1,1,0,0
1=$.res,O,$B\RC.EXE /v,$.rc
2=$.obj,O,$B\ML.EXE /c /coff /Cp /nologo /I"$I",$.asm
3=$.exe,O,$B\LINK.EXE /SUBSYSTEM:WINDOWS /RELEASE /VERSION:4.0 /LIBPATH:"$L",$.obj,$.res
4=0,0,,$.exe
5=$.obj,O,$B\CVTRES.EXE,$.res
6=*.obj,O,$B\ML.EXE /c /coff /Cp /nologo /I"$I",*.asm
7=0,0,"$E\OllyDbg.EXE",$.exe
11=$.res,O,$B\RC.EXE /v,$.rc
12=$.obj,O,$B\ML.EXE /c /coff /Cp /nologo /Zi /I"$I",$.asm
13=$.exe,O,$B\LINK.EXE /SUBSYSTEM:WINDOWS /DEBUG /VERSION:4.0 /LIBPATH:"$L",$.obj,$.res
14=0,0,,$.exe
15=$.obj,O,$B\CVTRES.EXE,$.res
16=*.obj,O,$B\ML.EXE /c /coff /Cp /nologo /I"$I",*.asm
17=0,0,"$E\OllyDbg.EXE",$.exe

i build a .asm file, then i click "Make -> Run w/Debug", it only execute my program, but not debug my program with Ollydbg,
is it a bug?

thanks!
Title: Re: RadASM 2.2.1.2 bugtest
Post by: ragdog on July 29, 2007, 04:35:20 PM
hi ostaith

set the paths to ollydbg

[Paths]
$A=C:\Masm32
$B=$A\Bin
$D=$R\AddIns
$H=$A\Help
$I=$A\Include
$L=$A\Lib
$P=$R\Masm\Projects
$S=$R\Masm\Sniplets
$T=$R\Masm\Templates
$M=$R\Masm\Macro
$E=D:\Ollydbg <<-------------------


greets ragdog
Title: Re: RadASM 2.2.1.2 bugtest
Post by: ostaith on July 30, 2007, 02:06:27 PM
hi ragdog, i set the paths to ollydbg, but it can't work still.

if i create a project, the "Run w/Debug" work well.

this problem only exist in MakeDefNoProject.
Title: Re: RadASM 2.2.1.2 bugtest
Post by: Mark Jones on July 30, 2007, 02:30:43 PM
Quote from: ostaith on July 29, 2007, 02:30:58 PM
...
7=0,0,"$E\OllyDbg.EXE",$.exe
...
17=0,0,"$E\OllyDbg.EXE",$.exe

Hello, try the following:

...
7=0,0,"$E\OllyDbg.EXE",5
...
17=0,0,"$E\OllyDbg.EXE",5
Title: Re: RadASM 2.2.1.2 bugtest
Post by: ragdog on July 30, 2007, 02:40:51 PM
hi


i have copy ollydbg to d:\ and set the paths by radasm to ollydbg

mean you this error??
;-------------------------------------
UDD Directory absent

UDD directory 'C:\OllyDbg' doesn't exist. Please specify valid path in Options|Appearance|Directories, otherwise breakpoints, comments and analysis data will be lost after debugged program terminates.

;---------------------------------------

i have set the path in ollydbg.ini

Symbolic data path=d:\OllyDbg
UDD path=d:\OllyDbg
Plugin path=d:\OllyDbg

ragdog
Title: Re: RadASM 2.2.1.2 bugtest
Post by: ramguru on August 01, 2007, 07:56:04 PM
In caption field I've entered: eg. "menu.mnu"
and of course RadASM translated it to
CONTROL "eg. "menu.mnu"",...
wouldn't it be better if RadASM translated it to
CONTROL "eg. \x22menu.mnu\x22",...
but I'm kinda suprised that |CONTROL "eg. \"menu.mnu\"",...| wouldn't work
Title: Re: RadASM 2.2.1.2 bugtest
Post by: ostaith on August 02, 2007, 07:41:41 PM
hi KetilO,

when i set Single Instance, and i open a project twice, it will report "cannot open the file".

i found the procedure OpenCommandLine proc uses ebx,lpCmnd:DWORD has a problem,

.while byte ptr [ebx] ; <= so here whill cause a problem
   ...
   .if byte ptr FileName
      invoke SendMessage,hWnd,WM_USER+998,0,offset FileName ; <= this statement whill change [ebx]
   .endif
   ...
.endw
Title: Re: RadASM 2.2.1.2 bugtest
Post by: KetilO on August 02, 2007, 10:18:50 PM
Hi ramguru

I will look into it.

KetilO
Title: Re: RadASM 2.2.1.2 bugtest
Post by: KetilO on August 02, 2007, 10:26:16 PM
Hi ostaith

Thanks for reporting this bug.

The bug is not related to using ebx as it is preserved.

The problem is that prnbuff is overwrittwn.
Adding 8192 to offset of prnbuff is a quick fix:

.elseif eax==WM_COPYDATA
  push esi
  push edi
  mov esi,lParam
  mov ecx,[esi].COPYDATASTRUCT.cbData
  mov esi,[esi].COPYDATASTRUCT.lpData
  .if !wParam
    mov edi,offset prnbuff+8192
    rep movsb
    invoke OpenCommandLine,offset prnbuff+8192
  .elseif wParam==-1
    mov edi,offset FileName
    rep movsb
    invoke SendMessage,hWin,WM_COMMAND,-1,-1
  .endif
  pop edi
  pop esi
  ret


KetilO