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. How to host vc+ control (.lib) in c# winform

How to host vc+ control (.lib) in c# winform

Scheduled Pinned Locked Moved C#
csharphelptutorialc++css
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.
  • U Offline
    U Offline
    uhs
    wrote on last edited by
    #1

    Hello all, I have typical problem as following. I have user control (grid contorl)developed in vc++ and compiled version is in .lib file. Same control i want to use in c#. As we cant call .lib file or have reference of .lib in .net project, we have to write some intermediate code /wrapper class. Do i need to convert first .lib file into dll in vc++? If yes the control is a class not just a group of function.Is it possible? so how to write it.I am not a vc guy. Is there any approch hwo to go about it?Can you step by step information. it will be great if i get reply soon..i m really stuck here... thanks and regards, Urvish

    C 1 Reply Last reply
    0
    • U uhs

      Hello all, I have typical problem as following. I have user control (grid contorl)developed in vc++ and compiled version is in .lib file. Same control i want to use in c#. As we cant call .lib file or have reference of .lib in .net project, we have to write some intermediate code /wrapper class. Do i need to convert first .lib file into dll in vc++? If yes the control is a class not just a group of function.Is it possible? so how to write it.I am not a vc guy. Is there any approch hwo to go about it?Can you step by step information. it will be great if i get reply soon..i m really stuck here... thanks and regards, Urvish

      C Offline
      C Offline
      Carsten Zeumer
      wrote on last edited by
      #2

      The only way i know is to create an ActiveX wrapper class in C++. You could then use this control via COMInterop. But since you said you are no C++ guy i would suggest you look for some GridControl implemented in .NET. Search CodeProject for GridControl, there are some on this site. /cadi 24 hours is not enough

      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