Re: [fossil-users] Help with making a subroutine x-platform to windows

2018-06-28 Thread Thomas Schnurrenberger
On 27.06.2018 21:24, Richard Hipp wrote: > If anybody can suggest patches that will get this routine > (https://fossil-scm.org/fossil/info/5e083abf6?ln=47) to compile and > work on windows, that would really be helpful. Thanks. > Sample Windows program, needs the dnsapi.lib for linking: #includ

Re: [fossil-users] Help with making a subroutine x-platform to windows

2018-06-28 Thread Antoine Chavasse
It seems to me it would be simpler and more robust to simply call the relevant win32 api function: https://docs.microsoft.com/en-us/windows/desktop/api/windns/nf-windns-dnsquery_a On Wed, Jun 27, 2018, 23:22 Scott Doctor wrote: > A way may be using the system() command to run nslookup. From > t

Re: [fossil-users] Help with making a subroutine x-platform to windows

2018-06-27 Thread Scott Doctor
I have an issue with the declarations of the local variables unsigned char aDns[5000]; /* Raw DNS reply content */ char zHostname[5000]; /* Hostname for the MX */ Those two declarations result in using 10k of stack space. I suggest making an external struct to hold that info

Re: [fossil-users] Help with making a subroutine x-platform to windows

2018-06-27 Thread Scott Doctor
Well thunderbird sure mucked up that formatting. Launch windows command prompt type nslookup at the ">" prompt, type help typing exit will exit out of nslookup - Scott Doctor sc...@scottdoctor.com - On 6/27/2018 14:22, Scott Doctor wrote: A way

Re: [fossil-users] Help with making a subroutine x-platform to windows

2018-06-27 Thread Scott Doctor
A way may be using the system() command to run nslookup. From the windows command line help for the command: Commands:   (identifiers are shown in uppercase, [] means optional)NAME    - print info about the host/domain NAME using default serverNAME1 NAME2 - as above, but use NAME2

[fossil-users] Help with making a subroutine x-platform to windows

2018-06-27 Thread Richard Hipp
If anybody can suggest patches that will get this routine (https://fossil-scm.org/fossil/info/5e083abf6?ln=47) to compile and work on windows, that would really be helpful. Thanks. -- D. Richard Hipp d...@sqlite.org ___ fossil-users mailing list fossil