CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Jan 2009

    Question GetProcAddress and COM?

    I need to access a DLL's functions. When I view the DLL, using DLL Export Viewer - option, Scan COM type libraries, I can see the function that I'm looking after, but it is displayed as
    _PastelPartnerSDK::ImportCustomer 1610809394 (0x60030032) PasSDK.dll F:\PastelDLL\PasSDK.dl COM Method
    Now I can't seem to find examples for GetProcAddress and COM Methods...
    Do I call GetProcAddress as follows?
    GetProcAddress(hm, _T("ImportCustomer"));
    GetProcAddress(hm, _T("_PastelPartnerSDK::ImportCustomer"));
    (Where "hm" is the handle returned by LoadLibrary

    The same goes for the
    typedef void * (__stdcall *ImportCustomer)();
    (Can I use any name (ImportCustomer used here) or does it need to be the same as in the DLL?)

    Thank you.

  2. #2
    Join Date
    Nov 2003

    Re: GetProcAddress and COM?

    That's not how you work with COM objects. You may want to pick up a good book on COM programming. Or browse for some tutorials.


Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Windows Mobile Development Center

Click Here to Expand Forum to Full Width

On-Demand Webinars (sponsored)

We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.