Page 1 of 2

Example of DLL coded by codeblock and used by FS

Posted: Mon Dec 16, 2013 11:51 am
by DjMmix
Hello Guy's,

i'm postin this thread for you show a dll compile under Codeblock (because I do not have visual studio) and used as flowstone.

I took the addfloats function (the simplest function to understand) and show you some little difference (including the size of the much smaller dll, less header file and slightly different statement)

I joined you archive with the project and the fsm Codeblock associate.

testdll.zip
Exemple CodeBlock
(12.91 KiB) Downloaded 1532 times

Re: Example of DLL coded by codeblock and used by FS

Posted: Mon Dec 16, 2013 2:06 pm
by tester
Hmm... Why after opening your schematic - FS toolbox shows only 1 primitive - the DLL? Or should I ask - where to turn off that view limitation?

For educators we have introduced a feature called Local Toolboxes. This allows you to easily create a reduced toolbox so that students are only presented with the components they need to perform a particular task. The toolbox is local to a schematic and can be saved with it too. The feature may also be useful for power users who want to keep their own toolbox of favourite components to use with particular schematics.


No word on how to turn it off, no mention on "local toolboxes" in manuals. But found it. On schematic (not toolbox, not main menu, not options) - right click and first option from the bottom "remove/restore local toolbox" (Shift+Ctrl+T).

Re: Example of DLL coded by codeblock and used by FS

Posted: Mon Dec 16, 2013 2:13 pm
by DjMmix
i m clicked by error storage local on dll primitive after this on this schema only show the dll and i not return back :/

Re: Example of DLL coded by codeblock and used by FS

Posted: Mon Dec 16, 2013 2:23 pm
by tester
...solution described above.

Re: Example of DLL coded by codeblock and used by FS

Posted: Mon Dec 16, 2013 2:35 pm
by DjMmix
ok thx !!!

Re: Example of DLL coded by codeblock and used by FS

Posted: Mon Dec 16, 2013 2:49 pm
by tester
BTW - you can use "schematic file path" (fixed in current FS version) primitive to follow the folder where you extract schematics, thus added dll's. This should simplify pach changes between computers. You can pass it through "start folder" primitive. This one is activated within exported files, exe for example. I did some experiments here:

viewtopic.php?f=2&t=1856&p=9136

Re: Example of DLL coded by codeblock and used by FS

Posted: Mon Dec 16, 2013 3:09 pm
by DjMmix
ok i"m corrected ans redit my first post , thx for this info :)

Re: Example of DLL coded by codeblock and used by FS

Posted: Mon Dec 16, 2013 3:34 pm
by tester
You're welcome.
Maybe with your help I will understand how to connect these FS apps with external dll's... :)

Re: Example of DLL coded by codeblock and used by FS

Posted: Mon Dec 16, 2013 4:01 pm
by Nubeat7
thank you mmix

i prefer using codeblocks too, great to have an example for this.

Re: Example of DLL coded by codeblock and used by FS

Posted: Mon Dec 16, 2013 4:05 pm
by trogluddite
Thanks mmix - this is all new to me, and my first impressions of Visual Studio are "Aaaaargh!" :o - it's really good to know that we have some other options for making our code.