VS2013
In the solution of a project, the run time of the project's property page after working directory into an absolute path (the DLL path contains the program to run),
After the operation is still the lack of needed DLL, who is a great god for help, have encountered a similar situation, or have what opinion,
CodePudding user response:
http://blog.csdn.net/chence19871/article/details/7645934Copies of the
FILE * FILE=NULL;
Fopen_s (& amp; File, module_path, rb + "");
Char * data=https://bbs.csdn.net/topics/NULL;
Long l_file_size=0;
If (file)
{
Fseek (file, 0, SEEK_END);
L_file_size=ftell (file);
Fseek (file, 0, SEEK_SET);
Data=https://bbs.csdn.net/topics/new char [l_file_size];
Fread (data, 1, l_file_size, file).
//and SQL first? Binding (if there are multiple question mark, that is about to separate binding)
Result=sqlite3_bind_blob (stat, 1, data, l_file_size, NULL);
//input data into database
Result=sqlite3_step (stat);
Cout & lt; <"Insert the result:" & lt;The fclose (file);
The delete [] data;
}
CodePudding user response:
The wrong place,,,,Your question not sure, all of the DLL in the directory you specify?
CodePudding user response:
Yes are included, as soon as I will lack the DLL into the generated. Exe there would be no problem with the path,To change the working directory is equivalent to me not to use,
CodePudding user response: