I need to use a very important class in Lite-C, which contains just simple functions with maths operators. Everyone knows that Lite-C does not support classes, neither does C. So this is why I am looking at ways I can use them, one idea was this COM crap I keep hearing about. I have no idea what it really is, only the jist of it.
I can put this in form of a really simple question: Can I use COM to include a class in Lite-C?
As far as I know DirectX uses this COM and that’s why you can use functions from objects.
If this is possible, I need someone really smart to tell me how I can create a DLL with my class and how I can include it in Lite-C, or however it is meant to be done.
Thanks
Re: including classes
[Re: sheefo]
#128151 05/05/0706:1205/05/0706:12
COM? As in the Component Object Model? I am not sure if you can, because the compiler may not understand the syntax in which you would access the class, even if it were possible to get it into 3dgs. I do not have that much experience with COM or any of that "family", so sorry I cannot exactly help you.
You could maybe write a DLL which "emulates" a class - the DLL could have specific variables and methods, and use an internal array to store the "created classes".
Well, from what I gathered from the manual COM is pretty straight forward. It's the making the class in the DLL that I need help with. Even if I try on my own and get something compiled, how will I know it works? I am going to try to see if there are any templates online for making DLL classes, perhaps there is one in VC++. If anyone can help me, you’re a more than welcome