I don´t speak english very well....
Emerson is my co-worker at IOBFolhamatic and he recommended you to me. I needed .Net components that works with VFP.
I have problems when it create an object of wwDotNetBridge class in the Framework.net 4.0.
The application was installed in the Windows XP SP3 it is used with server. I tried to acess the application by shared folder in the network and occured an error.
"Unable to load wwDotNetBridge.Unable to load Clr Instance"
Client is Windows 7.
Follow in the code:
do wwdotnetbridge.prg
*do dotnetframework.prg
local loBridge
loBridge = createobject("wwDotNetBridge","V4")
on shutdown quit
quit
However when I set V3 It worked normally.
Another question is the use of visual components. The message in the document is “ it doesn´t work very well “
I created a FORM in C# with Framework.net 3.5.
To call the FORM I created the LOADER class to call the FORM class
Follow in the code:
C#:
[ComVisible(true)]
[ClassInterface(ClassInterfaceType.AutoDual)]
[ProgId("Loader")]
public class Loader
{
public void doDownload()
{
Loader.View.FRMDownload download = new Loader.View.FRMDownload(); // this another assembly and It isn´t COM .
download.ShowDialog();
}
}
VFP:
local loBridge, lObjeto
do wwdotnetbridge.prg
loBridge = createobject("wwDotNetBridge","V2")
loBridge.LoadAssembly("LoadClass.dll")
lObjeto = loBridge.CreateInstance("Loader")
lObjeto.inicializarWebService()
Could I have some problems doing like that ?
Thank you.
Adriano Ament