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#
  4. Programmatically compiling code with COM references

Programmatically compiling code with COM references

Scheduled Pinned Locked Moved C#
questioncomhelptutorial
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.
  • I Offline
    I Offline
    i_want_to_learn_c
    wrote on last edited by
    #1

    I am trying to write code for compiler using Codedom. I am unable to compile code which uses COM references. The code gives file not found exeception while adding COM reference to Compiler parameter object even if it is present in the output folder of the code to compile(No idea why). The possible solution I can search of is to get the executable path for the code to compile because those dlls are present in the same folder(I may be wrong here). How can I get the executable path of the code that will be compiled?? or Am I going with wrong approach?? If yes, then how to solve this issue????

    L 1 Reply Last reply
    0
    • I i_want_to_learn_c

      I am trying to write code for compiler using Codedom. I am unable to compile code which uses COM references. The code gives file not found exeception while adding COM reference to Compiler parameter object even if it is present in the output folder of the code to compile(No idea why). The possible solution I can search of is to get the executable path for the code to compile because those dlls are present in the same folder(I may be wrong here). How can I get the executable path of the code that will be compiled?? or Am I going with wrong approach?? If yes, then how to solve this issue????

      L Offline
      L Offline
      leppie
      wrote on last edited by
      #2

      Did you generate the assembly you are adding with 'tlbimp'. You can't add a direct reference to a COM library.

      xacc.ide - now with IronScheme support
      IronScheme - 1.0 alpha 2 out now

      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