Yes, sorry...meant DECLARE. But you will get an error, "Invalid entry point" or something similar.
>No argument about the latter but 'If you try to use a COM DLL with DEFINE you'll get an error" ?
>
>Firstly I assume, if you're talking VFP. you mean DECLARE (and you declare each function individually - not the DLL)
>But all COM dlls have to export, for example, IUnknown and you can access that using DECLARE - so why not any other function that the writer of the COM object chooses to expose ?
Go ahead and try it.
>I've never tried it but what's prevents someone writing a COM DLL (that can be instantiated in VFP or used via Interop in .NET) but also exports functions that can be used via DECLARE in VFP or DLLImport in NET?
>
>Best,
>Viv
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer