Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
COM interop calls old code
Message
 
To
08/09/2009 12:31:04
General information
Forum:
Visual FoxPro
Category:
Visual FoxPro and .NET
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Web Service
Miscellaneous
Thread ID:
01423090
Message ID:
01423129
Views:
66
Hi Jim,

if you have changed the interface of the COM server (added methods, parameters, etc) that are visible to the outside, then you must generate a new class ids in the VFP build project dialog. You also have to delete the reference from the project and newly add the COM reference. As far as VS.NET is concerned, the new version is a completely different class that happens to have methods with the same name. Therefore you have to rebuild the project. When you deploy the project make sure you deploy the COM DLL as well as the InterOp DLL that VS.NET generates. If you don't change the InterOp DLL, the .NET solution will still call the existing code.
--
Christof
Previous
Reply
Map
View

Click here to load this message in the networking platform