Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Creating .NET Datasets in VFP7
Message
From
12/12/2000 11:42:20
 
 
To
12/12/2000 06:29:58
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00451516
Message ID:
00452284
Views:
23
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
Map
View

Click here to load this message in the networking platform