Doh!
Just managed to get the Prefs dialog working ... funny how what look like intractable problems can come from just missing out one simple thing? In this case, it was just the lack of a simple #include line in order to set and access the contents of a text box in a dialog ...