Guest klabranche Posted May 23, 2002 Posted May 23, 2002 I wrote a network enumeration DLL using API calls like NetEnumServer ect... Everything works wonderfully in VB6. I wrapped up the functionality in a DLL and tried to create a .Net example using the COM DLL. Now I am getting an invalid parameter or Browser not available error when I call the method that uses the NetEnumServer API call. Everything is the same except for .Net. Otherwise, I am using the same computer, same DLL, and practically the exact same code to call this method in .Net as I did in VB6. The only difference in .Net is the syntax changes. Anybody have any idea why the NetEnumServer API would crash in VB.Net even when being called from a VB6 COM object? Kevin :confused: Quote
*Gurus* divil Posted May 23, 2002 *Gurus* Posted May 23, 2002 There could well be a .NET way of doing the same thing, check out the classes in System.Net. Quote MVP, Visual Developer - .NET Now you see why evil will always triumph - because good is dumb. My free .NET Windows Forms Controls and Articles
Guest klabranche Posted May 23, 2002 Posted May 23, 2002 System.Net won't do it and System.Management only works with Active Directory Enabled networks and WMI (To my knowledge)..... Our network is still mostly NT4 based so ADSI won't work and every attempt using WMI to do this for me has failed. Ofcourse, I have never messed with WMI API at all and the help on it has been horrible. I could very easily be missing it..... Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.