Wrapper for C# plugin development!
Posted: Tue Feb 03, 2009 9:57 pm
A while back I was able to make contact with Peter (the guy who wrote the old VB6 wrapper). It's a long story but the short version is that a few days later he sent me the beginnings of a newly-written C# wrapper for HouseBot! (he did it for the challenge ). After a few rounds of revisions I started writing plugins.
That was about four months ago. In the interim I've written four plugins using the wrapper and they are working quite well. I suspect there are issues I haven't run into yet but if anyone is interested I'm happy to post the files needed to use it (I have permission from Peter).
It’s conceptually similar to vbWrapper.
1) Copy HBDotNetBridge.dll into the \housebot\plugins\devices folder
2) Copy HBDotNet.dll into the \housebot folder (!)
3) Create a new C# class library and add a reference to HBDotNet
4) Derive a class from HBDeviceBase (applying the proper attributes)
5) Build your project and put the resulting dll in \housebot\plugins\devices
I'm willing to share the source for the plugins I've written (although it's not the cleanest code ). Additionally I can probably help with some of the "teething" issues regarding developing with the wrapper.
-- Dave
That was about four months ago. In the interim I've written four plugins using the wrapper and they are working quite well. I suspect there are issues I haven't run into yet but if anyone is interested I'm happy to post the files needed to use it (I have permission from Peter).
It’s conceptually similar to vbWrapper.
1) Copy HBDotNetBridge.dll into the \housebot\plugins\devices folder
2) Copy HBDotNet.dll into the \housebot folder (!)
3) Create a new C# class library and add a reference to HBDotNet
4) Derive a class from HBDeviceBase (applying the proper attributes)
5) Build your project and put the resulting dll in \housebot\plugins\devices
I'm willing to share the source for the plugins I've written (although it's not the cleanest code ). Additionally I can probably help with some of the "teething" issues regarding developing with the wrapper.
-- Dave