Yes, it's possible.
Here's a link to one I wrote sometime ago.
(Randomal64)
http://www.generation5.org/aisolutions/ga01.shtml
Unfortunately, this code was written for C++ Builder & includes some hokey things like AnsiString classes.
However, since then I've ported the code to standard C++. If you would like it, I'll email it to you.