Página 1 de 1

How To Create A dll File With Lua ?

Publicado: 13 May 2011 06:39
por ahmed elsayed
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.

Re: How To Create A dll File With Lua ?

Publicado: 13 May 2011 09:17
por Ceone
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

Re: How To Create A dll File With Lua ?

Publicado: 13 May 2011 13:16
por patch
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

Re: How To Create A dll File With Lua ?

Publicado: 13 May 2011 17:55
por ahmed elsayed
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

Re: How To Create A dll File With Lua ?

Publicado: 14 May 2011 06:53
por ahmed elsayed
Please Ineed To Help !

Re: How To Create A dll File With Lua ?

Publicado: 14 May 2011 11:52
por patch
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.

Re: How To Create A dll File With Lua ?

Publicado: 14 May 2011 13:15
por rafaxplayer
ahmed elsayed escribió:Please Ineed To Help !
http://www.amsspecialist.info/viewtopic.php?f=27&t=527

Re: How To Create A dll File With Lua ?

Publicado: 14 May 2011 16:43
por Pabloko
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 ;)

Re: How To Create A dll File With Lua ?

Publicado: 15 May 2011 17:36
por ahmed elsayed
thank you Ceone,patch,rafaxplayer,Pabloko For help me for create a .dll file