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. COM
  4. Location transparency

Location transparency

Scheduled Pinned Locked Moved COM
helpcomsysadmin
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.
  • I Offline
    I Offline
    In At
    wrote on last edited by
    #1

    Hi, Please suggest regarding following trouble: Create a COM component "InProcVB.dll" as in-proc DLL in VB exposing some interfaces and methods . Write its client as "clientVB". Write another COM component as "OutOfProc.exe" as out-of-proc exe server in VC. This has same interface/class/InterfaceIDs/ClassIDs as that of "InProcVB.dll". This is written with purpose of replacing "InProcVB.dll". And, the expectation is that client need not re-compile. (As defined by rule "Location transparency of COM). After developing "OutOfProc.exe", we unregistered "InProcVB.dll", and registered "OutOfProc.exe". Executed "clientVB" without any change. It gave error type-mismatch. The error point was: Dim objSrvClass as SrvClass set SrvClass = CreateObject("Server.Class") --> Problem: Type mismatch. If I change code as Dim objSrvClass as Object set SrvClass = CreateObject("Server.Class") It works well. Please suggest.

    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