I am experimenting with COM+ programming, and have run into a slight snag. I am using C++ Builder 5.0 Pro to build an ActiveX Library, and testing the library under MS Access. I have created an Automation object which has a method, add. This method is designated in the tlb as having an optional parameter, Key. However, when I use the object, If I don't pass the supposedly optional parameter, the User environment compiler crashes. If I include the optional param, everything works fine. If I try to overload the Add method, the Library won't compile. Main thrust of my question, how do I properly implement an optional parameter?
Red Flag Submitted
Thank you for helping keep Tek-Tips Forums free from inappropriate posts. The Tek-Tips staff will check this out and take appropriate action.
Reply To This Thread
Posting in the Tek-Tips forums is a member-only feature.