hey guys.
I have the following problem.
I am using
Code:
hinstlib = LoadLibrary(L"D:\\FOLDER\\Function.dll");
and
Code:
CopyFileA("D:\\Folder\\Parameters.txt","Parameters.txt",0);
to call a dll from a certain directory and to copy a corresponding parameter file which works quite good.
The problem now is:
The directory D:\Folder might change from one computer to another and/or it is not possible to create it.
so what i want to do is to change the specified directory to a variable.
The program from which I call the dll comes with an ascii file, in which the directory could be stored. The user could write the path into it where the dll and parameters and txt file is stored on his machine.
so at the end it should look as follows:
Code:
"open Ascii file"
"read Directory (maybe as a string)"
copy the string into a char variable
and finally
change
hinstlib = LoadLibrary(L"D:\\FOLDER\\Function.dll");
to
hinstlib = LoadLibrary(L"STRING\\Function.dll");
What I tried so far does not seem to work at all - maybe you can help me out
Thanks in advance!