Posted on 2002-05-08
Last Modified: 2013-11-13
 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.
Question by:ngomte
LVL 70

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.

Author Comment

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
LVL 70

Expert Comment

by:Éric Moreau
ID: 6996067
Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

LVL 43

Expert Comment

ID: 6996070
Or alternatively this sample project that uses the netremoteTOD call.
LVL 43

Expert Comment

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.
LVL 18

Expert Comment

ID: 6996084
seems to suggest that 98 doesn't support the function.

Accepted Solution

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

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
numbers ascending pyramid 101 214
Problem to open Excel file 15 179
TT Auto Dashboard 13 95
Export PDF Form fields to Access  or Excel  in Tab order 16 80
How to remove superseded packages in windows w60 or w61 installation media (.wim) or online system to prevent unnecessary space. w60 means Windows Vista or Windows Server 2008. w61 means Windows 7 or Windows Server 2008 R2. There are various …
Whether you’re a college noob or a soon-to-be pro, these tips are sure to help you in your journey to becoming a programming ninja and stand out from the crowd.
This video teaches viewers about errors in exception handling.
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…

828 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