Works fine if I don\'t return anything, or I return an integer. But if I try to return a PChar, ie..
result := PChar(\'\') or result:= PChar(\'Hello\') >
try to enable 32-bit applications in application pool advanced settings :