inline family of Perl modules [Inline::C, etc.]

For everything NOT server specific support. Do NOT ask for connectivity help here!.

Moderator: Moderators

NiTRO106
Plain Yogurt
Plain Yogurt
Posts: 64
Joined: 30 Nov 2012, 20:27
Noob?: No

inline family of Perl modules [Inline::C, etc.]

#1 Post by NiTRO106 »

i saw a post here that it is completely possible (according to sli, LINK: http://forums.openkore.com/viewtopic.php?f=34&t=2236) to write a plugin in other languages by using the inline family of perl modules. but how can it be implemented properly? or how to write it? i always wanted to write a plugin in C or C++ not because those are my mastered programming languages but because today i recently find it hard to learn the perl programming language.
EternalHarvest
Developers
Developers
Posts: 1798
Joined: 05 Dec 2008, 05:42
Noob?: Yes

Re: inline family of Perl modules [Inline::C, etc.]

#2 Post by EternalHarvest »

how can it be implemented properly? or how to write it?
What about reading documentation of corresponding modules?

You probably would need Perl anyway, with additional complexity from using Inline.
hard to learn the perl
So, have you at least read stuff linked at openkore.com, like that "Learn Perl in about 2 hours 30 minutes" which briefly goes through all the basics?
NiTRO106
Plain Yogurt
Plain Yogurt
Posts: 64
Joined: 30 Nov 2012, 20:27
Noob?: No

Re: inline family of Perl modules [Inline::C, etc.]

#3 Post by NiTRO106 »

@EternalHarvest
What about reading documentation of corresponding modules?
thanks for the advice! i found a link on the web that corresponds to inline module (LINK: http://search.cpan.org/~sisyphus/Inline-0.51/Inline.pod). but i will try it later if it really works. btw, if this really works, how to hook or call some openkore basics like move, talk, etc. ? (a question similar to the topic that i posted previously LINK: http://forums.openkore.com/viewtopic.php?f=10&t=18546)
So, have you at least read stuff linked at openkore.com, like that "Learn Perl in about 2 hours 30 minutes" which briefly goes through all the basics?
i have read the "Learn Perl in about 2 hours 30 minutes" partially and some topics in this site regarding in writing plugins. i sometimes jump topics in it because some of its basics (like variables, if,else and while statements) and other coding structures are similar to C. but if everything else fails, i will try to read it all again and learn it with all my best.
User avatar
kLabMouse
Administrator
Administrator
Posts: 1301
Joined: 24 Apr 2008, 12:02

Re: inline family of Perl modules [Inline::C, etc.]

#4 Post by kLabMouse »

I don't RLY think that C/C++ needs Inline.
there is Two possible solutions.
1) Pure Windows. Load a DLL and work with DLL api.
2) Use XS to wrap needed things, and properly use your C/C++ code like OpenKore does for XSTools.