Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - Velatus

#1
I'll post a template as soon as I get something working. Promise. :)

Actually I don't use any GUI, save a couple of calls to the win32 API in order to get the user's screen resolution (ya know, that GetSystemMetrics thing). The rest is all done in FB, which has its own built-in gfx library. The game is fullscreen, as you might have guessed, and only has very few actual GUI elements to it, which I'm implementing by hand.
#2
Oh well don't bother answering my question: I googled (lazy bastard me...). It will be stdcall then.
#3
Thanks very much HP. You're my new hero. I think I sort of figured it out. I'll start coding tomorrow when i'm off work (it's 2 pm here in France). It seems that with some hackery, you can get newLISP to call a function from an FB exe. BTW, which calling convention does newLISP use? (FreeBASIC supports cdecl, stdcall and pascal.)

(Oh and did I say thank you?)
#4
Sorry for the lack of precision. The program is developed on Windows. FreeBASIC is able to import functions from a DLL with ease. Actually, someone on the FB forum has already writen a header for NewLISP. Regarding whether or not FB can export functions, I don't know what to say. As a matter of fact, with a few additional keywords in a function declaration, and the toggling of an option at compile time, FB is able to compile DLL's. What I don't know is if one can export functions from an EXE -- as my engine is an EXE.
#5
Hi everyone!

Since this is my first post, let me introduce myself. My (real) name is Guillaume Rangheard. I'm a french student in architecture, and a freelance web developer (mostly in JS). I'm currently working on a turn-based strategy game project, loosely based on Battle For Wesnoth and Vantage Master. I plan to use newLISP as a scripting language for my engine.

Is there any way I could access my engine's functions directly from the newLISP interpreter? (The engine is in FreeBASIC.) If impossible, is there a workaround?

Thanks in advance.



V.