The Daily Click ::. Forums ::. Klik Coding Help ::. SubApp build problem...
 

Post Reply  Post Oekaki 
 

Posted By Message

Hagar

Administrator
Old klik fart

Registered
  20/02/2002
Points
  1692

You've Been Circy'd!Teddy Bear
25th May, 2014 at 25/05/2014 22:31:35 -

I tried asking this on the CT forums as I thought it was some funky MMF2 problem but the CT community seems to be deader than A-line flares with pockets in the knees.

Anyway, I am currently in the process of reworking a GUI I made (which uses the chart, INI++ 1.5, binary and DLL extensions) to use sub applications, which so far is working great (i.e. F8/run application). The MFA interfaces with a threaded DLL I have written to display data in real time via the chart extension. So far all is good and the use of subapps makes the experience far more "windows" like.

However, when I try to build the application (with include external files ticked), I get "error while opening file" anytime I try to start the subapps in the built application. Is there some magic trick to get this thing to build and work?

Attached is what I am trying to do. Any help would be gladly appreciated, as I wish to distribute this software to other researchers and subapps has made the experience for more friendly. I could re-write it to use INI files to share data between applications, but this is already working.

I am hoping it is just me being a ham-fisted cranky old klikker!

Here is the example:

http://rwnlabs.co.uk/tdc/mwesupabb.zip

Cheers,
Rich.

 
n/a

UrbanMonk

BRING BACK MITCH

Registered
  07/07/2008
Points
  49667

Has Donated, Thank You!Little Pirate!ARGH SignKliktober Special Award TagPicture Me This Round 33 Winner!The Outlaw!VIP MemberHasslevania 2!I am an April FoolKitty
Picture Me This Round 32 Winner!Picture Me This Round 42 Winner!Picture Me This Round 44 Winner!Picture Me This Round 53 Winner!
26th May, 2014 at 26/05/2014 05:34:47 -

Alright. First you have to compile the subapp into a CCN file.

Go into the main.mfa and remove the filename from the subapp.

Add the CCN to the binary data tab from the "data elements" window.

Then click on the filepath in the binary data list until it let's you rename it. Copy the full path.

Add the following code to your project:

Start of Frame
-Extract binary data "Full path you copied earlier"
-Set SubApp Application BinFileTempName$("Full path you copied earlier")

Compile. Done.
Your subapp is now included in the EXE.

Here is a link with the MFA's and the final exe built.
You might have to change the binary path to match your system in order to compile (For some reason they don't use relative paths.)

Paste in your address bar:
https://mega.co.nz/#!J8oT1TaK!St45QNB4Oqy2Y5sl3CKW1054L4-Qjqtcgs641UxeGLA

Edited by UrbanMonk

 
n/a

Hagar

Administrator
Old klik fart

Registered
  20/02/2002
Points
  1692

You've Been Circy'd!Teddy Bear
26th May, 2014 at 26/05/2014 14:54:06 -

Many, many thanks. Will be trying this out shortly, will let you know

 
n/a

UrbanMonk

BRING BACK MITCH

Registered
  07/07/2008
Points
  49667

Has Donated, Thank You!Little Pirate!ARGH SignKliktober Special Award TagPicture Me This Round 33 Winner!The Outlaw!VIP MemberHasslevania 2!I am an April FoolKitty
Picture Me This Round 32 Winner!Picture Me This Round 42 Winner!Picture Me This Round 44 Winner!Picture Me This Round 53 Winner!
26th May, 2014 at 26/05/2014 16:50:35 -

I've actually never handled subapps outside of the same MFA before, so really I recommend just adding a new frame for it.

The method I just described above can be used for any external data though, so it was my first guess at embedding the subapp.
I included the compiled EXE so you can see for yourself. IF it doesn't work you might want to download the latest beta.

 
n/a
   

Post Reply



 



Advertisement

Worth A Click