News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

RadASM 3.0 bugtest

Started by KetilO, May 31, 2010, 12:28:11 PM

Previous topic - Next topic

jcfuller

Ketil,
The ones with no asm icon do not have a link option.
The ones that do have a link step are fine.

James



Ficko

Thanks KetilO!

Works like a charm. :U

Only the "Increment build" seems to be ignored.

I guess it not implemented jet!? ::)

TmX

Hi KetilO,

Any plans about HLA support?

KetilO

Thanks jcfuller

New upload.

KetilO

KetilO

Hi TmX

No immediate plans to add hla support

KetilO

jcfuller


donkey

Hi Ketl,

I have a couple of questions for addins.

1) Is the array of labels and their pointers found in the properties window available or is the data still stores as it was in V2 (string [a number of tabs] data)
2) What are the parameters for ADDINDATA.pHtmlHelpProc and can I insert a new address to inject my own code there ?

Edgar
"Ahhh, what an awful dream. Ones and zeroes everywhere...[shudder] and I thought I saw a two." -- Bender
"It was just a dream, Bender. There's no such thing as two". -- Fry
-- Futurama

Donkey's Stable

KetilO

Hi Edgar

1) Simular but not the same. The linked list item consist of a PROPERTIES structure followed by one or more ZStrings.
    GetWindowLong ADDINHANDLES.hProperty,0 returns a pointer to a RAPROPERTY structure. RAPROPERTY.lpmem
    is the pointer to the linked list.
    Note however that it is not recomended to access the list directly. If possible use the PRM_* messages you can send to
    the properties window.
2) Here is the part in RadASM 3 that handles help files.

DoHelp proc lpszHelpFile:DWORD,lpszWord:DWORD
    LOCAL hhaklink:HH_AKLINK
    LOCAL hHHwin:HWND
    LOCAL buffer[MAX_PATH]:BYTE

    mov eax,lpszHelpFile
    .if byte ptr [eax]
        .if dword ptr [eax]=='ptth'
            ;URL
            invoke ShellExecute,ha.hWnd,addr szIniOpen,lpszHelpFile,NULL,NULL,SW_SHOWNORMAL;SW_SHOWDEFAULT
        .else
            invoke strcpy,addr buffer,lpszHelpFile
            invoke FixPath,addr buffer,addr da.szAppPath,addr szDollarA
            invoke strlen,addr buffer
            lea edx,buffer
            mov edx,[edx+eax-4]
            and edx,5F5F5FFFh
            .if edx=='MHC.'
                ;Chm file
                invoke RtlZeroMemory,addr hhaklink,sizeof HH_AKLINK
                .if !ha.hHtmlOcx
                    invoke LoadLibrary,offset szhhctrl
                    mov ha.hHtmlOcx,eax
                    invoke GetProcAddress,ha.hHtmlOcx,offset szHtmlHelpA
                    mov da.pHtmlHelpProc,eax
                .endif
                .if ha.hHtmlOcx
                    mov hhaklink.cbStruct,SizeOf HH_AKLINK
                    mov hhaklink.fReserved,FALSE
                    mov eax,lpszWord
                    mov hhaklink.pszKeywords,eax
                    mov hhaklink.pszUrl,NULL
                    mov hhaklink.pszMsgText,NULL
                    mov hhaklink.pszMsgTitle,NULL
                    mov hhaklink.pszWindow,NULL
                    mov hhaklink.fIndexOnFail,TRUE
                    push 0
                    push HH_DISPLAY_TOPIC
                    lea eax,buffer
                    push eax
                    push 0
                    Call [da.pHtmlHelpProc]
                    mov hHHwin,eax
                    lea eax,hhaklink
                    push eax
                    push HH_KEYWORD_LOOKUP
                    lea eax,buffer
                    push eax
                    push 0
                    Call [da.pHtmlHelpProc]
                .endif
            .elseif edx=='PLH.'
                ;Hlp file
                invoke WinHelp,ha.hWnd,addr buffer,HELP_KEY,lpszWord
            .else
                ;Other
                invoke ShellExecute,ha.hWnd,addr szIniOpen,addr buffer,NULL,NULL,SW_SHOWNORMAL
            .endif
        .endif
    .endif
    ret

DoHelp endp


KetilO

GregL

KetilO,

Any plans on supporting the MSVC debugger?

VC Syntax is

    Visual Studio:  devenv.exe /debugexe program.exe arg1 arg2

    VC Express Edition:  VCExpress.exe /debugexe program.exe arg1 arg2

WinDbg would probably work as it is, as the syntax is WinDbg.exe program.exe arg1 arg2, the same as OllyDbg.


GregL

KetilO,

I did some more fiddling around with it and VCExpress works fine if you leave out the /debugexe option.  Like so: VCExpress.exe program.exe


Gunner

Ok, "officially" started using version 3  :bg

Not sure if it is a feature, but in version 2 if I typed ProcName proc and hit return, Rad would fill in ProcName endp for me and also fill in a ret for me, in version 3, that doesn't seem to be the case?  It doesn't type in ret anymore......
Also, you switched to what, dialog units not in the resource editor?  grrr  :toothy
All in all it is great so far!  Found a few bug in the resource editor, when they are reproduced, I will post them here....
~Rob (Gunner)
- IE Zone Editor
- Gunners File Type Editor
http://www.gunnerinc.com

José Roca

I have found a bug in ResEd.

1. Place an UDC (User Defined Control) in the dialog.
2. Go to the properties grid.
3. Press Ctrl+Z

It GPFs.

Tested in Windows 7.

dancho

Hi KetilO,
I have one small bug to report, ( asm is fasm ) ...
when some structure ( like PIXELFORMATDESCRIPTOR  ) is defined like this :


proc SetupPFD
local pfd:PIXELFORMATDESCRIPTOR
     
     ret
endp


I can normally reference structure elements from popup list,
but when is defined like this :


proc SetupPFD
locals
pfd PIXELFORMATDESCRIPTOR  ?
endl
     
     ret
endp


only empty list is present...

thx...

Dancho

dancho

to continue on my last post,
if some structure ( like WNDCLASSEX ) is defined like this in '.data' section :


section '.data' data readable writeable
wcx     WNDCLASSEX sizeof.WNDCLASSEX,CS_HREDRAW+CS_VREDRAW,WinProc,0,0,0,0,0,0,0,className,0


then I cant reference structure elements in '.code' section :


section '.code' code readable executable
invoke LoadIcon,0,IDI_APPLICATION
mov [wcx.hIcon],eax    ; have to enter wcx.hIcon manually


both section are in same ( main )  file...
thx
Dancho

donkey

Hi dancho,

If you put the initialization in braces it should work, not sure what assembler you're using but if its possible try this:

wcx     WNDCLASSEX <sizeof.WNDCLASSEX,CS_HREDRAW+CS_VREDRAW,WinProc,0,0,0,0,0,0,0,className,0>
"Ahhh, what an awful dream. Ones and zeroes everywhere...[shudder] and I thought I saw a two." -- Bender
"It was just a dream, Bender. There's no such thing as two". -- Fry
-- Futurama

Donkey's Stable