Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Exposing COM functions?

Status
Not open for further replies.

TommyIndigo

Programmer
Sep 14, 2000
67
US
I created an ActiveX DLL in VB that will send Outlook meeting requests to selected recipients. In testing the code (with hard-coded values), this seems to work fine. Now, I have edited my function to accept parameters, using Property Get/Lets. I would eventually like to pass parameters from a Perl script (which will be another question in itself).

I compiled and registered my DLL, however using QuickView in Explorer I notice there are only 4 functions exposed:
DllCanUnloadNow
DllGetClassObject
DllRegisterServer
DllUnregisterServer

I was expecting to see the function I created in the DLL, not these. Since my Perl script could only interact with exposed functions, I'm wondering if I need to somehow change my DLL to work with an exposed function (perhaps DllGetClassObject?).

The problem could be my DLL code or my understanding of these exposed functions. I'm completely lost. If anyone has any detailed suggestions, it would be MOST appreciated! Thank you

 
What you are seeing in QuickView is the exposed APIs of the DLL, not the COM interfaces. Remember that not all DLLs are COM DLLs . . . some DLLs sre just a librarys of exported functions. If you want to specifically see any COM interfaces, try using OLE View. If you need to created exported APIs, then you will need to write the DLL in C++ . . . unless someone out there can tell me how to write exported API functions (not COM functions) in VB. - Jeff Marler
(please note, that the page is under construction)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top