While it's certaily possible to use late binding via IDispatch, GetIdOfNames() & InvokeMember(), I don't think this will be the best long term solution. My worry is that, yes, the SolidEdgeAssembly::AssemblyDocumentPtr and SolidEdgeAssemblySync::AssemblyDocumentPtr have similar methods and parameters now, but they may branch and vary in the future and break your code. Yes, it puts more work on us but I think you're going to be much better off handling each document type in it's own function. That's just my opinion.
Posted by: Jason Newell Post date: 2/24/2009 6:28:25 AM