COM Primer: Public/Private Functions


I have a ATL COM project which 'exposes' a function RemoveMsgService()

To start with, I would do a MAPI Logon, and would like to use a separate function to do this, but I don't want the Logon() to be seen by the VB programmers.How do I implement this?

Also, is it ok for me to require an LPTSTR if the function takes astring as an argument, or should I be using VARIANTS?

Thank you
Who is Participating?
igrooveConnect With a Mentor Commented:
In your IDL rename the method Login() to _Login(), VB doesn't show vb developers objects that start with an underscore.

Of course you'll need to rename them in your C++ .h and .cpp files.

All Courses

From novice to tech pro — start learning today.