Visual Studio C++ DLL Template

How to create strategies and indicators
Message
Author
imamushroom
Posts: 22
Joined: Wed Jan 20, 2016 2:52 pm

Visual Studio C++ DLL Template

#1 Postby imamushroom » Sun Aug 06, 2017 1:08 am

Here's a blank C++ DLL template that Forex Tester Support sent me after having difficulties setting the correct settings in Visual Studio 2017 Community. The file is too large to upload to the forum so have place it here: http://www.filedropper.com/forextesterdll

badasstrader
Posts: 6
Joined: Tue Aug 22, 2017 10:51 am

Re: Visual Studio C++ DLL Template

#2 Postby badasstrader » Sun Sep 10, 2017 11:23 am

Hello,

I think I'm going crazy trying to compile the lesson 1 DLL with Visual Studio 2017 Community. Linking is hell !
I'd like to use your template but I don't know how to get it, the link send me to the home page of filedropper.

christoff
Posts: 44
Joined: Thu Nov 09, 2006 2:29 am

Re: Visual Studio C++ DLL Template

#3 Postby christoff » Thu Sep 21, 2017 1:43 am

badasstrader wrote:Hello,

I think I'm going crazy trying to compile the lesson 1 DLL with Visual Studio 2017 Community. Linking is hell !
I'd like to use your template but I don't know how to get it, the link send me to the home page of filedropper.


Yeah same problem when I tried. Send me to home page as well

ShannonPel
Posts: 1
Joined: Mon Oct 23, 2017 3:34 am

Re: Visual Studio C++ DLL Template

#4 Postby ShannonPel » Sun Oct 29, 2017 2:11 am

badasstrader wrote:Hello,

I think I'm going crazy trying to compile the lesson 1 DLL with Visual Studio 2017 Community. Linking is hell !
I'd like to use your template but I don't know how to get it, the link send me to the home page of filedropper.


Same here! I'd like the code too if anyone has it.

beno
Posts: 4
Joined: Tue Feb 13, 2018 7:46 pm

Re: Visual Studio C++ DLL Template

#5 Postby beno » Tue Feb 13, 2018 9:21 pm

To get lesson 1 working in an Empty Project on Visual Studio 2017, i had to do 2 things:

Edit Project Properties / Configuration Properties / C/C++ / Preprocessor / Preprocessor Definitions - Add _CRT_SECURE_NO_WARNINGS
Edit Project Properties / Configuration Properties / C/C++ / Command Line / Additional Options - Add /Zc:strictStrings-

jpygbp
Posts: 1
Joined: Sat Jun 03, 2017 2:47 pm

Re: Visual Studio C++ DLL Template

#6 Postby jpygbp » Wed Jul 11, 2018 9:34 am

Here is my batch file if you have any suggestions. I will upload a new version shortly to fix a few includes that are needed.

REM ////////////////////////////////////
REM batch file for Visual Studio Builds
REM ////////////////////////////////////
REM
@echo off
set CommonCompilerFlags=-Zi /Wv:18
set CommonLinkerFlags= /LD
call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" x64
@echo on
mkdir "%~dp0build"
pushd "%~dp0build"
cl %CommonCompilerFlags% ../*.cpp %CommonLinkerFlags%
popd


Return to “FT API”

Who is online

Users browsing this forum: No registered users and 1 guest