Originally Posted By: WretchedSid
Originally Posted By: pegamode

I use this plugin with this kind of function prototypes since 2008 without any problem ... until now. So there must have been a change with this version or accessing external plugins via dll isn't possible with an open beta version at all?

I was mostly trying to say why the code shouldn't have compiled in the first place. If I may ask, why don't you provide type information? The type will default to int, which may or may not be the size of a pointer (most likely it will be on a 32 bit system), but the type int is only guaranteed to be at least 2 bytes. Same with using function, var is not really a type meant for holding pointers. Just because everyone does it, doesn't meant everyone should!


I guess the reason was the example in the manual:

Quote:


Using the DLL in C-Script and lite-C

...

In lite-C it's just a normal prototype (and you can use other variable types than var), in C-Script we need a special dllfunction declaration:

dllfunction ldexpc(x,n); // declaration of a DLL function in C-Script
function ldexpc(x,n); // declaration of a DLL function in lite-C



I also assumed that the default type is var not int.