This forum is in read-only mode now. You may discuss your questions on forums of MQL4.community and MQL5.community

Creating VC++ .DLL


Back to topics list
avatar
136
charliev 2008.11.04 06:50 

Hello,

When using the MFC AppWizard (starting a new .DLL project in VC++) what type of DLL do I create that is most compatible with MT4?

1. Regular DLL with MFC statically linked

2. Regular DLL using shared MFC DLL

3. MFC Extension DLL (using shared MFC DLL)

I'm a VB6 programmer - don't really know what I'm doing in VC++, but need a simple .DLL and thought I'd hack my way through it - if I could get some help.

Any insights creating a VC++ DLL would be appreciated.

Thanks!

-charliev

avatar
4464
Slawa 2008.11.06 13:21 
Only one condition - your imported dll-functions must be provide _stdcall calling convention
avatar
1
FinGeR 2008.11.08 16:09 

look Video Tutorial + Sample MFC DLL

http://www.mistigrifx.com/Media/SampleDLL/Mt4Dll.php

avatar
136
charliev 2008.11.09 05:03 
Slawa :
Only one condition - your imported dll-functions must be provide _stdcall calling convention

Slawa,

Can I used a (managed code) .DLL from C#.NET?

-charliev

avatar
4464
Slawa 2008.11.09 21:25 
_stdcall calling convention only. Can C#.NET provide this convention with managed code?
avatar
136
charliev 2008.11.14 09:48 
FinGeR :

look Video Tutorial + Sample MFC DLL

http://www.mistigrifx.com/Media/SampleDLL/Mt4Dll.php

This is an excellent video!

Is there another video on string use? It was stated in this video that a string example would be the topic of another video. I'm very interested in this.

Thank you!

-charlie

avatar
1
JT2008 2008.11.15 19:03 
charliev :
FinGeR :

look Video Tutorial + Sample MFC DLL

http://www.mistigrifx.com/Media/SampleDLL/Mt4Dll.php

This is an excellent video!

Is there another video on string use? It was stated in this video that a string example would be the topic of another video. I'm very interested in this.

Thank you!

-charlie

If someone know how to use the dll to pass a string please give us a hint.

avatar
1
nanaa0 2010.05.15 16:21 

Hell FinGeR,

I tried to view this video http://www.mistigrifx.com/Media/SampleDLL/Mt4Dll.php but the link is broken.

Could you please update me with new link.

Thanks in Advance,

nanaa0

Back to topics list  
Download MetaTrader 5 (450 Kb, web installer) — a new terminal for financial markets