Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Calling C# dll from VFP
Message
 
 
To
23/11/2016 08:10:59
Thomas Ganss (Online)
Main Trend
Frankfurt, Germany
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Environment versions
Environment:
C# 5.0
OS:
Windows 10
Database:
MS SQL Server
Miscellaneous
Thread ID:
01643829
Message ID:
01643859
Views:
46
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform