Hello Friend
I am a programmer. I started to practice with c++ coding. I know php, javascript and mql4 languages. This languages are c++ based languages. I'm not far c++'s syntax or datatypes, structs or classes. also mql4 is %90 c++ based language so i know datatypes variables When i read i can read everything. also I can code c++. I know c++ language but i am little bit confused. If you help me i would be happy.
1- I use notepad++ for c++ programming. I use this compile command. I am not sure i am correct. It gives me error sometimes. I doubted that this is correct compile command.
C:\TDM-GCC-64\bin\g++.exe -g "$(FILE_NAME)"
cmd /c g++ -utf-8 -Wall -fpermissive -W -Wunused -std=c++11 $(FILE_NAME) -o $(NAME_PART).exe & IF ERRORLEVEL 1 (echo. && echo Syntax errors were found during compiling.) ELSE ($(NAME_PART).exe)
2- what is correct type of utf8 string datatype and how can i use it ? I tried char, string, TCHAR, wchar and wchar_t this data types does not support this characters "ş ç ğ ü ö" also i tried setlocale() function for set utf8 charset but it did not work. or i could not do it. what is correct data type is used for it. also i saw different coding style and example is someone uses int main() someone uses int _tmain(); also some people does not use int char float. they use different datatypes. what is correct datatype choosing
3- how will i create variable with string value ? I read on forum someone said that we can use newVar( Type, Name, Value); but it gives me error.
string new_var_name = "englishkey";
i would like to create variable with englishkey name like this
string englishkey = "";
How can i do ?
4-
http://prntscr.com/gajzu3
this is my source code. I try to transfer data over some dll files write_to_ram() function writes data to variable that i choosed. I created output0, output1, output2, output3, output4. Primitive method but i could bot find any different solutions. my first idea was creating variable with my text key. i could not do it. is it possible ? then i created different variables for using. I am not sure it is stable or not. because when i use char datatype, datas are lost. Datas are not lost. as you can see in picture. I write to ram "Hello World ş ç i ğ" but program returns different output.
5- how can i compile this code as a dll.
If i solve this complexity, i can starting coding with c++. I just need a little guidance