The "recording of my session" link on Christofs Github page actually is
you cut off the 4.
It surely isn't that easy to set up and he explains how updates to new versions also need updates of runtimes and recompilation of fpDotNetContainer. That makes it problematic, if you take the latest version of the
project and want to integrate it in VFP, that requires a lot of dependencies to recompile so they are all in the same boat, the same dotnet runtime version.
I tried the Quickstart and also failed for now.
1. Download the Zip of one version, unzip that anywhere.
2. Follow the instruction:
Christof Wollenhaupt said:
The fpDotNet folder contains a COM control that you need to register. It contains a CMD file that you can execute as an administrator.
So far, so good. I started cmd.exe in administrator mode and CD into the fpDotNet folder and executed the register.cmd, which gives me some warnings about unsigned assemblies and the advice to change to a strong name. But it registered and gave the tld file.
The showhtml.scx didn't load and said there is an unregistered ole control in record 7, which is removed.
I had to manually add the fpdotnet container to a new form once to get this going, so create a new form, put an Ole Control on it, you're then prompted for which Ole control and find the fpDotNet.DotNetContainer control in the list.
After I did this once, I could then also modifiy the showhtml.scx with that container on it. But starting this I get an OLE error about conversion of an object of type System.DBNull to an object of type System.Windows.Forms.Controls and I think that could be due to version mismatch of the dotnet runtimes or some strict type conversion policy that could be changed to allow such conversions. But how and where? I don't know yet.
My 2 cents on this: I already talked about the WebKit Active X Christof also mentions. He gave the motivation to avoid ActiveX dependencies, but his fpDotNet Container also needs registration and the cefSharp Brwoser Control overall has a more complicated handling. I would say investing a couple of hours I could also instead invest a couple of bucks. Sure, the ActiveX mentioned is more expensive than VFP was, but my time also has some value.
I see some things that he talks about I don't find at first glance in the Webkit ActiveX, like WebRTC. But it does also not surprise me to stumble upon hurdles Christof was unable to see, even if he tested his Quickstart guide on a computer in the same state as one of ours, just with Windows and VFP installed and without Visual Studio. So I guess the 2 years that passed already made that difference to the available framework versions and mismatches.
But maybe it is actually as easy as installing VS 2019 community edition to get this working for my development PC, if not by recompiling everything from sources. I'd just like to have a simpler redistribution solution.
Chriss
PS: 5 minutes later it works to DO FORM showhtml.scx WITH "
the System.DBNull was actually due to no given Config and that due to non given Url.
PPS: It takes quite some time before the first render of anything, alsmot unbearable.