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

Thread: ole32.lib / dll

  1. #1
    John E is offline Elite Member Power Poster
    Join Date
    Apr 2001
    Location
    Manchester, England
    Posts
    4,574

    ole32.lib / dll

    This is a question about ole32.dll (and .lib) although it could equally apply to other MS libraries with "32" in their name...

    I want my app to call CoCreateInstance() which (according to that MSDN article) is located in ole32.dll

    So what happens if I decide to build a 64-bit version of my app?? I took a quick look around a 64-bit system - but there was no DLL called ole64.dll as far as I could see. Is there a 64-bit version of that DLL (but still called ole32.dll)
    "A problem well stated is a problem half solved. - Charles F. Kettering

  2. #2
    Join Date
    Feb 2003
    Location
    Iasi - Romania
    Posts
    8,207

    Re: ole32.lib / dll

    No mater the file name. We can make a DLL named ole666.dll and that doesn't mean it's a 666-bit DLL.
    On 64-bit systems there is a 64-bit ole32.dll in System32 folder and a 32-bit ole32.dll in SysWOW64.
    Anyway you must do not care about that if use COM components/interfaces.
    CoInitializeEx does the trick for you.
    Last edited by ovidiucucu; January 17th, 2015 at 08:43 AM.
    Ovidiu
    "When in Rome, do as Romans do."
    My latest articles: http://codexpert.ro/blog/author/ovidiu-cucu/

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)