Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VC++ COM
Message
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Title:
VC++ COM
Miscellaneous
Thread ID:
00269140
Message ID:
00269140
Views:
47
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.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Next
Reply
Map
View

Click here to load this message in the networking platform