Hi Paul.
>Basically the .NET Framework SDK samples need to be installed, then issuing a command such as....
>
>oObject = CREATEOBJECT("System.Data.DataSet") works
>
>Don't know why having to install the Samples makes it work maybe someone out there does....
Because the .NET assemblies aren't registered as COM objects. To do that, you need to run REGASM.EXE (that comes with the .NET SDK). Installing the samples does that for you on *some* (but not all) of the assemblies because some of the samples show how COM Interop works.
One thing to watch out for is that some method names in COM aren't exactly as documented. That's because those methods that accept optional parameters appear to COM as if they're different methods. So, you'll find (if memory serves me correctly) GetDataSet, GetDataSet_2, and GetDataSet_3 methods even though the .NET docs only mention GetDataSet. Intellisense in VFP 7 is very useful for figuring out which one to call with a given set of parameters.
Doug
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only