in reply to Re: Re: Possible or am I dreaming for Perl made dlls
in thread Possible or am I dreaming for Perl made dlls

Looks like you'll probably have to spend some $$$ to get the tool necessary to do this (i.e. PerlCtrl to create a Perl DLL), otherwise you're probably out of luck. See ActiveState's reference on creating Perl DLLs

metadoktor

"The doktor is in."

  • Comment on You Need ActiveState PerlDev Kit - Re: Re: Re: Possible or am I dreaming for Perl made dlls

Replies are listed 'Best First'.
Re: You Need ActiveState PerlDev Kit - Re: Re: Re: Possible or am I dreaming for Perl made dlls
by Anonymous Monk on Feb 14, 2002 at 12:36 UTC
    Ok sounds reasonable, but could it be done so that the dll made by C++, calls the perl script by passing all the data it gets in *bc pointer variable and viceversa ?
    This way I don't need to figure out how to compile dlls from the perl scripts.
    --------------+ corebot.exe | ------|-------+ ------|-------+ C made API for the Perl script Small.dll | <-Maps BOTCMD *bc pointer to perl Table ? ------+-------+ and then calls Perl script | DATA v +--------------+ |Perl programm | +--------------+
      I don't follow your remark about a C++ DLL calling a Perl script?

      From your explanations, it sounds like you have an executable called "botcore.exe" and a DLL called "botbehavior.dll". They give you the .ini and .h files to include in your own compiled version of botbehavior.cpp which is botbehavior.dll.

      So your problem is how do you create your own "botbehavior.dll" that implements your desired functionality. It seems that you want to do this strictly in Perl. Well...it seems like it is possible to do but possibly only by using ActiveState's dev kit. I've never bought or used their kit myself so I cannot tell you from first hand experience how difficult it is to do this with their software. You should probably contact them to find out if their software totally meets your requirements.

      If you had Microsoft Visual C++ then you would have no problem since you can create DLL's and code in C++ with their software; however, you do not seem to know C++ and do not seem to have a desire to learn C++ and that package would also cost lots of $$$ so your options are somewhat limited.

      Perhaps you should find a different bot program that is open source?

      Good luck.

      metadoktor

      "The doktor is in."

        Thank you, you got it all right
        Maybe I should then move back to the monastery and try learn some C++. : )