thelostworld
Posts a bit
Overacheiving Code Lemur
Posts: 133
|
Post by thelostworld on Apr 13, 2009 21:20:57 GMT -5
Hey everybody, I have a small question. Using the DeleteFile() routine, the file is gone forever. That's not safe at all, so is there a way to change that so it sends it to recycle bin?
|
|
|
Post by smc44 on Apr 13, 2009 22:32:16 GMT -5
yea i think kyles right, you could also make a plugin, and create a function that says DeleteObject() and that function would send it to the recyling bin instead
|
|
thelostworld
Posts a bit
Overacheiving Code Lemur
Posts: 133
|
Post by thelostworld on Apr 14, 2009 17:47:47 GMT -5
Hmm, interesting. Where can I get information on constructing a plugin? Is it very hard, and is there any documentation on it?
|
|
|
Post by matthew on Apr 14, 2009 19:03:11 GMT -5
Hmm, interesting. Where can I get information on constructing a plugin? Is it very hard, and is there any documentation on it? This guide that I wrote a few days ago might be of some help... 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.
|
|
thelostworld
Posts a bit
Overacheiving Code Lemur
Posts: 133
|
Post by thelostworld on Apr 14, 2009 23:50:43 GMT -5
Thanks for the tutorial matt. ^^ So, how do you make your own plugins? I mean, how do you code them in the plugin creator?
|
|
|
Post by matthew on Apr 15, 2009 0:02:38 GMT -5
If you look in the DLL SDk that you downloaded from the front page of the Basic4GL website there should be a readme file inside that tom wrote, which will show you how to code an example dll.
|
|
|
Post by twasik4 on Apr 17, 2009 12:00:27 GMT -5
yea.. code::blocks hates me xD it won't work for me at all so i abandoned trying to use it
|
|
|
Post by matthew on Apr 17, 2009 13:29:08 GMT -5
as I've already said there is nothing wrong with Code::Blocks
|
|