<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Approximatrix Forums — Porting from VB6]]></title>
		<link>https://forums.approximatrix.com/viewtopic.php?id=1003</link>
		<atom:link href="https://forums.approximatrix.com/extern.php?action=feed&amp;tid=1003&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Porting from VB6.]]></description>
		<lastBuildDate>Wed, 28 Jan 2026 16:30:23 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Porting from VB6]]></title>
			<link>https://forums.approximatrix.com/viewtopic.php?pid=4544#p4544</link>
			<description><![CDATA[<div class="quotebox"><cite>ATR wrote:</cite><blockquote><p>We hope to use FORTRAN to re-code the calculations as library routines, called from a GUI interface code in another language.</p></blockquote></div><p>This plan would be far more feasible.&nbsp; If you&#039;re planning on building a library in Fortran to be called from another language, I have two major suggestions:</p><p>1. Only compile for 64-bit - 32-bit-only operating systems are disappearing.&nbsp; The calling conventions for 32-bit code, notably on Windows, are varied and nightmarish to deal with.&nbsp; 64-bit code generally all complies with a single calling convention regardless of the compiler used.&nbsp; You won&#039;t have to dance around with strange Fortran preprocessor directives forcing &quot;STDCALL&quot; or write aliases to Fortran functions.</p><p>2. Commit to using the Fortran ISO_C_BINDING module - every language can call C routines, generally.&nbsp; If you declare C-compatible Fortran procedures that are &quot;BIND(C)&quot; with C-compatible argument types, you&#039;ll save yourself a lot of headaches and end up with a truly portable library.</p><p>As for which GUI option to use, it again depends on what you&#039;re trying to achieve.&nbsp; If you&#039;re just on Windows, C# and Windows Forms would be a nice option, or you could even consider our <a href="https://simplyfortran.com/docs/appgraphics/intro.html">AppGraphics package</a> if you don&#039;t mind working with a decidedly small subset of GUI components.&nbsp; If you&#039;re going cross-platform, Qt with C++ or Python with tkinter are both great options.&nbsp; IUP is a nice, light option as well.&nbsp; Some people like using Gtk-Fortran, but I find it generally too heavyweight and unwieldy.&nbsp; Some of the newer, simpler GUI interfaces like Dear ImGui in C++ might fit the bill.</p>]]></description>
			<author><![CDATA[null@example.com (jeff)]]></author>
			<pubDate>Wed, 28 Jan 2026 16:30:23 +0000</pubDate>
			<guid>https://forums.approximatrix.com/viewtopic.php?pid=4544#p4544</guid>
		</item>
		<item>
			<title><![CDATA[Re: Porting from VB6]]></title>
			<link>https://forums.approximatrix.com/viewtopic.php?pid=4543#p4543</link>
			<description><![CDATA[<p>Thanks Jeff for this comment.&nbsp; The important part of our requirement is to port our mathematical modelling from legacy VB6 programs as they were relatively simple to write for non-specialist programmers, but now are unsupported and increasingly difficult to update and run.&nbsp; We hope to use FORTRAN to re-code the calculations as library routines, called from a GUI interface code in another language.&nbsp; Do you have any comment on the feasibility of this and the choice of language?</p>]]></description>
			<author><![CDATA[null@example.com (ATR)]]></author>
			<pubDate>Wed, 28 Jan 2026 12:56:39 +0000</pubDate>
			<guid>https://forums.approximatrix.com/viewtopic.php?pid=4543#p4543</guid>
		</item>
		<item>
			<title><![CDATA[Re: Porting from VB6]]></title>
			<link>https://forums.approximatrix.com/viewtopic.php?pid=4542#p4542</link>
			<description><![CDATA[<p>Unfortunately, no, I don&#039;t think Simply Fortran has any tools to help such a port along.&nbsp; I assume you&#039;re asking about maybe converting the GUI bits of VB6 programs, but our graphics package is considerably more low-level and limited.</p>]]></description>
			<author><![CDATA[null@example.com (jeff)]]></author>
			<pubDate>Tue, 27 Jan 2026 21:18:32 +0000</pubDate>
			<guid>https://forums.approximatrix.com/viewtopic.php?pid=4542#p4542</guid>
		</item>
		<item>
			<title><![CDATA[Porting from VB6]]></title>
			<link>https://forums.approximatrix.com/viewtopic.php?pid=4541#p4541</link>
			<description><![CDATA[<p>As a potential new user of Simply Fortran having coded many VB6 engineering programs still in use, is there any feature here which would help me port them to FORTRAN?</p>]]></description>
			<author><![CDATA[null@example.com (ATR)]]></author>
			<pubDate>Tue, 27 Jan 2026 12:00:22 +0000</pubDate>
			<guid>https://forums.approximatrix.com/viewtopic.php?pid=4541#p4541</guid>
		</item>
	</channel>
</rss>
