I am trying to call from Delphi and it GPFs. Whats up?

Submitted by: Administrator
Based on the number of postings to comp.lang.pascal, it would seem that by far the largest number of problems calling Windows API functions or non-Delphi DLLs are caused by passing Pascal-style strings to functions that expect null-terminated (PChar) strings. This is the first thing you should check if you get a GPF or other strange results when calling an external function. See section 6.11 for more information on which type of strings go where.
Submitted by: Administrator

Read Online Delphi Job Interview Questions And Answers