C++ 如何实现MSFileReader以使用C++;

C++ 如何实现MSFileReader以使用C++;,c++,C++,我被要求使用Thermo Fisher的MSFileReader读取原始文件,并对质谱数据进行峰值拾取。我可以加载包中包含的DLL,但无法访问函数。我有3.0版。我使用Visual Studio Community 2015作为编译器。我的代码如下 #include <Windows.h> #include <iostream> #include <string> double SampleWt; double *pd = &SampleWt; ty

我被要求使用Thermo Fisher的MSFileReader读取原始文件,并对质谱数据进行峰值拾取。我可以加载包中包含的DLL,但无法访问函数。我有3.0版。我使用Visual Studio Community 2015作为编译器。我的代码如下

#include <Windows.h>
#include <iostream>
#include <string>

double SampleWt;
double *pd = &SampleWt;
typedef std::string(*MYPROC)(int);

int main()
{
    MYPROC ProcAdd;
    HINSTANCE hinstLib = LoadLibrary(L"C:\\Nathan\\DanforthPrj\\MZmine- 2.16\\lib\\vendor_lib\\thermo\\MSFileReaderLib.dll");
    if (!hinstLib)
    {
        std::cout << "\ncould Not Load the Library" << std::endl;
        return EXIT_FAILURE;
    }
    else {
        std::cout << "\nSuccess" << std::endl;
    }
    ProcAdd = (MYPROC)GetProcAddress(hinstLib, "Open");
    if (NULL != ProcAdd)
    {
        std::cout << "\nfinaly" << std::endl;
    }
    //Resolve the function address 6
    FreeLibrary(hinstLib);
    return EXIT_SUCCESS;
}    
#包括
#包括
#包括
双样本;
double*pd=&SampleWt;
typedef std::string(*MYPROC)(int);
int main()
{
MYPROC-ProcAdd;
HINSTANCE hinstLib=LoadLibrary(L“C:\\Nathan\\DanforthPrj\\MZmine-2.16\\lib\\vendor\u lib\\thermo\\MSFileReaderLib.dll);
if(!hinstLib)
{

你确定那不是COM库吗?“MSFileReader…设计用于基于C++的应用程序,但由于它是COM对象,因此可以使用任何支持COM接口的语言。”