Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Calling C# dll from VFP
Message
 
 
À
23/11/2016 08:10:59
Thomas Ganss (En ligne)
Main Trend
Frankfurt, Allemagne
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Versions des environnements
Environment:
C# 5.0
OS:
Windows 10
Database:
MS SQL Server
Divers
Thread ID:
01643829
Message ID:
01643859
Vues:
47
>I still have some Vfp work, but I will not taint current VMs just to test.
>I am in the process of moving all my stuff to Linux, will try to establish some WINE environment with Office97 and Vfp, but on my own time
>Dotnet not really a target for Linux/WINE vfp environment ;-)
>IIRC there was a versionless Createobject for Dotnetbridge ? Simplify...
>

So, these lines of code always failing on my laptop (returning -1)
DECLARE Integer ClrCreateInstanceFrom IN WWC_CLR_HOSTDLL string, string, string@, integer@

		lcError = SPACE(2048)
		lnSize = 0
		lnDispHandle = ClrCreateInstanceFrom(FULLPATH("wwDotNetBridge.dll"),;
				"Westwind.WebConnection.wwDotNetBridge",@lcError,@lnSize)

		IF lnDispHandle < 1
		   this.SetError( "Unable to load Clr Instance. " + LEFT(lcError,lnSize) )
		   RETURN NULL 
		ENDIF
I did get the latest solution now, but it gave the same problem. I traced the code, it used that version which I have installed (but I also have more recent versions of .NET).

I'll give up for now. Wish someone from here using VS 2015 and Windows 10 can quickly do the same test to see if something is wrong locally or they can reproduce the issue.

In any case, I can not proceed with that any longer.
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform