|
From: ShaneO on 7 Jul 2008 23:17 I'm seeking an example of VB .NET 2005/08 code to request the Date/Time from an NTP Server. I've seen some very early .NET examples using API's and hundreds of lines of code, but I trust something more recent and simpler exists that I'm not aware of. Yes, I've Googled my head off but can't seem to find what I'm looking for. Thanks in advance for any tips/links you are able to provide. ShaneO There are 10 kinds of people - Those who understand Binary and those who don't.
From: SEDGE on 15 Jul 2008 23:39 Hi I have the same requirement and here's what I found: Here is an NTP Client written in C# http://www.codeproject.com/KB/IP/ntpclient.aspx And here is a neat converter to turn it into VB: http://labs.developerfusion.co.uk/convert/csharp-to-vb.aspx It has some errors in the conversion and I plan to check if I can resolve them. Good luck to us both. Regards Steve "ShaneO" wrote: > I'm seeking an example of VB .NET 2005/08 code to request the Date/Time > from an NTP Server. I've seen some very early .NET examples using API's > and hundreds of lines of code, but I trust something more recent and > simpler exists that I'm not aware of. > > Yes, I've Googled my head off but can't seem to find what I'm looking for. > > Thanks in advance for any tips/links you are able to provide. > > ShaneO > > There are 10 kinds of people - Those who understand Binary and those who > don't. >
From: Gillard on 16 Jul 2008 09:06 To convert C# AND other languages to VB.Net http://www.tangiblesoftwaresolutions.com/ is the best converters I have found until now good luck "SEDGE" <SEDGE(a)discussions.microsoft.com> wrote in message news:7E6FD81A-9E5E-4283-90A6-2D267A205959(a)microsoft.com... > Hi > > I have the same requirement and here's what I found: > > Here is an NTP Client written in C# > http://www.codeproject.com/KB/IP/ntpclient.aspx > > And here is a neat converter to turn it into VB: > http://labs.developerfusion.co.uk/convert/csharp-to-vb.aspx > > It has some errors in the conversion and I plan to check if I can resolve > them. > > Good luck to us both. > Regards > Steve > > > "ShaneO" wrote: > >> I'm seeking an example of VB .NET 2005/08 code to request the Date/Time >> from an NTP Server. I've seen some very early .NET examples using API's >> and hundreds of lines of code, but I trust something more recent and >> simpler exists that I'm not aware of. >> >> Yes, I've Googled my head off but can't seem to find what I'm looking >> for. >> >> Thanks in advance for any tips/links you are able to provide. >> >> ShaneO >> >> There are 10 kinds of people - Those who understand Binary and those who >> don't. >>
From: ShaneO on 16 Jul 2008 15:10 SEDGE wrote: > Hi > > I have the same requirement and here's what I found: > > Here is an NTP Client written in C# > http://www.codeproject.com/KB/IP/ntpclient.aspx > > And here is a neat converter to turn it into VB: > http://labs.developerfusion.co.uk/convert/csharp-to-vb.aspx > > It has some errors in the conversion and I plan to check if I can resolve > them. > > Good luck to us both. > Regards > Steve > Thank-you Steve for the link. It is actually one that I'd found myself at an earlier time. By the looks of it we're both going to have to settle for this as the best example, at least it is easy to convert. I'm busy with another project right now but hope to have some time in a couple of weeks to re-visit this one. I will post my results once I have this worked out. Regards, ShaneO There are 10 kinds of people - Those who understand Binary and those who don't.
From: SEDGE on 16 Jul 2008 18:18 The converter I use has the distinct advantage of being free. I'm not in the business of converting masses of code, just samples I find from time to time to solve specific provlems. The problems with the NTP Client have turned out to be: - Public variables not CLS Compliant (names starting with an underscore) - implicit Type conversions because I run with Strict On Haven't got around to testing the Client yet. "Gillard" wrote: > To convert C# AND other languages to VB.Net > > > http://www.tangiblesoftwaresolutions.com/ > > > is the best converters I have found until now > > good luck > > > "SEDGE" <SEDGE(a)discussions.microsoft.com> wrote in message > news:7E6FD81A-9E5E-4283-90A6-2D267A205959(a)microsoft.com... > > Hi > > > > I have the same requirement and here's what I found: > > > > Here is an NTP Client written in C# > > http://www.codeproject.com/KB/IP/ntpclient.aspx > > > > And here is a neat converter to turn it into VB: > > http://labs.developerfusion.co.uk/convert/csharp-to-vb.aspx > > > > It has some errors in the conversion and I plan to check if I can resolve > > them. > > > > Good luck to us both. > > Regards > > Steve > > > > > > "ShaneO" wrote: > > > >> I'm seeking an example of VB .NET 2005/08 code to request the Date/Time > >> from an NTP Server. I've seen some very early .NET examples using API's > >> and hundreds of lines of code, but I trust something more recent and > >> simpler exists that I'm not aware of. > >> > >> Yes, I've Googled my head off but can't seem to find what I'm looking > >> for. > >> > >> Thanks in advance for any tips/links you are able to provide. > >> > >> ShaneO > >> > >> There are 10 kinds of people - Those who understand Binary and those who > >> don't. > >> >
|
Pages: 1 Prev: Enumerate List of ODBC DSNs Next: DataGridView showing Unbounded Combo Box with DropDown Style |