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. Activex Control ->Running Programaticly [modified]

Activex Control ->Running Programaticly [modified]

Scheduled Pinned Locked Moved COM
csharpwinformscomtutorialquestion
2 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.
  • M Offline
    M Offline
    michael cohen
    wrote on last edited by
    #1

    Hello Im Having some problems with a ocx file i got from the company im working with... basically the control is working with winforms,but i dont want to use this control on a win forms, i want to use on a simple console app... can someone guide me what to do? this is the only code im using in win forms... axVCLogAgent1.RecServerIPAddress = "172.20.1.189"; axVCLogAgent1.RecServerPort = 3001; axVCLogAgent1.VL_connect_rec_server(); axVCLogAgent1.AgentID = UserProperties.AgentId; axVCLogAgent1.Extension = UserProperties.Extension; axVCLogAgent1.VL_log_in(); axVCLogAgent1.VL_start_record();

    modified on Sunday, September 7, 2008 5:06 AM

    G 1 Reply Last reply
    0
    • M michael cohen

      Hello Im Having some problems with a ocx file i got from the company im working with... basically the control is working with winforms,but i dont want to use this control on a win forms, i want to use on a simple console app... can someone guide me what to do? this is the only code im using in win forms... axVCLogAgent1.RecServerIPAddress = "172.20.1.189"; axVCLogAgent1.RecServerPort = 3001; axVCLogAgent1.VL_connect_rec_server(); axVCLogAgent1.AgentID = UserProperties.AgentId; axVCLogAgent1.Extension = UserProperties.Extension; axVCLogAgent1.VL_log_in(); axVCLogAgent1.VL_start_record();

      modified on Sunday, September 7, 2008 5:06 AM

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

      This is an issue with the Threading Model.your ocx might have an ui, which the console cannot display. if you are sure that does not have any ui, try registering with the COM+ and try to use from your console.

      ^-^ @|@ - redCat

      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