Jump to content
New account registrations are disabed. This website is now an archive. Read more here.
Metaclaw

question about DLL files

Recommended Posts

so, I saw people use DLL files with RMXP, to add functions like online features.

I want to learn how to make / use DLLs.

can someone give the basics?

like :

 

how do I create a DLL?

can RMXP run any DLL, or are there limits?

what language is the code inside a DLL?

what is Win32Api, and how is it related to using DLLS?

Share this post


Link to post
Share on other sites

Alright i know what dll files are but never used them myself since i have no use for them.

 

A dll file is sort of a "library" of code that gets used very very often... sort of like your own API.

 

how do I create a DLL?

Im not sure on this one but you will not need to create one unless you want to make your own library of functions and stuffs that you made.

 

can RMXP run any DLL, or are there limits?

It can use a dll but im not sure how.

 

what language is the code inside a DLL?

Whatever language it is lol.

 

what is Win32Api, and how is it related to using DLLS?

Win32Api is most likely windows API. It will allow you to create, delete, rename, etc. directories. Its almost a must for online games to do patches/updates for your game instead of having them download the entire game every single time.

 

You wont need to create one unless you make stuff so good that it can be used as a tool. Really hard to explain stuff. I been using unity for about 2 years now and haven't had to make any dll files.

 

Id read the top answer of this also http://stackoverflow.com/questions/124549/what-exactly-are-dll-files-and-how-do-they-work

Share this post


Link to post
Share on other sites

I meant to ask what languages can be used to write the code in DLL files.

 

anyway, I asked around, and heard that  you can write DLLs in c# language.

though only  c# programs can run them, and they require .Net framework to run.

which makes me wonder if Ruby is similar, and can only run Ruby DLLs / require Ruby to be installed. that would be bad, as installing Ruby is not  a task for your ordinary computer user. I don't want my game to reuire ruby. (RMXP doesn't actually install Ruby, I'm not sure how it runs Ruby code)

 

so...

my game still needs a script to get data from a server.

my options are either to use c# .exe file, and ask players to install the .Net framework

(most people have it installed so it's not big deal)

or write a DLL in C (so there's no need to install extra stuff)

I haven't touched C in years, but I remember it being very low level.

connecting to a server in such a language is too much trouble.

but it sounds useful for adding simple functions to RMXP.

there are probably C code snippets available online for comon tasks.

Edited by Metaclaw

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...