Quantcast
Channel: West Wind Message Board Messages
Viewing all articles
Browse latest Browse all 10393

Re: An problem acess the application by shared folder

$
0
0
Re: An problem acess the application by shared folder
VFP and .NET Interop
Re: An problem acess the application by shared folder
Mar. 27, 2013
01:58 pm
3QX0TXUDYShow this entire thread in new window
Gratar Image based on email address
From:Rick Strahl
To:

.NET requires special configuration to load assemblies from network/shared drives.

More info here:
wcdocs:_36e0qlogr.htm

+++ Rick ---


Good afternoon

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



Rick Strahl
West Wind Technologies


from Maui, Hawaii

Making waves on the Web


Viewing all articles
Browse latest Browse all 10393

Trending Articles