Article View: borland.public.cppbuilder.nativeapi
Article #2279Re: NetRemoteTOD to Get Server Time
From: Bob Gonder
Date: Tue, 20 Mar 2007 03:02
Date: Tue, 20 Mar 2007 03:02
16 lines
1814 bytes
1814 bytes
Dan wrote: >Now the stupid question; how can I get it to work? I made a simple VCL >application with a button that should show me the time of day returned >by NetReportTOD, and I get an error "Multiple declaration for >NET_API_STATUS" when I include <lmremutl.h> LMCONS.H defines that, and should have proper header guards to stop multiple inclusions. (For example: RAS.H also includes it) > but then an error that >NetRemoteTOD doesn't exist if I don't.. what file should I be including? Which error would that be? I can think of 2 that sotta mean what you said. Best guess without actual error message, is you didn't include the netapi32.lib in your project.
Technical Details
Message-ID:
<d9juv2l837qjqg5h6hlqouhocronuqj4ju@4ax.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<45fc2a82@newsgroups.borland.com> <esiov2t822j0k56pg1ke5ekulrcl3tiqfv@4ax.com> <45feb217@newsgroups.borland.com> <98gtv2p5l749u2k4vd19ta7k0snnlu2ub3@4ax.com> <45fee40d@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,9a57de6d3de75d9f X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: Bob Gonder <notbg@notmindspring.invalid> Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: NetRemoteTOD to Get Server Time Date: Mon, 19 Mar 2007 20:02:10 -0700 Organization: MindSpring Enterprises, Inc. Reply-To: notbg@notmindspring.invalid Message-ID: <d9juv2l837qjqg5h6hlqouhocronuqj4ju@4ax.com> References: <45fc2a82@newsgroups.borland.com> <esiov2t822j0k56pg1ke5ekulrcl3tiqfv@4ax.com> <45feb217@newsgroups.borland.com> <98gtv2p5l749u2k4vd19ta7k0snnlu2ub3@4ax.com> <45fee40d@newsgroups.borland.com> X-Newsreader: Forte Agent 1.93/32.576 English (American) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 67.77.145.18 X-Trace: newsgroups.borland.com 1174359728 67.77.145.18 (19 Mar 2007 20:02:08 -0800) Lines: 19 Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail