🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #2286

Re: NetRemoteTOD to Get Server Time

#2286
From: Dan
Date: Tue, 20 Mar 2007 21:46
42 lines
2362 bytes
Simple Program:
//---------------------------------------------------------------------------

#include <vcl.h>
#pragma hdrstop

#include "Unit1.h"

//---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma resource "*.dfm"
#include <lmremutl.H >
TForm1 *Form1;
//---------------------------------------------------------------------------
__fastcall TForm1::TForm1(TComponent* Owner)
         : TForm(Owner)
{
}
//---------------------------------------------------------------------------

void __fastcall TForm1::Button1Click(TObject *Sender)
{
   String URL = "\\djsrv6";
   TIME_OF_DAY_INFO TOD;


        NetRemoteTOD( URL, &TOD );
}
//---------------------------------------------------------------------------

complie as shown above, yields:
[C++ Error] lmremutl.H(61): E2238 Multiple declaration for 'NET_API_STATUS'
[C++ Error] lmremutl.H(55): E2344 Earlier declaration of 'NET_API_STATUS'
etc...

compiling with #include <lmcons.h> instead, or no #include yields the 
same errors:
[C++ Error] Unit1.cpp(23): E2451 Undefined symbol 'TIME_OF_DAY_INFO'
[C++ Error] Unit1.cpp(26): E2268 Call to undefined function 'NetRemoteTOD'
etc..

What am I doing wrong?
Technical Details
Message-ID: <46005688@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!solnet.ch!solnet.ch!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <45fc2a82@newsgroups.borland.com> <esiov2t822j0k56pg1ke5ekulrcl3tiqfv@4ax.com> <45feb217@newsgroups.borland.com> <98gtv2p5l749u2k4vd19ta7k0snnlu2ub3@4ax.com> <45fee40d@newsgroups.borland.com> <d9juv2l837qjqg5h6hlqouhocronuqj4ju@4ax.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,9a57de6d3de75d9f
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
Date: Tue, 20 Mar 2007 16:46:25 -0500
From: Dan <Dan@do.not.spam>
User-Agent: Thunderbird 1.5.0.10 (Windows/20070221)
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: NetRemoteTOD to Get Server Time
References: <45fc2a82@newsgroups.borland.com> <esiov2t822j0k56pg1ke5ekulrcl3tiqfv@4ax.com> <45feb217@newsgroups.borland.com> <98gtv2p5l749u2k4vd19ta7k0snnlu2ub3@4ax.com> <45fee40d@newsgroups.borland.com> <d9juv2l837qjqg5h6hlqouhocronuqj4ju@4ax.com>
In-Reply-To: <d9juv2l837qjqg5h6hlqouhocronuqj4ju@4ax.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 216.174.165.174
Message-ID: <46005688@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1174427272 216.174.165.174 (20 Mar 2007 14:47:52 -0800)
Lines: 42
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!solnet.ch!solnet.ch!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail