Re: wodDHCP Server how to... plzzz help!!! - WeOnlyDo Discussion board

Re: wodDHCP Server how to... plzzz help!!! (General questions)

by chrismooney, Wednesday, October 25, 2006, 14:31 (6604 days ago) @ uzee

First of all, do you understand how to load a COM object using C++? If you have access to Visual Studio 2005 and are willing to learn some C#, I can get you started with some instructions on starting the project but I am getting COM errors each time I try to call the Session object methods to give clients their DHCP . I would help you with the C++, but I haven't done COM interface stuff in a long time. From what I remember the general concept is to first import into your project the COM type library (the .tlb file). Then in your application code, you have to call the InitializeCOM method (I don't think that is what it was really called, but it is something like that), and then instantiate an object of the wodDHCPServer class, verify it has the interface you want to use, and call the methods on it. You will have to catch the messages that it posts to know if a client is requesting an address.

Other than that, I don't know what to tell you. But if you want a shell of C# code, I'm willing to give it to you.


Complete thread: