ScriptBasic
May 22, 2012, 02:40:24 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: The ScriptBasic User, Developer and extension module guides are available at the WIKI.
 
   Home   Wiki Help Search Login Register  
Pages: [1]
  Print  
Author Topic: scribaw  (Read 405 times)
support
Administrator
*****
Posts: 409


« on: January 10, 2012, 08:09:47 PM »

Attached is a 32 bit version of ScriptBasic for Windows that doesn't create a console window. Works great with IUP based GUI programs.

If you want to create a standalone Windows GUI executable without compiling, use the following command like switches with scribaw.

scribaw -Eo myGUIapp.exe myGUIapp.sb

This appends the script to the end of a copy of scribaw which always checks for an attached script before running anything passed to it on the command line.

Another option for small standalone executable scripts is compiling them with C.

scribaw -Co myGUIapp.c myGUIapp.sb

This will create a .exe GUI program in the range of 50 to 100K  and use libscriba.dll for the runtime library.


* scribaw.zip (127.48 KB - downloaded 28 times.)
« Last Edit: January 10, 2012, 08:40:32 PM by support » Logged
support
Administrator
*****
Posts: 409


« Reply #1 on: January 11, 2012, 12:41:53 PM »

I noticed that scribaw.exe with the current iup.dll wasn't allowing the XP theme to work. Since the ScriptBasic interpreter is now a true windows program (not a console application) the responsibility of theme suport seems to have shifted to the interpreter. If you add the following manifest file to where you have scribaw.exe located, theme support should work again. I'm working in getting this linked in as a resource and eliminate the manifest file all together.

Code:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<assemblyIdentity
    version="3.0.0.0"
    processorArchitecture="x86"
    name="IupApp"
    type="win32"
/>
<description>Iup Application</description>
<dependency>
    <dependentAssembly>
        <assemblyIdentity
            type="win32"
            name="Microsoft.Windows.Common-Controls"
            version="6.0.0.0"
            processorArchitecture="x86"
            publicKeyToken="6595b64144ccf1df"
            language="*"
        />
    </dependentAssembly>
</dependency>
</assembly>

Save the file as scribaw.exe.manifest.
Logged
support
Administrator
*****
Posts: 409


« Reply #2 on: January 11, 2012, 01:41:19 PM »

The attached zip contains scribaw.exe the has the manifest resource linked in. (no need for the scribaw.exe.manifest file any longer)

This actually worked out pretty well. I can use scriba.exe (console version) for development and debugging and scribaw.exe for running the completed application.

It would great if someone can give this a try on Windows 7. I only have XP SP3 in a VirtualBox under Linux. A screen shot of any of the example code I posted would be a big plus.


* scribaw.zip (136.93 KB - downloaded 33 times.)
« Last Edit: January 11, 2012, 05:44:23 PM by support » Logged
support
Administrator
*****
Posts: 409


« Reply #3 on: January 12, 2012, 08:49:30 PM »

Wow, not one download. I would have thought that the ScriptBasic IUP binding for Windows would have generated some interest in the project.

If someone knows of a easier way to create cross platform GUI applications using a single source tree, please let me know. (32/64 bit support preferred) I must be the only person left that hasn't figured out what everyone else is using.  Undecided
 



Logged
RONB
Newbie
*
Posts: 35


« Reply #4 on: January 13, 2012, 12:33:39 AM »

I tried it out and it works perfectly. I am using windows XPSP3. I think most people are afraid of DOS these days so having APP's run without a hint of DOS is a big plus. Thanks again for all your work it is really appreciated. One question, does iup.dll have to be distributed with the app?
Logged
support
Administrator
*****
Posts: 409


« Reply #5 on: January 13, 2012, 12:42:45 AM »

If you use the -Eo option and make a .exe of your application, the iup.dll (SB version) is the only other dependency you have.

Thanks for testing ScriptBasic and providing your feedback. Your request initiated the true Windows version (not a console application) of ScriptBasic.


 
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!