ScriptBasic
May 20, 2013, 01:20:09 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 [2]
  Print  
Author Topic: Embedding into application  (Read 5459 times)
support
Administrator
*****
Posts: 543



WWW
« Reply #15 on: August 06, 2010, 12:55:37 AM »

I think Peter Verhas showed you an example above of creating a string from an array that you could unpack from your C program.

Logged

ScriptBasic Project Manager
Zulfi.Ali
Newbie
*
Posts: 12


« Reply #16 on: August 06, 2010, 01:25:06 AM »

The example he provided uses unpack inside ScriptBasic... however, my problem right now is how to pack it from my C code so that it can be unpacked inside ScriptBasic (i need the structure of the string array)... I will be passing the array into ScriptBasic
Logged
support
Administrator
*****
Posts: 543



WWW
« Reply #17 on: August 06, 2010, 01:44:42 AM »

I would pass your embedded script a delimited string of values and use SPLITA() to create your array from the delimited string in your running script.

Logged

ScriptBasic Project Manager
Zulfi.Ali
Newbie
*
Posts: 12


« Reply #18 on: August 06, 2010, 01:57:24 AM »

Thanks!!

This solves my problem... phew!!
Logged
support
Administrator
*****
Posts: 543



WWW
« Reply #19 on: August 09, 2010, 01:40:55 AM »

When you get your project working, it would be great if you can say a few word about your experience with embedding ScriptBasic in your application. Any tips or tricks you can offer would be appreciated.
Logged

ScriptBasic Project Manager
Pages: 1 [2]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!