How To Create A dll File With Lua ?

This english section.
hello, Iam Ahmed Elsayed, From EGYPT
i want To create .dll file Using AMS, (Make lua function Into .dll file)
Such as C#, (this Can Create .dll File and Call Function using Another Program)
Is The AMS Able to create .dll file
I need To help
I Wait the reply.
hio Ahmed, rafaxplayer is working in make a dll with lua soport is that u refere...?

using System;
using System.Collections.Generic;
using System.Text;
using RGiesecke.DllExport;

namespace luaToDll
{
internal static class UnmanagedExports
{
[DllExport("LuaToDll", CallingConvention = System.Runtime.InteropServices.CallingConvention.StdCall)]
static string LuaToDll()
{
string luastr = @"Dialog.Message('','Hello Wolrd');";
return luastr;
}
}
}


http://www.amsspecialist.info/viewtopic.php?f=27&t=609
No I think hes wanting to make a lua dll you know all the functions of his lua in to a dll I think thats what hes wanting
First : Thanks Ceone for trying to help me !

secondly :
patch escribió:No I think hes wanting to make a lua dll you know all the functions of his lua in to a dll I think thats what hes wanting
:lol:
yes I want to do this
Please Ineed To Help !
Well this would not make a real DLL but you could put all your functions in a .lua full rename it to .dll and use dofile(FILENAME) on a button or even global to load your functions in to the app so you just update the file if any function updates.
ahmed elsayed escribió:Please Ineed To Help !
http://www.amsspecialist.info/viewtopic.php?f=27&t=527
i've posted a full example previously a sample to do dlls in c++ http://www.amsspecialist.info/viewtopic ... ingw#p2692, and a posted a lua+dll sample on shit forum http://www.indigorose.com/forums/thread ... g-C-in-Lua that should do your need just using luaL_dostring("lua code.........");

take a look

next week i'm in cairo, egypt ;)
thank you Ceone,patch,rafaxplayer,Pabloko For help me for create a .dll file