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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C#
  4. DLL question

DLL question

Scheduled Pinned Locked Moved C#
tutorialquestioncsharpc++com
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.
  • T Offline
    T Offline
    Tom Wright
    wrote on last edited by
    #1

    Okay, this may sound silly but I've never had to create a DLL in c# until now. I've written a C# dialog app and I want to run some crystal reports from a dll. So can someone point me to a tutorial that shows how to create dll's and how to call them from my C# app? Oh and in my dll I will need to pop up a dialog showing the report in it. Is this doable? I've done it plenty times in MFC. Thanks Tom Wright tawright915@yahoo.com -- modified at 18:12 Monday 1st May, 2006

    R 1 Reply Last reply
    0
    • T Tom Wright

      Okay, this may sound silly but I've never had to create a DLL in c# until now. I've written a C# dialog app and I want to run some crystal reports from a dll. So can someone point me to a tutorial that shows how to create dll's and how to call them from my C# app? Oh and in my dll I will need to pop up a dialog showing the report in it. Is this doable? I've done it plenty times in MFC. Thanks Tom Wright tawright915@yahoo.com -- modified at 18:12 Monday 1st May, 2006

      R Offline
      R Offline
      Robin Panther
      wrote on last edited by
      #2

      If you need Win32 dll - you can't create it in c#. You have to make it in c++ or any other native language. About using Win32 dlls from c# - search for Platform Invoke (p/invoke). This can be useful, for example If you need .net dll - just set in project properties, on Application tab, "output type" property to "Class library". Using .net dlls on design-time is very easy - add reference to needed dll and use it through Namespace.Class.Function system. For example, if your dll contains function ShowReport() in class Report in namespace MyReportNamespace, you just have to call for MyReportNamespace.Report.ShowReport(). About showing dialog - I don't know what about CrystalReport, but I've used a lot of forms, called from dlls. ____________________________________________ Robin Panther http://www.robinland.com

      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