?
Solved

How to call NWGetFileServerDateAndTime from nwcalls.dll

Posted on 1998-03-13
10
Medium Priority
?
246 Views
Last Modified: 2010-04-04
I know how to call a function from a DLL, what I dont know
are the parameters for this call

function NWGetFileServerDateAndTime(var ???): ???;
           far; external 'NWCALLS';

I think the unit CALSRV16.PAS should have a complete
declaration, but I didnt find this file (it must be in
the Netware SDK - 37 MB thats a little bit too much for me).

At http://doc1.provo.novell.com:80/current_sdk.htm is the
documentation for the sdk (if I try to get some info about
the function, I receive a "500 Server Error" :-( )

anyone with more luck ???
0
Comment
Question by:egono
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 4
10 Comments
 
LVL 2

Expert Comment

by:Waldek
ID: 1360461
Try This GetDateTime (year,month,day,hour,minute,second,day_of_week:integer);


0
 
LVL 2

Author Comment

by:egono
ID: 1360462
Hi Waldek,

I'd like to have the time from the server, not from the WS.
0
 
LVL 2

Author Comment

by:egono
ID: 1360463
Adjusted points to 200
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 4

Expert Comment

by:d003303
ID: 1360464
Do you have a C-header file for that library ? We could translate the function call from C to Delphi.
0
 
LVL 2

Author Comment

by:egono
ID: 1360465
Hi d003303

no I have nothing, just the DLL. But there must be some
header files in the Netware SDK (and some Delphi units too)
If you have a fast connection you can download 37 MB from
the novell server.
0
 
LVL 4

Expert Comment

by:d003303
ID: 1360466
OK, I take a look at it.
Are you using Delphi 1 (because of the unit CALSRV16.PAS) ?
0
 
LVL 4

Accepted Solution

by:
d003303 earned 800 total points
ID: 1360467
Yo,
here is the correct declaration for 16 and 32 bit.

Type
  nuint         = Cardinal;
  nuint8        = Byte;
  pnuint8       = ^nuint8;
  NWCONN_HANDLE = nuint;
  NWCCODE       = nuint;

Function NWGetFileServerDateAndTime
(
   conn : NWCONN_HANDLE;
   dateTimeBuffer : pnuint8
) : NWCCODE;
{$IFDEF WIN32}
StdCall;
{$ENDIF}

{$IFNDEF WIN32}
function NWGetFileServerDateAndTime; external 'CALWIN16.DLL' index 116;
{$ELSE}
function NWGetFileServerDateAndTime; StdCall; external 'CALWIN32.DLL' index 116;
{$ENDIF}

if you want the Delphi-Includes of the SDK, I can mail them to you.

Slash/d003303
0
 
LVL 2

Author Comment

by:egono
ID: 1360468
Hi Slash,

I'm using Delphi 3. If you mail me the Delphi includes I
would be very happy (and you will get a A Grade).

Please mail not to my home adress, mail to
katrin.wetzke@mdr.de

many thx ...


0
 
LVL 2

Author Comment

by:egono
ID: 1360469
OK ! thx again ...

it seems to me that I need also the dll's cause I have only
the nwcalls.dll. Do you think it's possible that you mail me
these files also ???

0
 
LVL 4

Expert Comment

by:d003303
ID: 1360470
I've sent them to you. Please review the license agreement on the novell site for redistribution of binaries from the SDK.

Slash/d003303
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
Suggested Courses

764 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question