|
Post by matthew on Apr 10, 2009 22:10:25 GMT
First of all download Code::Blocks from here. You'll see Two versions on the download page, you want the larger mingw-setup version as it comes with the MinGW compiler. Now download the Plugin SDK from the front page of the Basic4GL website, you'll need this to make DLLs for Basic4GL. Make a new project in Code::Blocks by clicking File, New & Project...Now choose Dynamic Link Library & click GoNow click Next >Give your Project a title & choose a location to save it. Accept the following defaults & click FinishTwo source files will have been added to your project, remove them by right clicking them & selecting Remove file from projectFind the folder where you've saved your project & delete the Two source files you find there. Locate where you saved the DLL SDK which you downloaded from the Basic4GL homepage & copy the PluginDLLMain.cpp file & the entire include folder. Now paste the file & folder into the folder that was created for your Code::Blocks project. Now you need to add the files to your project, so right-click the name of your project & select Add files..Now add the PluginDLLMain.cpp & all the includes. Select both Debug & ReleaseYour project should now look something like the following. Now click the build button. You'll get an error because the file Basic4GLDLLInterface.h cannot be found as it's inside another folder. To fix this you'll need to add the name of the folder Basic4GLDLLInterface.h is contained in, so do so just like in the image below. Then click the build button, the program should now build without any errors.
|
|