Need help on getting a string result value from delphi created DLL to foxpro... Have used PAnsichar but seems still something missing. Do you have some simple sample code for me to look at? Ive tried using the DLL created in delphi to get result value in a delphi application and seems working fine. I believed its a pointer issue, but having hard time figuring out, maybe you have experienced or have solved this issue? Thanks in advance.

Comments

  1. What calling convention are you using?
    And that particular code was written from the head (I did not actually test it - it was just to show the principle).  Instead of PAnsiChar(MyPChar[1]) there shold probably be @MyPChar[1]  (address of the first char)

    ReplyDelete
  2. Virgo Pärna  StdCall is the calling convention that i used. What do you mean written from the head? I run the function from the unit.

    ReplyDelete
  3. That I just wrote it into web browser text entry and I don't know, if it even compiles as is.
    How did you declare that function in foxpro?

    ReplyDelete

Post a Comment