Help with external

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
bloodwalker
Posts: 3
Joined: Thu Nov 03, 2011 10:56 pm

Help with external

Post by bloodwalker » Thu Nov 03, 2011 11:04 pm

Hello everyone.

I am new with LiveCode, My last time with this environment was when it was Called Revolution Studio 4. My job at my company is to create externals to this platform and do test projects to show the external functionality and features. Up until Revolution Studio or Enterprise everyone was working fine.

That was until the switch to LiveCode.

For some reason the same externals work just fine while I test the application on the IDE, however, when the Windows standalone is built, the external does not work at all. I have tested and yes, it uses the external as it should, but the program or external just doesn't work as it does in the IDE. This works just fine when the standalone application is done on Revolution Studio 3 or 4, but on LiveCode 5 it doesn't.

Please help

Thanks

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Re: Help with external

Post by Mark » Fri Nov 04, 2011 12:42 am

Hi,

Maybe this will help. Lots of things have changed.

Kind regards,

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

bloodwalker
Posts: 3
Joined: Thu Nov 03, 2011 10:56 pm

Re: Help with external

Post by bloodwalker » Fri Nov 04, 2011 3:28 am

Hello, I tried the link but it's the same documentation I have with 4.0. I am sorry, but I see no changes from RunRev 4.0 to Livecode

AndyP
Posts: 634
Joined: Wed Aug 27, 2008 12:57 pm
Contact:

Re: Help with external

Post by AndyP » Fri Nov 04, 2011 9:11 am

Hi, maybe this will help, from V5 release notes.


IDE Changes
Getting folder locations within the IDE
If you write plugins, or have code that relies on the location of IDE files then please ensure you use
the following access functions to locate them:
revEnvironmentToolsPath() The location containing the main IDE files.
revEnvironmentToolsetPath() The location of the main IDE stacks.
revEnvironmentExternalsPath() The location of the externals that come with the IDE.
revEnvironmentPluginsPath() The location of the plugins that come with the IDE.
revEnvironmentRuntimePath() The location of the standalones that come with the IDE.
revEnvironmentDocumentationPath() The location of the documentation files.
revEnvironmentResourcesPath() The location of the resources that come with the IDE.
revEnvironmentCustomizationPath() The location of the IDE customization folder.
revEnvironmentUserCachePath() The location of the folder to use for caching files.
revEnvironmentUserPreferencesPath() The location of the folder to use for preference files.
revEnvironmentUserExternalsPath() The location of the folder to use for additional externals.
revEnvironmentUserPluginsPath() The location of the folder to use for additional plugins.
revEnvironmentUserResourcesPath() The location of the folder to use for additional resources.

Important: Third-party IDE extensions must avoid placing any files inside the application
bundle or under revEnvironmentToolsPath() (not least because you will probably not have
privileges to do so!). Instead, they should use the user-externals and user-plugins paths as
provided. These paths are determined by the user's customization path setting, configurable
in the preferences.
Andy .... LC CLASSIC ROCKS!

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Re: Help with external

Post by Mark » Fri Nov 11, 2011 10:39 am

Hi,

Can you be more specific about which features of your external don't work?

Kind regards,

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

bloodwalker
Posts: 3
Joined: Thu Nov 03, 2011 10:56 pm

Re: Help with external

Post by bloodwalker » Sat Nov 12, 2011 1:15 am

Hello

I found another thing that is confusing:

my External has six functions, In RunRev everything works fine. But in LiveCode only three of these functions can be accesible on the Windows Standalone.

- If I change the order of the functions inside Visual studio (where I compile the external), some function that work now they don't and viceversa.
- If I add too many accesses to my functions in LiveCode, none work on standalone.

I wish there were a new version of the SDK because I follow all instructions.

my external is on My Doccuments\My LiveCode\Externals and for runtime is in My Documents\My LiveCode\Runtime\Windows\x86-32\Externals

mwieder
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3581
Joined: Mon Jan 22, 2007 7:36 am
Contact:

Re: Help with external

Post by mwieder » Sat Nov 12, 2011 6:25 am

What happens when you do these (in your stack or in the standalone)?

Code: Select all

put the externalFunctions of this stack
put the externalCommands of this stack
put the externalPackages of this stack
put the externals of this stack
What version of Visual Studio are you using?
How (and when) are you setting the external library linkage?

Post Reply