Creating a Hello World with ATEasy DLL

Aaron R.
Tucson, AZ

Mar 2, 2011
9 Posts

0  |  0  

Re: Creating a Hello World with ATEasy DLL

I'd like to know how to create a hello world application that invokes the ATEasy runtime engine.

So in pseudo code in a cpp file I'd have:

int main(int c, char *v[])
{
   // Do other things: map RAM, open files, etc

   // Start ATEasy runtime
   // Pass it script to run

  // Clean up non ATEasy classes, files, etc

   return 0;
}

Is this possible?  I assume I'd have to convert the ATEasy script into a dlg file (the byte code?) via your compiler.

Victor B.
Lake Forest, CA

Mar 2, 2011
93 Posts

0  |  0  

Re: Creating a Hello World with ATEasy DLL

Hi Aaron,

What are you trying to do with the script:  are you trying to access the Task/Test objects of ATEasy?  Access the GUI creation features?

Regards,
Victor Brode

Aaron R.
Tucson, AZ

Mar 3, 2011
9 Posts

0  |  0  

Re: Creating a Hello World with ATEasy DLL

Thanks for asking.

I'm trying to see in what ways we could incorporate ATEasy as part of a larger system.  So for arguments sake, I'll say at minimum I'd want to be able to invoke a test from main().  The test would not have any gui elements or user interaction required.

Victor B.
Lake Forest, CA

Mar 7, 2011
93 Posts

0  |  0  

Re: Creating a Hello World with ATEasy DLL

Hi Aaron,

ATEasy projects can be compiled to both EXE and to DLL.  Both of these formats can be accessed from other development environments.

If you are planning to create a DLL project in ATEasy from scratch, there is a guide included in the ATEasy Help.  Access the help by opening ATEasy and pressing F1 or opening 'ATEasy.chm' which is installed in 'Program Files/ATEasy/Help'.  The quick-start article you want is entitled "Creating ATEasy DLL Project".

After creating the procedures that you would like to export to your DLL, you can use View in Text Format to print out your DLL information in a human-readable format .  To access text format, click on the ATEasy Module where you have created your DLL procedure and use one of the following two menu bar items: 'File | View in Text Format...' for a read-only version or 'File | Edit in Text Format...' for an editable version.  The Copy function will be available either way.  Once the text window is open, you can navigate to the "Procedures" section of the document to view the function listing which can be used a quick reference for linking to your DLL procedures in Visual C++ since it provides all of the function names and parameters needed.

If you need any more help with trying this out, feel free to ask.

Regards,
Victor Brode



Please Note
You need to have a M@GIC account to participate in the Forums.
Not yet registered on our website? Click here to register today!

All content, information and opinions presented on the Marvin Test Solutions User Forums are those of the authors of the posts and messages and not Marvin Test Solutions'. All attachments and files are downloaded at your own risk. [Read More]