Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Accessing a .NET dll
Message
From
30/10/2012 09:45:33
 
General information
Forum:
ASP.NET
Category:
Other
Environment versions
Environment:
VB 9.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01555357
Message ID:
01556069
Views:
65
Will do, Thanks Rick!

>>Right now all I have to do is use clrhost to access non com-interop dlls, are you saying wwwDotnetBridge does more? If so, I'll definitely look at it. I like using clrhost because it is a small addition to a release.
>
>Yes it does a lot more. It provides the ability to convert many unsupported types, access to static methods and a whole bunch more. I encourage you to take a look at the White Paper - it shows a bunch of examples.
>
>+++ Rick ---
>
>>
>>
>>>>I've taken to mostly using clrhost (and modifying if necessary) to support .net from VFP. Found this (while old, good information for starting out) helpful (not to mention your white papers are great for getting started - thanks!!!!):
>>>
>>>Yes that's exactly what wwDotnetBridge does. It bypasses the regular COM Interop invokation mechanism and instead loads the .NET runtime directly into VFP with a proxy object to allow instantiation of any type (not just those that are marked for COM export - which are very few).
>>>
>>>If you're doing COM Interop with .NET from FoxPro you should have a look at wwDotnetBridge - it brings a ton of additional functionality to the table that is not possible with plain COM Interop greatly expanding the reach of what VFP code can access.
>>>
>>>+++ Rick ---
>>>
>>>>
>>>>http://msdn.microsoft.com/en-us/magazine/cc163791.aspx
>>>>
>>>>
>>>>
>>>>>You might want to checkout wwDotnetBridge which allows accessing .NET components without registration through RegAsm...
>>>>>
>>>>>It's now free and open source:
>>>>>
>>>>>http://west-wind.com/wwDotnetBridge.aspx
>>>>>
>>>>>and there's a white paper that explains plain COM interop (what you're doing) and how you can do that and much more with wwdotnetbridge:
>>>>>
>>>>>http://west-wind.com/presentations/wwdotnetbridge/wwDotnetBridge.pdf
>>>>>
>>>>>+++ Rick ---
>>>>>
>>>>>>It's been a while since the last time I have done that. I am trying to access a .NET dll from VFP.
>>>>>>
>>>>>>So, I tried this:
>>>>>>
>>>>>>
>>>>>>loFramework=CREATEOBJECT("Framework.CRC32")
>>>>>>
>>>>>>
>>>>>>But, I get "Class definition FRAMEWORK.CRC32 is not found.".
>>>>>>
>>>>>>I recall there is something I have to do in .NET to expose the class. I don't recall if there was anything additional to do at the VFP level or the register of the dll.
.·*´¨)
.·`TCH
(..·*

010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"
Previous
Reply
Map
View

Click here to load this message in the networking platform