Page 2 of 2 FirstFirst 12
Results 11 to 14 of 14

Thread: DIR_GetCurrent behaves different with a bundled EXE

  1. #11
    thinBasic MVPs kryton9's Avatar
    Join Date
    Nov 2006
    Location
    Naples, Florida & Duluth, Georgia
    Age
    67
    Posts
    3,869
    Rep Power
    404

    Re: DIR_GetCurrent behaves different with a bundled EXE

    Not to get off subject, but I don't know if you guys had a chance to watch that .net video on 3dbuzz. They explain things that make .net pretty appealing.
    Main things if you don't have time to watch the video.

    .net allows:

    Cross platform development
    Cross language development both for physical devices and the internet
    The IL has to meet a specification and if a part of it doesn't meet it, the code still runs, just the parts that don't meet specs give an error message.
    A good example is that C# and C++ are case sensitive. The specification says things need to be case sensitive. But if you are in VisualBasic.net, case as in most basic's is not case sensitive. You can use any funtion in an executable or dll, but if there are 2 functions in c++, test and Test, these 2 are 2 different functions in c++, but to VB it is one..so if you try to call this from VB it won't know which to call and give an error message or warning, but the other functions that meet the specification are still usable.
    Logan the main coder there is a big Delphi fan, I think he has mentioned it is his favorite language although he is a wizard of many languages.

    Now there are over 20 languages that can run in .net, so it is pretty amazing when you see the problems Microsoft faced and how they solved them.

    Anyways, Michaels port to Pascal is very important I think. I really do believe thinBasic will have to move away from powerbasic unless major changes are made to powerbasic. My opinion of course, but the future is portability and will just get more so with each passing year.

    Mike, this is a very ambitious project but very worthwhile, even just to test out ideas and see where bottlenecks would be for possible future switch.
    Good luck!
    Acer Notebook: Win 10 Home 64 Bit, Core i7-4702MQ @ 2.2Ghz, 12 GB RAM, nVidia GTX 760M and Intel HD 4600
    Raspberry Pi 3: Raspbian OS use for Home Samba Server and Test HTTP Server

  2. #12

    Re: DIR_GetCurrent behaves different with a bundled EXE

    Kent, when you say cross platform development, to you mean MONO? As I heard, it isn't 100% compatible. Well, imho if something isn't compatible it isn't much useful for cross platform development.

    Why move away from powerbasic?

  3. #13
    thinBasic MVPs kryton9's Avatar
    Join Date
    Nov 2006
    Location
    Naples, Florida & Duluth, Georgia
    Age
    67
    Posts
    3,869
    Rep Power
    404

    Re: DIR_GetCurrent behaves different with a bundled EXE

    Mike, yes mono on linux, but also handheld os's that support .net and even the mac os.

    There are 3 options, that I know of, there maybe more, and I would like to know about them-- if so?
    Java
    .Net and its forms like mono
    and free pascal

    I think any of the above or another unkown alternative offer a longer future and more adoption.
    This is just my opinion of course.

    I never thought Java would be as big as it got so my opinion is wrong many times, but I still have them
    I also thought .net was lame, but now that I understand about what Microsoft faced and how it chose to solve the big problem, it is pretty impressive.
    free pascal is neat and although pascal has been around a long time and has a very nice hard core base, I don't know if it will ever get the recognition it deserves.



    Acer Notebook: Win 10 Home 64 Bit, Core i7-4702MQ @ 2.2Ghz, 12 GB RAM, nVidia GTX 760M and Intel HD 4600
    Raspberry Pi 3: Raspbian OS use for Home Samba Server and Test HTTP Server

  4. #14
    thinBasic author ErosOlmi's Avatar
    Join Date
    Sep 2004
    Location
    Milan - Italy
    Age
    57
    Posts
    8,777
    Rep Power
    10

    Re: DIR_GetCurrent behaves different with a bundled EXE

    Quote Originally Posted by Michael Hartlef
    I noticed that DIR_GetCurrent will return the main folder of the bundled EXE's drive instead of the folder of the EXE thta it return when you start a script from within thinAIR or by double clicking on it in the explorer.
    Hi Michael.

    Personally I've nevel loved DIR_GetCurrent or other similar functions because the current directory can be changed by hosting process (for example thinAir that execute a script) or child process (for example a shelled process executed by the script).

    So my suggestion is to follow Petr indication and use the APP_... functions to return a full script path and possibly work with paths relative to the script position.

    Instead, if you have some ideas about a more specific function that returns some other dir, let me know.

    Ciao
    Eros
    www.thinbasic.com | www.thinbasic.com/community/ | help.thinbasic.com
    Windows 10 Pro for Workstations 64bit - 32 GB - Intel(R) Xeon(R) W-10855M CPU @ 2.80GHz - NVIDIA Quadro RTX 3000

Page 2 of 2 FirstFirst 12

Similar Threads

  1. Bundled exe and command line
    By ErosOlmi in forum thinBundle suggest new features
    Replies: 5
    Last Post: 21-02-2007, 14:04

Members who have read this thread: 0

There are no members to list at the moment.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •