I'm new to c++ forum and to c++. I'll try to be as clear as possible.
What I'm trying to do:
(1) Make C++ read a CSV file to set some variable.
(2) C++ have to use those variable in some function. (Not a problem)
(3) Export those function in a DLL file which will be call in Excel (via VBA)
I must note that I can make both link (1) and (3) separately. But when I try to put both "link" in one code, Excel crash every time I run the function in it. The "Full" link I'm trying to make doesn't work... why?!
About the C++ code :
-The following code compile in Code::Blocks, but as said before, the DLL make Excel crash.
-The exported function "TPC" is kinda useless, I just pick it up for the example
-The File Parametre.csv is as follow: