Author Topic: easy code ide can't show struct members?  (Read 1763 times)

buskysnow

  • Regular Member
  • *
  • Posts: 4
easy code ide can't show struct members?
« 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?

jj2007

  • Member
  • *****
  • Posts: 7662
  • Assembler is fun ;-)
    • MasmBasic
Re: easy code ide can't show struct members?
« Reply #1 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:

Code: [Select]
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?

buskysnow

  • Regular Member
  • *
  • Posts: 4
Re: easy code ide can't show struct members?
« Reply #2 on: June 04, 2016, 07:47:48 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:

Code: [Select]
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 !

jj2007

  • Member
  • *****
  • Posts: 7662
  • Assembler is fun ;-)
    • MasmBasic
Re: easy code ide can't show struct members?
« Reply #3 on: June 04, 2016, 11:02:16 PM »
Could you write a simple but complete code for me? Thanks a lot !

There is plenty of code in \Masm32\Examples\*.asm - enjoy :t

rsala

  • Moderator
  • Member
  • *****
  • Posts: 243
    • Easy Code
Re: easy code ide can't show struct members?
« Reply #4 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!
EC coder

jj2007

  • Member
  • *****
  • Posts: 7662
  • Assembler is fun ;-)
    • MasmBasic
Re: easy code ide can't show struct members?
« Reply #5 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

Code: [Select]
@=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

buskysnow

  • Regular Member
  • *
  • Posts: 4
Re: easy code ide can't show struct members?
« Reply #6 on: June 06, 2016, 03:51:52 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 .

buskysnow

  • Regular Member
  • *
  • Posts: 4
Re: easy code ide can't show struct members?
« Reply #7 on: June 06, 2016, 04:01:23 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

rsala

  • Moderator
  • Member
  • *****
  • Posts: 243
    • Easy Code
Re: easy code ide can't show struct members?
« Reply #8 on: June 11, 2016, 04:51:27 AM »
Thank you for your kind words about EC. I am really glad you like it.
 :t
EC coder