<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Approximatrix Forums — Porting from VB6]]></title>
	<link rel="self" href="https://forums.approximatrix.com/extern.php?action=feed&amp;tid=1003&amp;type=atom" />
	<updated>2026-01-28T16:30:23Z</updated>
	<generator>PunBB</generator>
	<id>https://forums.approximatrix.com/viewtopic.php?id=1003</id>
		<entry>
			<title type="html"><![CDATA[Re: Porting from VB6]]></title>
			<link rel="alternate" href="https://forums.approximatrix.com/viewtopic.php?pid=4544#p4544" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[jeff]]></name>
				<uri>https://forums.approximatrix.com/profile.php?id=2</uri>
			</author>
			<updated>2026-01-28T16:30:23Z</updated>
			<id>https://forums.approximatrix.com/viewtopic.php?pid=4544#p4544</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Porting from VB6]]></title>
			<link rel="alternate" href="https://forums.approximatrix.com/viewtopic.php?pid=4543#p4543" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[ATR]]></name>
				<uri>https://forums.approximatrix.com/profile.php?id=4547</uri>
			</author>
			<updated>2026-01-28T12:56:39Z</updated>
			<id>https://forums.approximatrix.com/viewtopic.php?pid=4543#p4543</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Porting from VB6]]></title>
			<link rel="alternate" href="https://forums.approximatrix.com/viewtopic.php?pid=4542#p4542" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[jeff]]></name>
				<uri>https://forums.approximatrix.com/profile.php?id=2</uri>
			</author>
			<updated>2026-01-27T21:18:32Z</updated>
			<id>https://forums.approximatrix.com/viewtopic.php?pid=4542#p4542</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Porting from VB6]]></title>
			<link rel="alternate" href="https://forums.approximatrix.com/viewtopic.php?pid=4541#p4541" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[ATR]]></name>
				<uri>https://forums.approximatrix.com/profile.php?id=4547</uri>
			</author>
			<updated>2026-01-27T12:00:22Z</updated>
			<id>https://forums.approximatrix.com/viewtopic.php?pid=4541#p4541</id>
		</entry>
</feed>
