Adding dll's to the project

Questions about MultiCharts .NET and user contributed studies.
MidKnight
Posts: 343
Joined: 12 Aug 2012
Has thanked: 123 times
Been thanked: 56 times

Adding dll's to the project

Postby MidKnight » 28 Oct 2012

Hi guys,

Before embark down this path, I wonder if anyone could tell me how one goes about adding dll's to the project. I want to add a dll to help with CSV file reading but do not know where to start. Currently using VC# 2008 Express.

With thanks in advance,
MK

User avatar
Henry MultiСharts
Posts: 9165
Joined: 25 Aug 2011
Has thanked: 1264 times
Been thanked: 2957 times

Re: Adding dll's to the project

Postby Henry MultiСharts » 29 Oct 2012

Hello MidKnight,

It depends on the type of the dll you are using.
For C# dll you need to add a reference in PowerLanguage .Net Editor (Right click on the workarea with the code in PowerLanguage .Net Editor->References-> Add reference/Add global reference).

For C++ dll you need to reference the functions that are provided by this dll for ex:

Code: Select all

[DllImport( "mTestMCdll.dll", CharSet = CharSet.Unicode )]
public static extern void CreateGPanelHDCHWND( IntPtr hdc, IntPtr hwnd );
For COM dll please refer to this page.


Return to “MultiCharts .NET”