April White wrote:
Elsass Philippe wrote:

In Lua you can load custom Dlls using loadlib().
However, to have fully functionnal Dlls I had to modify SciTE to
export the Lua API.


I'm by no means an expert on Borland's compiler, but I looked at the compiler switches used to create scite and those on the wiki site.

The wiki has:
bcc32 -w -tWD -I..\scite\lua\include -DLUA_API=__declspec(dllimport) ..\scite\bin\SciTE.lib mydll.c
where as scite.mak has:
   CCFLAGS=-tWM -w -RT- -x- -v- -w-aus -w-sig

What are the differences, especially in the -tWD and -tWM? Would there be any impact on the resulting mydll.dll?

I don't know anything about the differences but here are the compiler switches in question:

-tW, "Make the target a Windows .EXE with all functions exportable. (Default)"
-tWC, "Make the target a console .EXE."
-tWD, "Make the target a Windows .DLL with all functions exportable."
-tWM, "Make a multithreaded application or DLL."
-tWR, "Target uses the dynamic runtime lib. Can use -D_RTLDLL instead."
-tWCR, "Target uses the dynamic runtime lib for CONSOLE apps."

HTH

--
Doyle Whisenant
http://www.freewebs.com/mekdesign/
"mechanic" at "sonet" dot "net"

_______________________________________________
Scite-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scite-interest

Reply via email to