Page 1 of 1

help making a com?

Posted: Sat May 06, 2006 3:56 am
by zaneiel
posted this in beginners help section, think that was a bad idea lol
still need help on this, hoping not to et flamed for c++ question :)

Hey guys, i was waundering if one of you could tell me about making a dll into a referenceable item to link into C# or VB sort of like the .net irrlicht wraper.

to clarify, if i find a cool code snippet for c++ as i allways do, i would like to make it a function to be called from C# or so others can use it in vb etc. I don't know much about COM programming (i am under the impression thats how its done) but if someone could post a simple function or interface or whatever and the code that makes it compile into a reference-friendly .DLL I will love you forever

even something as simple as :

void PrintThis(char MyString)
{
printf (MyString);
}

and the code to make it a "wrapper" - (can be referenced from Managed code)

Posted: Sat May 06, 2006 9:08 am
by hybrid
Why didn't you post this topic in the .net section, or in offtopic? You wouldn't have to fear flaming then. And sory, I definitely know nothing about .net techniques.