• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 206
  • Last Modified:

API

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
ngomte
Asked:
ngomte
1 Solution
 
Éric MoreauSenior .Net ConsultantCommented:
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
 
ngomteAuthor Commented:
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
 
Éric MoreauSenior .Net ConsultantCommented:
0
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.

 
TimCotteeHead of Software ServicesCommented:
Or alternatively this sample project that uses the netremoteTOD call.

http://www.btinternet.com/~vbadmincode/code/netremotetod.zip
0
 
TimCotteeHead of Software ServicesCommented:
Actually looking a little further, neither of these functions are supported in win9x/me/ce only in NT/2000/XP I am afraid.
0
 
deightonprogCommented:
seems to suggest that 98 doesn't support the function.
0
 
MoondancerCommented:
50 points refunded, item moved to PAQ at zero and closed.
Moondancer - EE Moderator
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now