ZeroConf/Bonjour Code that works in Delphi 7 not working in 2009

后端 未结 4 760
忘了有多久
忘了有多久 2020-12-19 17:16

I have the following declaration for DNSServiceRegister:

  function DNSServiceRegister
      (
      var sdRef: TDNSServiceRef;
      const flags: TDNSServic         


        
4条回答
  •  情深已故
    2020-12-19 18:15

    If the DLL is not written using Delphi 2009, you may want to use something else than PUTF8String. The Delphi 2009 Utf8String type is different from Delphi 2007's UTF8String type.

    If the DLL was written using C/C++, I strongly suggest to use PAnsiChar() instead of PUtf8String.

提交回复
热议问题