Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: pe file for thinbasic not possible?

  1. #1

    pe file for thinbasic not possible?

    hello. I have a general question belongs to technical site of programming.

    a) where I can find Infos about "bundling" a text file buffer ? How does it work or what's the background of it? Is there any link for it how thinbasic make this bundle exe file?

    b) why it's not possible to create a small exe/dll file with thinbasic? so far as I have understood "oxygen" module works for it and I thought there's no prevention or reason to involve this technique for thinbasic too, but I am asking, because I don't understand this technical site and background for thinbasic. perhaps somebody can talk about this topic or give some more infos, I am glad to see more about that one.

    bye, largo (stressy work at uni, there's rather not enough time at the moment for programming closer with thinbasic)

  2. #2
    thinBasic MVPs kryton9's Avatar
    Join Date
    Nov 2006
    Location
    Naples, Florida & Duluth, Georgia
    Age
    68
    Posts
    3,865
    Rep Power
    404
    You might want to look at the oxygen module for thinBasic. http://www.thinbasic.com/community/f...iler-Assembler

  3. #3
    thanks kent, I know this link. I've found a trick how to use/embedding #file "myscript.exe" for thinbasic working in relation with ui module, that I didn't know. I will study "oxygen" to understand more about creation of pe file, that's working with oxygenbasic too as I noticed yesterday night bye, largo

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

    in any case always remember that thinBasic is an interpreter while Oxygen is a compiler (JIT compiler and real compiler)
    Even when thinBasic creates executable, they are bundled executable. It means it is not real thinBasic code compiled but a bundled exe is a sort of ZIP file containing all the necessary files (thinBasic engine plus thinBasic module plus original script obfuscated) needed to execute your script into a machine where thinBasic is not installed.

    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

  5. #5
    thank you eros for infos!

    Even when thinBasic creates executable, they are bundled executable. It means it is not real thinBasic code compiled but a bundled exe is a sort of ZIP file containing all the necessary files (thinBasic engine plus thinBasic module plus original script obfuscated) needed to execute your script into a machine where thinBasic is not installed.
    do you have any link or content about this bundle.exe feature or where I can get more data about this zip file behaviour? Would be good to see more about it, thanks in advance. the mixing with oxygen/thinbasic is very interesting stuff for me. I will explore more around this topic. nice week!

    bye, largo

  6. #6
    Largo, i have done an experiment . making a bundled exe: file "ok.exe" without choosing to obfuscate the source.
    now when i run the "ok.exe" it inflates itself to a hidden files, to see it you must enable show hidden files in folder options (in win xp)


    and when i go to commnad prompt with dir/a command i got this:


    so the folder have all neccessary files to run the *.tbasic code (here it is tb10c.tbasic") without thinbasic installed. obfuscate code will prevent others from reading its content as a readable code.
    i haven't read how this is done but may be this link :
    http://en.wikipedia.org/wiki/Zlib usefull also read the articles about zlib
    i saw many zip files in the form of exe when you run it is decompressing to a folder.
    another possible example of bundling software is BAT to EXE, VBS to EXE Converter http://www.scriptcode.com/battoexe/
    zlib Home Site:
    http://zlib.net/
    http://www.winimage.com/zLibDll/index.html

  7. #7
    thinBasic MVPs kryton9's Avatar
    Join Date
    Nov 2006
    Location
    Naples, Florida & Duluth, Georgia
    Age
    68
    Posts
    3,865
    Rep Power
    404
    Zak, that is nice example and explanation of what is going on with bundling thanks. I will refer to this to refresh my memory time to time.

    This is the first post that I tried to promote to an article. I just noticed that option. I hope I did it correctly.
    Last edited by kryton9; 05-03-2012 at 21:23.

  8. #8
    thinBasic author ErosOlmi's Avatar
    Join Date
    Sep 2004
    Location
    Milan - Italy
    Age
    57
    Posts
    8,813
    Rep Power
    10
    Quote Originally Posted by kryton9 View Post
    This is the first post that I tried to promote to an article. I just noticed that option. I hope I did it correctly.
    Yes, it is a nice feature.
    When you ask to promote a post into an article, I receive a mail about your request.
    I than check the request and if feasible, I do it so posts are visible into http://www.thinbasic.com/community/content.php

    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

  9. #9
    thinBasic MVPs kryton9's Avatar
    Join Date
    Nov 2006
    Location
    Naples, Florida & Duluth, Georgia
    Age
    68
    Posts
    3,865
    Rep Power
    404
    Thanks Eros that is a very neat and useful option. Your explanation of how it works helps one feel at ease about using it. Thanks again!

  10. #10
    thanks Kent ,Eros. i forgot to add that in my windows xp, to see the inflated files we must:
    go to any folder, tools - folder option - view - then:
    1- check "show hidden files and folders
    2- uncheck "Hide protected operating system files"
    after the experiment reverse that.
    also suppose Eros change his plans and he hide the additional modules in deep subdirectoies, so to see them write in command prompt "dir/a/s" in wich s refer to subdirectories, a to all files 'hidden and others". remember the Dos days that is a glorious days. believe me i attend in the past a lessons just to see how they insert the 5.x inch floppy in their drives after that i buy an XT computer with the cpu 8088. with two 5.x floppies and of course without hard disk, (the 5 Mega byte hard drive was very expensive)

Page 1 of 2 12 LastLast

Similar Threads

  1. Next thinBasic: ZIP file handling
    By ErosOlmi in forum thinBasic vaporware
    Replies: 2
    Last Post: 29-01-2012, 19:56
  2. Do you know: file extensions (thinBasic)
    By ErosOlmi in forum Do you know ...
    Replies: 1
    Last Post: 28-04-2011, 11:21
  3. how to build an *.exe file with thinbasic?
    By Lionheart008 in forum Shout Box Area
    Replies: 6
    Last Post: 04-09-2008, 17:57
  4. Help us to improve thinBasic help file
    By ErosOlmi in forum Samples for help file
    Replies: 2
    Last Post: 25-05-2007, 18:16
  5. Thinbasic download as a zip-file possible?
    By Michael Hartlef in forum thinBasic General
    Replies: 3
    Last Post: 07-11-2006, 19:01

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
  •