Post by Roger Cabo on Mar 27, 2024 22:23:53 GMT 1
Hi everyone,
I'm interesting to send a file by https to a Webserver. The only was seems to be creating a dll 32bit and load into GB32.
The PHP web server stuff is also quite easy.. because both stuff can be done my chatGPT.
VS2022 free community edition is able to run .NET Framework 4.8 or 4.5
But here is a ugly thing. Loading the DLL 32bit into GB32 is tricky anyhow.
Anything seems to be different in case of old DLL's was created in the past of older 32bit windows systems.
Doe anyone has written a DLL and load into GB32 in VS community 2019 + NET 4.7.2
An easy way is to use :
But this cause a error in VS, because the RGiesecke.DllExport doesnt seems to work with NET 4.7.2.
Then later we call in GB32 only to see if the process works..
The dll exist beside the gfabasic32.exe as GB32_DLL_NET.dll and was found!
But this happen all the time..
Any idea?
I'm interesting to send a file by https to a Webserver. The only was seems to be creating a dll 32bit and load into GB32.
The PHP web server stuff is also quite easy.. because both stuff can be done my chatGPT.
VS2022 free community edition is able to run .NET Framework 4.8 or 4.5
But here is a ugly thing. Loading the DLL 32bit into GB32 is tricky anyhow.
Anything seems to be different in case of old DLL's was created in the past of older 32bit windows systems.
Doe anyone has written a DLL and load into GB32 in VS community 2019 + NET 4.7.2
An easy way is to use :
// .NET Framework 4.7.2 is required on Win10
using System.Runtime.InteropServices;
using RGiesecke.DllExport;
namespace GB32_DLL_NET
{
public class MessageBoxHelper
{
[DllExport("ShowMessageBox", CallingConvention = CallingConvention.StdCall)]
public static void ShowMessageBox(string fileName, string serverAddress, string user, string loginPassword)
{
string message = $"File Name: {fileName}\nServer Address: {serverAddress}\nUser: {user}\nPassword: {loginPassword}";
System.Windows.Forms.MessageBox.Show(message, "Test Message");
}
}
}
But this cause a error in VS, because the RGiesecke.DllExport doesnt seems to work with NET 4.7.2.
Then later we call in GB32 only to see if the process works..
Declare Sub ShowMessageBox Lib "GB32_DLL_NET.dll" Alias "ShowMessageBox" (ByVal fileName As String, ByVal serverAddress As String, ByVal user As String, ByVal loginPassword As String)
Sub IrgendwasHttps()
Dim ret As Integer
ShowMessageBox ("testfile.txt", "https://myserver.com", "myuser", "mypassword")
End Sub
The dll exist beside the gfabasic32.exe as GB32_DLL_NET.dll and was found!
But this happen all the time..
Any idea?