Getting Blitz+ and C++ to play together...
BlitzPlus Forums/BlitzPlus Programming/Getting Blitz+ and C++ to play together...
| ||
Hello there, I want to use B+ to make a nice editor for my game engine. I have an editor written in C at the moment which runs in a window and is obviously quite ugly as a result so what I'd like to do is basically keep all the techy stuff in the C code and have the B+ sit on top of this, passing information in and out of the dll but not really doing anything other than presenting the data itself. Has anyone done this kinda' thing who can give me hints about the building of dlls and passing strings and stuff back and forth? |
| ||
It's quite simple really. In the blitzplus folder there's a folder named userlibs. in this folder you can place .decls files to declare communication between blitzplus and .dll functions. The syntax of the decls file is: blitzfunctionname(x$,y#,z):dllfunctionname an example: .lib "filename.dll" function(string$,float#,integer):function Also, hare a look here: http://www.blitzbasic.com/sdkspecs/sdkspecs/userlibs_specs.txt |