Hi folks,

I am new to this subject.

I want to create a dll in C++ that wraps up a Windows API.
For now, and for learning purposes, I would like to wrap up the FindWindowEx, so I can easily access this function in .net without having to import the function, so I can just do something like...

Imports MyLibrary.CPPGoodies

//rest of .net code here.
dim mycpp as new cppGoodies
mycpp.FindWindowEx(myhandle,"myclasstitlename")
//rest of .net code here.


Here is my problem. I don't know how to do this, and I can't seem to find an example via a google search. Most examples I find are for writing a com in C# or for writing COMs in .net so they can be accessed by other languages.

Take this for example....
http://www.dimastr.com/redemption/
This guy wrote a com in C++ for .net because alot of the MAPI stuff is not available in .net or has the security patch. This is what I'm trying to do, but at a simpler step, simply just picking a simple function like FindWindowsEx and wrapping that.

Do you know of any good tutorials out there for this. Once, I figure out how to do a simple wrapping, I will take care of learning the rest. :-)
Any help is greatly appreciate via reputation points. :-)