Page 1 of 1

Configuring source code editor (text editor) in IDE

Posted: Thu Jan 12, 2017 8:36 pm
by Pablo César
Hi Claudio,

When the IDE is run for the first time after the new release of HMG, it incorrectly shows the path as shown by the captured screen:
 
Image
 
This problem has been reported in this topic and I have not gotten a response from you.

I found this HMG_GetFileAssociatedWithExtension C function in HMG core and I believe it was also used the same function in the IDE.
By the way, I liked much your function for this propose, many thanks. :)

So I've implemented this function in my new project and I have saw that returns "C:\Windows\system32\shell32.dll" when it does not have any application associated with a particular file extension.

I humbly urge you to change the function so that could it returns "" instead of "C:\Windows\system32\shell32.dll" or maybe could be handled this return from within the IDE. Doing something like this:
 

Code: Select all

If "SHELL32.DLL" $ HMG_Upper(cRet)
    cRet: = ""
Endif
 
FYG: this bad return comes from Windows7 but in XP it returns "" (empty string).

Rgds

Re: Configuring source code editor (text editor) in IDE

Posted: Thu Jan 12, 2017 11:08 pm
by srvet_claudio
Thanks for the info

Configuring source code editor (text editor) in IDE

Posted: Thu Jan 12, 2017 11:34 pm
by Pablo César
Prego !
 
8.png
8.png (1.42 KiB) Viewed 2768 times
 
Infinito :)
 
Sorry. Not wanting to make any allusion.
I just saw this now and wished to share...
 
 
"A person with increasing knowledge and sensory education may derive infinite enjoyment..."
Not complete phrase from Ernest Hemingway

Re: Configuring source code editor (text editor) in IDE

Posted: Fri Jan 13, 2017 4:16 am
by bpd2000
Thx for sharing

Re: Configuring source code editor (text editor) in IDE

Posted: Fri Jan 13, 2017 8:28 am
by serge_girard
Thx Pablo !
Serge