MultiCharts can't find function in DLL

Questions about MultiCharts and user contributed studies.
ImXotep
Posts: 11
Joined: 02 Apr 2007

MultiCharts can't find function in DLL

Postby ImXotep » 13 Apr 2009

Hello!
I have a trouble with connect DLL in my indicator.
When I compile study, I don't have any errors and etc....
But, when I plot indicator on the chart I see error alert with same text : Can't find function XXXXXXXX on *****.dll.
I'm sure this function is in, because it work on another trading platform.
Where is problem?
PS: All declaration and other is correct.

User avatar
Andrew Kirillov
Posts: 1589
Joined: 28 Jul 2005
Has thanked: 2 times
Been thanked: 31 times
Contact:

Postby Andrew Kirillov » 13 Apr 2009

Either the DLL is not located in MultiCharts folder or you don’t indicate a full path to the DLL in the script.

ImXotep
Posts: 11
Joined: 02 Apr 2007

Postby ImXotep » 13 Apr 2009

Either the DLL is not located in MultiCharts folder or you don’t indicate a full path to the DLL in the script.
I'm copy dll in windows\system32 and multicharts root directory.
Trouble is not here ((

User avatar
Andrew Kirillov
Posts: 1589
Joined: 28 Jul 2005
Has thanked: 2 times
Been thanked: 31 times
Contact:

Postby Andrew Kirillov » 13 Apr 2009

Please make sure that DLL doesn't call some other one.

ImXotep
Posts: 11
Joined: 02 Apr 2007

Postby ImXotep » 13 Apr 2009

I'm sure!
Here is that DLL.
Simple function :

long TRANS2QUIK_CONNECT(LPCSTR lpcstrConnectionParamsString, long* pnExtendedErrorCode, LPSTR lpstrErrorMessage, DWORD dwErrorMessageSize)

Func name : TRANS2QUIK_CONNECT


Please check!
Attachments
TRANS2QUIK.rar
(40.16 KiB) Downloaded 155 times

User avatar
Andrew Kirillov
Posts: 1589
Joined: 28 Jul 2005
Has thanked: 2 times
Been thanked: 31 times
Contact:

Postby Andrew Kirillov » 14 Apr 2009

The issue is caused by @ character in DLL's function. MultiCharts can't work with it. It will be fixed in Beta 6.
As temporary walk around you can change the function's name if you have sources of the DLL. If you don't you may create a new DLL and call the function with @ from it.
Thank you for the bug report.

Guest

Postby Guest » 17 Apr 2009

Hi, :)

What language do you use to write your DLL ? :?:

I tried to do one DLL with VB.NET 2008 , but I get the same error message.
Do you know if VB .NET 2008 can do a compatible DLL ? :?:

Best Regards, Thank you for your answer :D

Emmanuel

User avatar
Andrew Kirillov
Posts: 1589
Joined: 28 Jul 2005
Has thanked: 2 times
Been thanked: 31 times
Contact:

Postby Andrew Kirillov » 20 Apr 2009

We don't know for sure, but suspect that VB.NET 2008 DLLs will not work.
We suggest to write it in C++ .


Return to “MultiCharts”