Got some more work done today, not much though. I am going to take a little break to work on another project though. Reason is because in this other project I am going to experiment with unmanaged/managed C++ working together which I plan to do in ACoBot.
Well... I am probably gonna have to rewrite the hook system again because C++ to CLI C++ is extremely ********.
When you have a class with say a managed class in it, even if it isn't a "ref class" it will make it "sorta" managed which will break the callback pointer system.
Currently in this test I am doing I have
ClassA derived from CHook
ClassB with ClassA in it and deriving from ICallbackable and has a ClassC ptr
ClassC which is "sorta" managed which handles/calls the real managed class.
So ya...
Going to have to revise the system over the next few days. Hopefully the bot part of this wont be such a challenge.
Edit:
okay well its not working out. Assembly to CLI is causing it to crash and ****. So I will probably have to do a message system. Problem with that is that it wont allow function blocking. Unless by tomorrow I think of something...
Well... I am probably gonna have to rewrite the hook system again because C++ to CLI C++ is extremely ********.
When you have a class with say a managed class in it, even if it isn't a "ref class" it will make it "sorta" managed which will break the callback pointer system.
Currently in this test I am doing I have
ClassA derived from CHook
ClassB with ClassA in it and deriving from ICallbackable and has a ClassC ptr
ClassC which is "sorta" managed which handles/calls the real managed class.
So ya...
Going to have to revise the system over the next few days. Hopefully the bot part of this wont be such a challenge.
Edit:
okay well its not working out. Assembly to CLI is causing it to crash and ****. So I will probably have to do a message system. Problem with that is that it wont allow function blocking. Unless by tomorrow I think of something...
At this point I probably wont be using .Net...
Maybe you can do something with this,
It supports hooking of native entry points from a fully managed environment like C#. It comes with full source code too.
Well I am trying Qt first because it has a nice toolkit for making the gui.
But ya, it sucks when they don't build the static library. Although it also sucks that including curl "bloated" my dll to 500kb.
ah wait... u can compile wxWidgets static too, then strip ur executable to make it small. They recommend you download wxWidget source code and compile it yourself for your specific compiler.
And I quite like wxSmith GUI builder for wxWidgets in Code::Blocks. Qt I really like that one when i was using linux, but had trouble finding a FREE library for it that would work with mingw compilers.
ah wait... u can compile wxWidgets static too, then strip ur executable to make it small. They recommend you download wxWidget source code and compile it yourself for your specific compiler.
And I quite like wxSmith GUI builder for wxWidgets in Code::Blocks. Qt I really like that one when i was using linux, but had trouble finding a FREE library for it that would work with mingw compilers.
I recommend wx... but go QT if u like
gonna stick with Qt atm. I haven't seen a nice vs addin for wxWidgets yet and Qt has one.