I've got a COM object built (building a debug version of the DLL) from VC++ and trying to use it in VFP.
1) Is it possible to set breakpoints in the VC debugger and have them triggered when VFP calls the method? I can attach VFP as a process in the VC debugger but the breakpoints don't trigger. I know this works great if the VC component is a plain API DLL but it looks like a COM DLL works differently.
2) How can I clear the DLL from memory? Once VFP instantiates the COM VC can not rebuild the DLL until I completely shutdown VFP.
3) The COM methods are returning HRESULT values and VFP is for some reason converting them to empty strings:
lnResult = ox.Method()
? type( "lnResult" ) && "C" and not N
4) How can I declare the COM method to take a BSTR string argument by reference so it can be an OUT or INOUT parameter. Just declaring the argument as BSTR doesn't let the method alter a variable passed by reference from VFP.