MQL4 importing a C# DLL

 

Hi everyone!
Hope you guys are fine.

To summary,

- I created a C# DLL that has a class called `Utils` and a method `public static int GetNumber(string number);` that parses string to int.
- The DLL name is Parser.dll and it is in MQL4 libraries folder.
- In MQL4 I just do

#import "Parser.dll"


int GetNumber (string);


#import

And then on the OnInit call this function with `GetNumber ("1");`

But i have these errors:
- Cannot find ' GetNumber ' in ' Parser.dll'
- Unresolved import function call


Can someone help me please?

Thanks in advance!

MQL Parsing by Means of MQL
MQL Parsing by Means of MQL
  • www.mql5.com
The article describes a preprocessor, a scanner, and a parser to be used in parsing the MQL-based source codes. MQL implementation is attached.
 
Edit: Seems /exports is not showing me the function, is there a way to export my function
Reason: