Code::Blocks Fortran DLL Primer Tutorial

Code::Blocks Fortran DLL Primer Tutorial

Code::Blocks Fortran DLL Primer Tutorial

The tutorial today is about a programming IDE called Code::Blocks, and we use this to create a project in which a Fortran Windows 32bit application calls a Fortran DLL doing some simple work with a two-dimensional array (and saying hello … bienvenuto … selamat pagi … g’day).

Programming IDEs take a lot of the hard work out of tasks such as compiling and linking in languages such as D, Matlab, Fortran (Code::Blocks) or Java, C, C++, VB.Net and C# (NetBeans) … and please know that there are many other languages and many other IDEs. In the case of Code::Blocks IDE, which this blog reintroduces to you today (it’s customary to shake hands, and no Klingon is necessary), it can create a C++ Win32 GUI project environment. To cut a long story short, there aint nothin’ wrong with a good ol’ IDE, but beware of IDEs in March.

In saying that about IDEs, and how they make programming easier, often with Open Source programming, it is advantageous to know what goes on “under the hood” (or even “in the ‘hood” … chortle, chortle). So if you ever get an opportunity to get helped creating your own makefile (or make it yourself, even with the Sweet Green Icing … knew it could be worked in!) for something, take the opportunity to learn how to do this, as the Open Source world will become a little easier to navigate with such types of knowledge. You’ve got to admire those early designers of computer languages, and those days when all you had was this tiny bit of memory (64k or “into the heliosphere on 8,000 bytes of memory”) to play with to create your program.

In today’s tutorial we write a simple Fortran Windows 32bit application that calls a DLL.

Points of some interest (with thanks for tutorials) are:

Code::Blocks can be an IDE for much more than Fortran … it can supervise C++ and C, D, Matlab, Fortran, ARM, AVR, Direct/X, FLTK, GLFW, GLUT, GTK+, Irrlicht, Lightfeather, MCS51, Ogre, OpenGL, PowerPC, QT4, SDL, SFML, STL port, SmartWin, TriCore and wxWidgets projects.

Link to Code::Blocks “spiritual home” download page at Code::Blocks.

Link to some downloadable Fortran DLL programming source code … rename to main.f90
Link to some downloadable Fortran application programming source code … rename to main.f95

If this was interesting you may be interested in this too.

This entry was posted in Code::Blocks, eLearning, Tutorials and tagged , , , , , , . Bookmark the permalink.

21 Responses to Code::Blocks Fortran DLL Primer Tutorial

  1. Car Interior says:

    I would like to show my thanks to the writer for bailing me out of such a issue. After researching throughout the online world and finding ways which were not powerful, I believed my life was over. Existing without the presence of approaches to the difficulties you’ve resolved by way of this report is a serious case, and ones which may have in a negative way affected my entire career if I hadn’t discovered your website. Your own ability and kindness in playing with a lot of things was valuable. I am not sure what I would’ve done if I hadn’t come upon such a subject like this. I can at this point look ahead to my future. Thank you very much for your specialized and amazing help. I won’t be reluctant to suggest the website to anybody who requires guidance on this issue.

  2. Choti says:

    Some actually fascinating information , well written and broadly speaking user pleasant.

  3. Tangy says:

    My personal internet browsings seem complete.. thank you. Recognize the value of the admission you presented.. Enjoying the post.. many thanks Great thoughts you have got here..

  4. restaurants in Nairobi says:

    You may surely see your enthusiasm inside the paintings you write. The entire world hopes for all the more passionate writers such as you who are not afraid to say how they believe. Always stick to your heart.

  5. top vote says:

    Isn’t it terrific whenever you get a superb post? Treasure the admission you presented.. Is not it awesome if you come across a very good article? Isn’t it wonderful if you uncover a great publish?

  6. Absorbing says:

    Terrific feelings you have got here.. Wonderful feelings you have here.. I enjoy you writing your viewpoint.. yes, analysis is having to pay off.

  7. Undoubtedly interesting viewpoint, thanks for writing.. Recognize the value of the admission you given.. My personal browsing efforts seem full.. thanks. Value the entry you supplied..

  8. refer says:

    My brother recommended I might like this website. He was entirely right. This post truly made my day. You cann’t imagine simply how much time I had spent for this information! Thanks!

  9. Tingle says:

    Good views you might have here.. certainly, investigation is paying off. I enjoy you posting your point of view.. I appreciate you sharing your viewpoint..

  10. Thanks for sharing superb informations. Your website is so cool. I’m impressed by the details that you¡¦ve on this blog. It reveals how nicely you perceive this subject. Bookmarked this website page, will come back for extra articles. You, my pal, ROCK! I found just the information I already searched all over the place and just could not come across. What a perfect web-site.

  11. Leia Paris says:

    I consider something really interesting about your blog so I bookmarked .

  12. Degree says:

    I simply wanted to thank you very much yet again. I’m not certain what I could possibly have implemented without these concepts documented by you concerning such a subject matter. Entirely was a very depressing setting for me, however , being able to view the specialised fashion you resolved that made me to jump with delight. I am thankful for this advice and even pray you know what a powerful job you are doing teaching the mediocre ones thru your websites. Most probably you haven’t come across all of us.

  13. I would odpdoss also love to add that if you do not actually have an insurance policy or maybe you do not take part in any group insurance, you could possibly well make use of seeking aid from a health agent. Self-employed or people who have medical conditions generally seek the help of an health insurance dealer. Thanks for your post.

  14. link says:

    What i do not understood is in fact how you’re now not actually a lot more well-favored than you may be right now. You’re very intelligent. You already know thus significantly in relation to this topic, made me individually consider it from numerous various angles. Its like men and women don’t seem to be fascinated until it is one thing to accomplish with Lady gaga! Your own stuffs excellent. All the time handle it up!

  15. You could certainly see your expertise within the paintings you write. The sector hopes for more passionate writers like you who are not afraid to mention how they believe. At all times go after your heart.

  16. I have not checked in here for some time because I thought it was acquiring boring, but the last few posts are great quality so I guess I will add you back to my everyday bloglist. You deserve it my friend :)

  17. soulful says:

    Enjoyed looking at this, very good stuff, regards . “The hunger for love is much more difficult to remove than the hunger for bread.” by Mother Theresa.

  18. favorable says:

    I got what you mean , thanks for putting up.Woh I am delighted to find this website through google. “You must pray that the way be long, full of adventures and experiences.” by Constantine Peter Cavafy.

  19. pleasant says:

    I’ve learn a few good stuff here. Certainly price bookmarking for revisiting. I wonder how much effort you put to create any such wonderful informative web site.

  20. What a lovely blog. I’ll surely be back again. Please preserve writing!

  21. Kind says:

    Definitely interesting perspective, appreciate your sharing.. Is not it amazing after you obtain an excellent publish? sure, investigation is paying off. Excellent views you possess here..

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>