以wchar_t** 为参数的函数 放在dll文件里。在EXE文件中调用会出现 link 错误。请问怎么解决函数如下:bool MiscUtils::LoadScriptFile(const char * inFile, wchar_t** outBuf)
{
// Open the .js file and read out the scripts.
FILE * fp = fopen(inFile, "rb");
if (fp)
{
// First to determine the file size.
fseek(fp, 0, SEEK_END);
long fileSize = ftell(fp);
if (fileSize <= 0)
{
fclose(fp);
return false;
} // Read scripts out of the source file.
long  charCount = fileSize + 1; // including a null ternimator.
char * pScripts = new char[charCount];
memset(pScripts, 0, charCount);
fseek(fp, 0, SEEK_SET);
fread(pScripts, 1, fileSize, fp);
fclose(fp); // Convert scripts to wide characters.
*outBuf = new wchar_t[charCount];
::MultiByteToWideChar(CP_ACP, 0, pScripts, -1, *outBuf, charCount);
delete[] pScripts;
return true;
} return false;
}