Some things I tend to forget frequently and I cannot find an official documetation of it, maybe because it's considered trivial by C coders:
What are the varibles in userlibs?
I know: a or a% is a 32 Bit int argument.
I also know a* is a pointer to a blitz bank.
I've seen a$ - what's that, I guss not a string since strings must be transfered over banks?
And how do I declare a boolean flag, like true/false/null ?
I have also realized that using a function name like "_dothisandthat()" in the userlib (a typical newbie mistake) will stop Blitz3D from running until this leading underscore is removed in the userlib file.
Then I really don't know what I'm doing wrong, but blitz always tells me "user lib not found", although I have copied it to 3 folders: current app folder, uselibs folder and even the windows system folder. Also the name is written correctly in the userlib: .lib "openvip_hl.dll". I've also restarted the Blitz IDE (tho this shouldn't be neccessary with the current Blitz version).
I declare the functions one by one, and right now all I try is
openvip_create%() and openvip_destroy(lib%)
to test the basic initialisation, but even here it says "user lib not found". What could be the cause for this?
For the openvip library see my other thread about openvip.
Thanks.
EDIT I just tested it with CallDLL and it seems to work, at least the two mentioned function. Of course it doesn't make much sense with CallDLL.
EDIT2:
Ok, it turned out I had to add the "upl.dll" whatever this is, it seems to be used by openvip_hl.dll internally (wasn't mentioned anywhere). the function openvip_create() works now, but openvip_destroy still produces a "User lib function not found" error. This function is described in the docs, as well as it is referenced in the highlevel_api.h that contains a list of all public functions of the highlevel api. What drives my crazy is the fact that even when I try to find the string "openvip_destroy" in anyone of the files in the openvip folder, it cannot be found, just like the docs are trying to make an april joke.
What does this mean:
///same as openvip_library_t::destroy
#define openvip_destroy(lib) \
lib->destroy(lib)
Does that mean I have to use "openvip_destroy(lib%)" or what?
can this really be that hard?
What are the varibles in userlibs?
I know: a or a% is a 32 Bit int argument.
I also know a* is a pointer to a blitz bank.
I've seen a$ - what's that, I guss not a string since strings must be transfered over banks?
And how do I declare a boolean flag, like true/false/null ?
I have also realized that using a function name like "_dothisandthat()" in the userlib (a typical newbie mistake) will stop Blitz3D from running until this leading underscore is removed in the userlib file.
Then I really don't know what I'm doing wrong, but blitz always tells me "user lib not found", although I have copied it to 3 folders: current app folder, uselibs folder and even the windows system folder. Also the name is written correctly in the userlib: .lib "openvip_hl.dll". I've also restarted the Blitz IDE (tho this shouldn't be neccessary with the current Blitz version).
I declare the functions one by one, and right now all I try is
openvip_create%() and openvip_destroy(lib%)
to test the basic initialisation, but even here it says "user lib not found". What could be the cause for this?
For the openvip library see my other thread about openvip.
Thanks.
EDIT I just tested it with CallDLL and it seems to work, at least the two mentioned function. Of course it doesn't make much sense with CallDLL.
EDIT2:
Ok, it turned out I had to add the "upl.dll" whatever this is, it seems to be used by openvip_hl.dll internally (wasn't mentioned anywhere). the function openvip_create() works now, but openvip_destroy still produces a "User lib function not found" error. This function is described in the docs, as well as it is referenced in the highlevel_api.h that contains a list of all public functions of the highlevel api. What drives my crazy is the fact that even when I try to find the string "openvip_destroy" in anyone of the files in the openvip folder, it cannot be found, just like the docs are trying to make an april joke.
What does this mean:
///same as openvip_library_t::destroy
#define openvip_destroy(lib) \
lib->destroy(lib)
Does that mean I have to use "openvip_destroy(lib%)" or what?
can this really be that hard?