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
Can't find dll
- Marina Pashkova
- Posts: 2758
- Joined: 27 Jul 2007
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\
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\
-
- Posts: 20
- Joined: 08 Mar 2007
- Marina Pashkova
- Posts: 2758
- Joined: 27 Jul 2007