Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

.net class

Status
Not open for further replies.

fluppe689

Programmer
Jul 11, 2008
75
BE
Hellow Experts,

I have a simple question but with i think a difficult answer.
I have a .net class generator for pervasive database.
I use it in a simple vb program.
My question is, can i integrate this class in vfp 9 sp1

wfg,

Filip (flemisch)

Thanks for any help
 
The simple answer is yes. The real answer is, it depends. If a .net assembly is compiled with COM interop enabled, you can register it with regasm instead of with regsrv and then you can instanciate an assembly class like a COM server with it's OLE class name. For .net assemblies the .net compiler does then create a COM wrapper, which enables you to use such a class indirectly.

So it all depends on COM interop being enabled or not. So it all depends on the .net class generator, if that generates COM interop enabled classes or not.

Bye, Olaf.
 
As an addition to what Olaf said, you need to add some attributes and expose methods to COM client (VFP).
You can find a sample (and actually it is a working code to bulk send data to SQL server) check:


You can find a detailed registration process for that code here:


and finally you can download Interop Forms Toolkit (well that one is VB) from:


and for extensive examples check All In One framework:




Cetin Basoz
MS Foxpro MVP, MCP
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top