Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
.Net control
Message
General information
Forum:
Visual FoxPro
Category:
Visual FoxPro and .NET
Title:
Miscellaneous
Thread ID:
00923742
Message ID:
00933965
Views:
27
Did you register the DLL with the /Codebase flag on RegAsm? If not it will be expecting to find the DLL in the GAC, which of course won't be the case...

For more info on calling .Net COM components from VFP look here:

http://www.west-wind.com/presentations/VfpDotNetInterop/DotNetFromVFP.asp


+++ Rick ---

>I'm having the same problem - I cannot seem to get a .NET dll to work from within VFP 8.0 SP1. The dll, foxprotest.dll, has a class called "test" and this class contains a method called "tryit". My code to call this dll looks like this:
>
>loObject = CREATEOBJECT("foxprotest.test")
>
>Executing this causes an error: "OLE error code 0x80070002: The system cannot find the file specified"
>
>The .NET dll was created by someone else, a very experienced .NET developer. It *has* been registered on my machine using: RegAsm foxprotest.dll RegAsm says it was successfully registered. A peek in the Registry confirms this. I have set the default directory to the one containing the foxprotest.dll
>
>Still, every time I try to call it, I get an error...Any help would be *greatly* appreciated.
>
>-RW-
+++ Rick ---

West Wind Technologies
Maui, Hawaii

west-wind.com/
West Wind Message Board
Rick's Web Log
Markdown Monster
---
Making waves on the Web

Where do you want to surf today?
Previous
Reply
Map
View

Click here to load this message in the networking platform