Solved

API

Posted on 2002-05-08
7
196 Views
Last Modified: 2013-11-13
Hi
 I am facing problem in using functions of netapi32.dll in Vb on 98 machine.
Whnever I use any function of this dll, I get error message that Entry point not found
How can I use this dll for winsock programming.
 
0
Comment
Question by:ngomte
7 Comments
 
LVL 69

Expert Comment

by:Éric Moreau
ID: 6996043
All DLLs are not COM DLL. You cannot register non-COM DLLs. This DLL is a pure DYnamic Link Library and to use it you must use Declare statements into your VB app.
0
 

Author Comment

by:ngomte
ID: 6996057
i have declare the functions
Public Declare Function NetRemoteTOD Lib "netapi32.dll" (yServer As Any, pBuffer As Long) As Long
Private Declare Function NetApiBufferFree Lib "netapi32.dll" (ByVal pBuffer As Long) As Long
0
 
LVL 69

Expert Comment

by:Éric Moreau
ID: 6996067
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 43

Expert Comment

by:TimCottee
ID: 6996070
Or alternatively this sample project that uses the netremoteTOD call.

http://www.btinternet.com/~vbadmincode/code/netremotetod.zip
0
 
LVL 43

Expert Comment

by:TimCottee
ID: 6996073
Actually looking a little further, neither of these functions are supported in win9x/me/ce only in NT/2000/XP I am afraid.
0
 
LVL 18

Expert Comment

by:deighton
ID: 6996084
seems to suggest that 98 doesn't support the function.
0
 
LVL 1

Accepted Solution

by:
Moondancer earned 0 total points
ID: 7065871
50 points refunded, item moved to PAQ at zero and closed.
Moondancer - EE Moderator
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
using Access 8 59
Re-position sub-options beneath the TAB 7 79
MS Access 03, TransferText, decimal places 8 47
Interview question Javascript, database 12 36
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

863 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now