GetProcAddress and COM?
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: GetProcAddress and COM?

  1. #1
    Join Date
    Jan 2009
    Posts
    1

    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
    Code:
    _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?
    Code:
    GetProcAddress(hm, _T("ImportCustomer"));
    or
    Code:
    GetProcAddress(hm, _T("_PastelPartnerSDK::ImportCustomer"));
    (Where "hm" is the handle returned by LoadLibrary

    The same goes for the
    Code:
    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
    Posts
    1,800

    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.

    gg

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

This is a CodeGuru survey question.


Featured


HTML5 Development Center