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

后端 未结 4 756
忘了有多久
忘了有多久 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:12

    Based on the information that we have available here, the situation is this:

    • When calling the DLL with your code in Delphi 2007, it gives one result.
    • When calling the same DLL with your code in Delphi 2009, it gives another result.
    • The suspicion is, that it is related to the Delphi 2009 compiler.

    Logically, the difference must therefore be, that Delphi 2009 sends different values as parameters. In order to make the debugging truly Delphi-independent, you therefore need to create a dummy DLL, which reports the values it gets. Other Delphi-dependent methods may be applied, like looking at the disassembly of the function-call into the DLL, and debugging it so that we know exactly what values are passed, and how, to the DLL, in both compilers.

提交回复
热议问题