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 / C++ / MFC
  4. How to go about mixing C++ dll with C# forms for use in a scripting language that can call dlls

How to go about mixing C++ dll with C# forms for use in a scripting language that can call dlls

Scheduled Pinned Locked Moved C / C++ / MFC
csharpc++visual-studiowinformsalgorithms
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.
  • K Offline
    K Offline
    KnaveR777
    wrote on last edited by
    #1

    Hey all, I was wondering how I might go about mixing a C++ dll with C# windows form. I am currently creating a C++ dll to use within another application that allows scripts to call into dlls, for a fun/learning project. Though I have been able to figure out how to perform simple function calls, I am a bit clueless as to how I might go adding GUI components into the mix. In the end I would like to able to add a toolbar to the outside application. Ideally, because it is so simple to create windows forms in C#, I would like to be able to create the toolbar in C# and have it call my dll functions. Though I have done some searching, I am a bit lost on where to even begin. As a first step, I would like to write a simple function in my C++ dll that creates a simple HelloWorld windows form (script calls dll's helloWorld -> dll creates C# form). Though I can do either by itself, I am not sure how to call the form from within the dll, as well as how to go about having C# and C++ in the same visual studio project. If anyone could point me in the right direction, I would be very thankful.

    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