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. Web Development
  3. ASP.NET
  4. help in creating object using CreateObject function

help in creating object using CreateObject function

Scheduled Pinned Locked Moved ASP.NET
helpcomtutorial
4 Posts 2 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.
  • C Offline
    C Offline
    chitranjan gohil
    wrote on last edited by
    #1

    The code below throws an exception obj = CreateObject("EIS_CHAX_DB.GeneralFunctions") here obj is an object EIS_CHAX_DB is my project name and GeneralFunctions is the classname when i write obj=new EIS_CHAX_DB.GeneralFunctions it works fine but when i use the code above it throws me the exception 'Cannot create Activex object.whats the problem and how to solve it'. Regards, chitranjan more dash than cash!!!

    G 1 Reply Last reply
    0
    • C chitranjan gohil

      The code below throws an exception obj = CreateObject("EIS_CHAX_DB.GeneralFunctions") here obj is an object EIS_CHAX_DB is my project name and GeneralFunctions is the classname when i write obj=new EIS_CHAX_DB.GeneralFunctions it works fine but when i use the code above it throws me the exception 'Cannot create Activex object.whats the problem and how to solve it'. Regards, chitranjan more dash than cash!!!

      G Offline
      G Offline
      Guffa
      wrote on last edited by
      #2

      Have you registered the dll using Component Services or regsvr32.exe? --- b { font-weight: normal; }

      C 1 Reply Last reply
      0
      • G Guffa

        Have you registered the dll using Component Services or regsvr32.exe? --- b { font-weight: normal; }

        C Offline
        C Offline
        chitranjan gohil
        wrote on last edited by
        #3

        oh no.how to do it? more dash than cash!!!

        G 1 Reply Last reply
        0
        • C chitranjan gohil

          oh no.how to do it? more dash than cash!!!

          G Offline
          G Offline
          Guffa
          wrote on last edited by
          #4

          Open component services, create an application, drag and drop the dll. or Run regsvr32 in a command window: regsvr32 c:\my\path\to\the\component.dll --- b { font-weight: normal; }

          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