Now my family calls me to leave, but never mind to be late if so I can respond and hope to do well to make it clear.
I don't know how you have called the Call_IDE in prompt command but I believe this probably happened because you ran Call_IDE on the command line where Call_IDE is stored (#1).PRG and HBP created but in the folder Call_IDE
If you are calling the Call_IDE <Name_of_Project> and if you did it without mentioning the full path where the project must be created then it will creates at current folder.
Additional notes:
#1. Where Call_IDE is placed, is not the best place to create your projects as you said yourself. Note that the Call_IDE Setup screen has a CheckBox that says "Make this program executable from everywhere (Prompt and Explorer)". This means that when be selected and confirmed, Call_IDE can be called from any folder (is in the PATH). More precisely it creates a file in the System32 folder of your Windows which allows you to be called from anywhere.
Call_IDE already does this. It checks whether the full_path + project_name has been informed in the parameter and then creates it in the right place and right name.this should adjusted to a specific dirve/path/folder.
IMHO, all our projects must be stored in exclusive folder, according its functionality.What is the best place (folder) in order to get working right
The Call_IDE application must be in one place only. As I said before, it should be in a unique folder stored in a place of exclusive use or shared with other utilities (utilities with common support). In my case, I keep it in the folder together with the ViewError app where I have them in a folder named C:\HMGTools. But certainly the Call_IDE app does not have to be in the same folder where the new project will be created.
In my opinion, create a new project folder, it would be up to the user to do it manually. For two reasons:So if the <param> from call_id <param> doesn't exist as a folder please create it too.
- The purpose of Call_IDE is not to create the folder. Although I could even help when it does not exist. But this requires some care. Imagine that the user mistakenly calls Call_IDE several times and it creates new folders. Many times the user will get lost. Maybe not you but some unsuspecting users yes.
- Create Project Folders Sometimes the user chooses to open them in restricted access places. I have seen users opening in the "My Documents" folder. This would require access rights as an administrator and requires extra care.
- The purpose of Call_IDE is not to create the folder. Although I could even help when it does not exist. But this requires some care. Imagine that the user mistakenly calls Call_IDE several times and it creates new folders. Many times the user will get lost. Maybe not you but some unsuspecting users yes.
Not thru by INI file. It already has a template file and in PRG format and it is saved where Call_IDE is stored. The template file is named: Template.prg and it is created, modified or deleted according to your confirmation on the second screen called "Preferences".Can this generated code made from a INI file? I need in almost any project the following:Code: Select all
SET DATE FRENCH SET CENT ON SET DEFAULT TO .... SET PATH TO ... SET TOOLTIPBACKCOLOR { 193, 224, 255} SET TOOLTIPSTYLE BALLOON SET LANGUAGE TO FRENCH hb_setcodepage("FRWIN") etc...
There you can certainly edit and add the DEFAULT settings you want to have in future files generated by the application.
I thank Serge for your feedback, because your doubts may be the same as any others may have and so we have clarified everything for the rest and for future use.
By the way (thanks to you) I noticed that even putting the full path, is not creating the project as it should in the right way and is not creating at all.
I noticed that when we put the project parameter, there comes a screen like this (OptionBox):
And when the user presses ENTER, in that menu (RadioGroup) it would be returning zero wrong. I already corrected. This is because cRet was missing as an argument in the FUNCTION OptionBox_Ok (nRet).
Best regards,