Can't find dll

Questions about MultiCharts and user contributed studies.
crazy_phil
Posts:20
Joined:08 Mar 2007
Can't find dll

Postby crazy_phil » 26 Jan 2009

hello,

I'm trying to use a custom dll.

The call to the dll as been included in an indicator for test purpose.

**************************************************
DefineDLLFunc: "C:\matrice\matricecafnar.DLL", void, "DLLWRITEINSTRU", LPSTR,int, LPSTR, float,float,float,float,float,int,int,int,int,int,int ;

DLLWRITEINSTRU(symbolname, barinterval, "xxxx", o, h, l, c , c , Volume, 15, 14,26,01,09 ) ;
**************************************************

the dll code includes that :

_____________________________________________________________________

// matricedll.cpp : Defines the exported functions for the DLL application.
//

#include "stdafx.h"

#include "Matrice2.h"

Matrice2 dll_matrice;


extern "C" __declspec(dllexport)

void __stdcall DLLWRITEINSTRU(std::string instrumentNom,int ut,std::string etat,
float open,float high,float low,float close,float prix,int vol,
int minute,int heure,int jour,int mois,int annee)

___________________________________________________________________________


When I try to plot my indicator, I get the message :

can't find dll "c:\matrice\matriceafnar.dll"

I also tried getting the dll in MC's folder --->> same message

Hope you can help me
regards
Philippe

User avatar
Marina Pashkova
Posts:2758
Joined:27 Jul 2007

Postby Marina Pashkova » 30 Jan 2009

Hi Philippe,

If you place the dll into the same folder where MC is installed, you need to simply write the following:
--------------------------------------------
DefineDLLFunc: "matricecafnar.DLL" ......
--------------------------------------------

However, if your code says
--------------------------------------------------------
DefineDLLFunc: "C:\matrice\matricecafnar.DLL" ......
--------------------------------------------------------

The dll should be placed into that folder: C:\matrice\

crazy_phil
Posts:20
Joined:08 Mar 2007

Postby crazy_phil » 03 Feb 2009

Dear Marina,

I understand that well, but, anyplace I put the DLL, I allways get the same message, : can't find dll

User avatar
Marina Pashkova
Posts:2758
Joined:27 Jul 2007

Postby Marina Pashkova » 03 Feb 2009

Hi crazy_phil,

In this case we would need to connect to your PC to help you on-line. Please either call us or come to LiveChat for further instructions.

Regards.


Return to “MultiCharts”