Qt Code:
  1. char DLLfunction()
  2. {
  3. QLibrary myLib("dllprog");
  4. typedef char* (*MyPrototype)();
  5. MyPrototype myFunction =
  6. (MyPrototype) QLibrary::resolve("dllprog", "TestDll");
  7. char b = myFunction();
  8. return b;
  9. }
To copy to clipboard, switch view to plain text mode 
there is something weird in your code as define MyPrototype as raturning char* and than you do:
Qt Code:
  1. char b = myFunction();
To copy to clipboard, switch view to plain text mode 
where you are assigning returned value to one char. Is it right?