Ho il seguente cod:
codice:
 #include <iostream>
#include <cstdio>
#include <windows.h>

HMODULE hModule = LoadLibrary("Engine.dll");
bool __stdcall (*op)( string );

using namespace std;

int main()
{
    op = ( bool __stdcall ( * )( string ) ) GetProcAddress( hModule, "Open" );
    if( op("prova.txt") == true)
    {
        cout << "Ok!\n"<<endl;
    }else
    {
        cout << "No!\n"<<endl;
    }
    return 0;
}
Ma mi da:
C:/Documents and Settings/Admin/Desktop/Edit/Teck Edit/Src/Test/Test.cpp:6: `
string' was not declared in this scope
C:/Documents and Settings/Admin/Desktop/Edit/Teck Edit/Src/Test/Test.cpp:6: warning: `
__stdcall__' attribute only applies to function types
C:/Documents and Settings/Admin/Desktop/Edit/Teck Edit/Src/Test/Test.cpp: In
function `int main()':
C:/Documents and Settings/Admin/Desktop/Edit/Teck Edit/Src/Test/Test.cpp:12: cannot
convert `bool (*)(std::basic_string<char, std::char_traits<char>,
std::allocator<char> >)' to `bool*' in assignment
C:/Documents and Settings/Admin/Desktop/Edit/Teck Edit/Src/Test/Test.cpp:13: `
op' cannot be used as a function

Esecuzione terminata