The MASM Forum

Projects => Easy Code IDE 32/64-bit => Topic started by: buskysnow on June 04, 2016, 05:20:20 PM

Title: easy code ide can't show struct members?
Post by: buskysnow on June 04, 2016, 05:20:20 PM
when i type a struct variable followed a full point ,i hope it could show me the struct members ,like WinAsm Studio.

i hope that  this function could be added in next version .

forgive me about my poor english...

could anyone understand what i say?
Title: Re: easy code ide can't show struct members?
Post by: jj2007 on June 04, 2016, 06:27:24 PM
Hi Busky,

Welcome to the forum :icon14:

Your English is perfect, and it's clear what you want. This feature will require some parsing of the source, example:

wcx WNDCLASSEX <WNDCLASSEX, MyWinStyle, WndProc, 0, 0, 1, 2, 3, COLOR_BTNFACE+1, 0, txClass, 4>

wc equ [ebx.WNDCLASSEX] ; we use an equate for better readability


Both versions would have to be recognised. Feasible but it would be some work, also to ensure that it does not slow down the whole IDE. Maybe an idea for a plugin, also for qEditor?
Title: Re: easy code ide can't show struct members?
Post by: buskysnow on June 04, 2016, 07:47:48 PM
Quote from: jj2007 on June 04, 2016, 06:27:24 PM
Hi Busky,

Welcome to the forum :icon14:

Your English is perfect, and it's clear what you want. This feature will require some parsing of the source, example:

wcx WNDCLASSEX <WNDCLASSEX, MyWinStyle, WndProc, 0, 0, 1, 2, 3, COLOR_BTNFACE+1, 0, txClass, 4>

wc equ [ebx.WNDCLASSEX] ; we use an equate for better readability


Both versions would have to be recognised. Feasible but it would be some work, also to ensure that it does not slow down the whole IDE. Maybe an idea for a plugin, also for qEditor?
Thanks for your reply.I am a beginner. I can understand what you said .But i can't uderstand well about the code you post. Could you write a simple but complete code for me? Thanks a lot !
Title: Re: easy code ide can't show struct members?
Post by: jj2007 on June 04, 2016, 11:02:16 PM
Quote from: buskysnow on June 04, 2016, 07:47:48 PMCould you write a simple but complete code for me? Thanks a lot !

There is plenty of code in \Masm32\Examples\*.asm - enjoy :t
Title: Re: easy code ide can't show struct members?
Post by: rsala on June 05, 2016, 07:09:49 PM
Hi buskysnow,

Welcome to the forum and thanks for using Easy Code.

The context help for struct members is not yet implemented. It is not an easy task and I do not know when I will be able to implement it.

Regards!
Title: Re: easy code ide can't show struct members?
Post by: jj2007 on June 05, 2016, 10:56:44 PM
To launch an idea how to implement it: Attached AllStructs.jjn, the source that creates it, and a reader for the jjn file (with comfortable search).
Basically, it collects all structures in \masm32\include, and formats them so that the members are clearly identified.
Example: the "x" in POINT reads CrLf, 32, x, 9, DWORD

@=POINT STRUCT
x DWORD ?
y DWORD ?
POINT ENDS
@=POINTL STRUCT
x DWORD ?
y DWORD ?
POINTL ENDS
@=POINTS STRUCT
x WORD ?
y WORD ?
POINTS ENDS
@=RECT STRUCT
left dd ?
top dd ?
right dd ?
bottom dd ?
RECT ENDS
Title: Re: easy code ide can't show struct members?
Post by: buskysnow on June 06, 2016, 03:51:52 PM
Quote from: jj2007 on June 05, 2016, 10:56:44 PM
To launch an idea how to implement it: Attached AllStructs.jjn, the source that creates it, and a reader for the jjn file (with comfortable search).
Basically, it collects all structures in \masm32\include, and formats them so that the members are clearly identified.
Example: the "x" in POINT reads CrLf, 32, x, 9, DWORD


:greenclp:I am  really appreciate you for helping me.And that tools you offered are very useful. :t :t :t
I hope that there are no grammer mistakes.Thanks A lot .
Title: Re: easy code ide can't show struct members?
Post by: buskysnow on June 06, 2016, 04:01:23 PM
Quote from: rsala on June 05, 2016, 07:09:49 PM
Hi buskysnow,

Welcome to the forum and thanks for using Easy Code.

The context help for struct members is not yet implemented. It is not an easy task and I do not know when I will be able to implement it.

Regards!

Thank you  for offering us such a good software.All i could do is just say thank you ... :t :t :t :t :t :t
Title: Re: easy code ide can't show struct members?
Post by: rsala on June 11, 2016, 04:51:27 AM
Thank you for your kind words about EC. I am really glad you like it.
:t