flat assembler
Message board for the users of flat assembler.
Index
> IDE Development > Fresh Programmer's Guide issues Goto page Previous 1, 2 |
Author |
|
JohnFound 27 Jan 2004, 22:00
Hi Decard.
Really impressive work. I implemented it and it works good at least in Win98. I only don't like this variable hFreshDirectory and the way you set it's via "GetCurrendDir". There are better variants. I suggest you two: 1. Use another line in [Environment] section of Fresh.ini (for example: "FreshDoc") and to use "%FreshDoc%/freshguide.chm" as file name. Then you have to pass this name to ConvertPath function (it is in Fasm.asm file) - it will return handle to string with full path name to the file. (Don't forget to delete it.) 2. Leave this variant, but move everything related in help.asm and create the full path/file name of the freshguide.chm in InitHelp procedure, using not GetCurrentDir, but GetModuleFileName the same way as hApplication window ( include/libs/application.asm - WM_CREATE handler) when it gets the name of Fresh INI file. Also, I think that in the future, we have to add Privalovs documentation about FASM syntax to your chm file to allow help on the FASM keywords too. Regards. |
|||
27 Jan 2004, 22:00 |
|
decard 27 Jan 2004, 22:11
OK, I'll follow variant #2.
But why don't you want to have a global variable containing Fresh directory? It would be useful in future - for example to access directory with templates... regards |
|||
27 Jan 2004, 22:11 |
|
JohnFound 27 Jan 2004, 22:20
decard wrote: But why don't you want to have a global variable containing Fresh directory? Well, IMHO it is not flexible enough. It ties the help file to the executable location and it is not very good. For example, when I work on Fresh, I compile it in the directory "source" and first I run it from this directory. But in "source" your help don't work. I have to make second copy of freshguide.chm in "source/doc/" to make it work. BTW: I think that seting environment variables have another problems, but it will be fixed later. Regards. |
|||
27 Jan 2004, 22:20 |
|
JohnFound 27 Jan 2004, 22:29
JohnFound wrote: Also, I think that in the future, we have to add Privalovs documentation about FASM syntax to your chm file to allow help on the FASM keywords too. BTW: I just remember, there is a port of FASM docs to CHM, made by IceStudent, maybe you have to contact him, and simply add his file to yours. Regards. |
|||
27 Jan 2004, 22:29 |
|
decard 27 Jan 2004, 23:04
JohnFound wrote: It ties the help file to the executable location and it is not very good. Both solutions have their advantages and disadvantages. I don't like to make user set one more variable in fresh.inc. And proably "ordinary" Fresh users will almost always run our IDE from its main directory. So I will make it this way: I will check fresh.ini for %freshdoc% variable, and if it won't exist, I will look for it in main Fresh directory. JohnFound wrote: Also, I think that in the future, we have to add Privalovs documentation about FASM syntax to your chm file to allow help on the FASM keywords too. Yeah, but first I must think about the way how to do it. Now I would like to make some better (commented!!!) examples, and make some corrections in existing Guide. Also, I want the help system to display help even when user selects some assembler instruction, but I would have to add each instruction to keyword file manually . |
|||
27 Jan 2004, 23:04 |
|
JohnFound 27 Jan 2004, 23:16
decard wrote: I will check fresh.ini for %freshdoc% variable, and if it won't exist, I will look for it in main Fresh directory. That is exactly what we need. Good approach. BTW: You still can try "ConvertPath" for this. It checks Fresh.ini AND also environment, the same way as FASM compiler. Regards |
|||
27 Jan 2004, 23:16 |
|
decard 28 Jan 2004, 20:49
I made the changes that we were talking about. Also, this required some changes in StrLib - I'm attaching new version here.
regards outdated attachement removed. Last edited by decard on 03 Feb 2004, 17:38; edited 1 time in total |
|||
28 Jan 2004, 20:49 |
|
decard 03 Feb 2004, 17:37
New version of the Fresh Guide here. I included FASM manual, but I still have a lot of work on keyword list. However, some of FASM directives are already added, so you can have a contex help when you point for example "virtual" directive
regards [edit]outdated attachment removed[/edit] Last edited by decard on 18 May 2004, 20:07; edited 1 time in total |
|||
03 Feb 2004, 17:37 |
|
JohnFound 03 Feb 2004, 17:49
Great!
|
|||
03 Feb 2004, 17:49 |
|
Goto page Previous 1, 2 < Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.