How to build Hello World example with Livecode 5.0.2
Posted: Sun Feb 26, 2012 9:45 pm
I attempted to build the "hello world" example from the newsletter articles in Livecode 5.0.2 on Windows 7 using Microsoft Visual C++ 2010 Express. Quite a few steps seem to have changed from the time the article was written. I thought it would be helpful to document the steps I needed to take to make it work.
Downloaded the sample files, followed the directions in the tutorial here:
http://revmedia.runrev.com/developers/l ... ls-part-1/
"External Creator V3.rev" still works, but opening "rnahello.vcproj" generates messages saying the project needs to be converted. I did that. Then I added the initial source code examples. The #include statements in the tutorial are blank in the tutorial, so I used the following:
#include <cstdlib>
#include <cstdio>
#include <cstring>
I corrected this:
#include <revolution/external.h>
to this:
#include <C:\Users\zigraphix\Documents\livecode\ExternalsEnvironmentV3\libexternal\src\external.h>
I also needed to make changes in the environment in VisualC++ to launch Livecode, rather than trying to launch the dll directly:
Clicked the Debug green triangle, got this:
Clicked yes. Livecode launched. Made edits to rnahellotest as described in tutorial. Also needed to manually add dll to stack:
Once I had completed these steps, I was able to put some text in the "Name" field and click the button, and get a popup with "Hello, *" where * is the content typed into the Name field.
I hope this helps someone.
Downloaded the sample files, followed the directions in the tutorial here:
http://revmedia.runrev.com/developers/l ... ls-part-1/
"External Creator V3.rev" still works, but opening "rnahello.vcproj" generates messages saying the project needs to be converted. I did that. Then I added the initial source code examples. The #include statements in the tutorial are blank in the tutorial, so I used the following:
#include <cstdlib>
#include <cstdio>
#include <cstring>
I corrected this:
#include <revolution/external.h>
to this:
#include <C:\Users\zigraphix\Documents\livecode\ExternalsEnvironmentV3\libexternal\src\external.h>
I also needed to make changes in the environment in VisualC++ to launch Livecode, rather than trying to launch the dll directly:
Clicked the Debug green triangle, got this:
Clicked yes. Livecode launched. Made edits to rnahellotest as described in tutorial. Also needed to manually add dll to stack:
Once I had completed these steps, I was able to put some text in the "Name" field and click the button, and get a popup with "Hello, *" where * is the content typed into the Name field.
I hope this helps someone.