Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. How to load a ActiveX Dll Dynamically by specifying the dll name

How to load a ActiveX Dll Dynamically by specifying the dll name

Scheduled Pinned Locked Moved C / C++ / MFC
comhelptutorialquestion
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • V Offline
    V Offline
    Virajs
    wrote on last edited by
    #1

    :laugh::-D#include #import "C:\Project1.dll" no_namespace class RemoteDllLoader { _Class1Ptr ptr; public: RemoteDllLoader() { try { CoInitialize(NULL); ptr.CreateInstance(__uuidof(Class1)); } catch(_com_error &e) { _bstr_t err = e.Description(); MessageBox(NULL,err,"Error",0); } } ~RemoteDllLoader() { CoUninitialize(); } void Test() { ptr->Test1("Hi"); } int Test2(int n1,int n2) { return ptr->Test2(n1,n2); } }; this is the code that i used to load an activex dll.but I want to load a particular dll by specifying it dll name given by a parameter.Can it be possible? I appreciate any possible answer.Thnxs Viraj Siriwardana

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups